chef/knife-azure

Master is broken for any azurerm server create operations that involve virtual networks

Closed this issue · 0 comments

The Azure gem upgrades included in commit c9006dc broke azurerm server create operations that include existing virtual networks by upgrading to v0.9.0 of the azure_mgmt_network without making the necessary adjustments to vnet_config.rb.

Most of the methods in https://github.com/chef/knife-azure/blob/c9006dc0eb0975accfab2a3ca41041b11d83b685/lib/azure/resource_management/vnet_config.rb still rely on the #properties# method which is not returned by v0.9.0ofazure_mgmt_networkbut was returned byv0.3.1`.

The first error seen is at

vnet.properties.address_space.address_prefixes
, but many more occur throughout.

ERROR: undefined method `properties' for #Azure::ARM::Network::Models::VirtualNetwork:0x0000000aae6e38