This virtual machine can't be configured with a static private IP address because it's not deployed in a virtual Network Options

codeling Posts: 1057 Points: 4443
Posted: Sunday, October 22, 2017 10:57:38 PM

I have created one virtual machine under a cloud service but without a Vnet.

Now i wanted to assign a static IP address to it without deleting my existing virtual machine.

I tried to do that but i am getting following message.

"This virtual machine can't be configured with a static private IP address because it's not deployed in a virtual Network."

what to do now?


codeling Posts: 1057 Points: 4443
Posted: Sunday, October 22, 2017 10:59:46 PM

Static Private IP address for a VM can only be set for VMs that are deployed within a VNET. VMs in a virtual network will automatically receive an internal IP address from a range that you specify. In certain cases, you would make the Internal IP address static. For example, if your VM is going to run DNS or will be a domain controller. In most cases, you won’t need to specify a static internal IP address for your virtual machine.


codeling Posts: 1057 Points: 4443
Posted: Sunday, October 22, 2017 11:00:24 PM

if you wish you may move your VM to existing VNet and then set static IP, kindly refer the link below for the steps:

Moving an existing Virtual Machine into a Virtual Network Subnet without losing your virtual hard disk

https://blogs.msdn.microsoft.com/karldb/2013/12/13/moving-an-existing-virtual-machine-into-a-virtual-network-subnet-without-losing-your-virtual-hard-disk-or-your-mind/

Step-by-step-move-a-vm-to-a-different-vnet-on-azure
http://blogs.technet.com/b/canitpro/archive/2014/06/17/step-by-step-move-a-vm-to-a-different-vnet-on-azure.aspx

Users browsing this topic
Guest