Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

Add VM to Virtual Network

$
0
0

I have created several VMs as part of a virtual network. Any new machines I create, however, are unable to attach to the virtual network - either using PowerShell or UI (on creation).

Looking at the new VM properties in PowerShell, the 'VirtualNetworkName' is blank and I receive the following error when I try to move the VM to my virtual network using PowerShell:

"Update-AzureVM : BadRequest: The virtual network ID cannot be null or empty."

The only thing I can think is that the original VMs and virtual network were created under another subscription and moved to the current subscription.

Any help appreciated.

Kind regards,

Lewis



Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>