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 

  1. go into your Azure environment
  2. lookup and open the requested VNET
  3. click on JSON-View in the right upper corner
  4. click the copy button on the Resource ID