If you get something like
exception: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Azure.Management.Network.Fluent.NicIPConfigurationImpl.SubnetToAssociate
while creating new machines in your BYO-AZURE environment, it is most likely that you have misspelled the path to your VNET in the !CLOUDVPC PowerTag:
!CLOUDVPC=/subscriptions/12345678-abcd-ef12-345678-a17434c37faf/resourceGroups/customer-prod/providers/Microsoft.Network/virtualNetworks/customer-prod-vxnet
The easiest way to copy the correct path is to
- go into your Azure environment
- lookup and open the requested VNET
- click on JSON-View in the right upper corner
- click the copy button on the Resource ID