web analytics
This virtual machine can't be configured with a static private IP address because it's not deployed in a virtual Network Options
codeling
Posted: Sunday, October 22, 2017 10:57:38 PM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 919
Points: 3861

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?

Sponsor
Posted: Sunday, October 22, 2017 10:57:38 PM
codeling
Posted: Sunday, October 22, 2017 10:59:46 PM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 919
Points: 3861

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
Posted: Sunday, October 22, 2017 11:00:24 PM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 919
Points: 3861

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

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.


© 2017 Digcode.com. All rights reserved.