Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Static IP for Azure VM

$
0
0

I created a VM and made its internal IP static by executing the following PowerShell command.

Get-AzureVM -ServiceName [service name] -Name [virtual machine name] | Set-AzureStaticVNetIP -IPAddress [IP Address] | Update-AzureVM

Once i run the following command to test weather the ip is static, the reply is "IsAvailable=False"

Test-AzureStaticVNetIP -VNetName [VNet name] -IPAddress [IP Address]

So the ip was reserved for the VM.

But When i stopped[deallocated] the above created VM and created a new one in the same cloud service, the IP i allocated for previous VM is assigned to newly created VM. I tried to start the first VM but unable to start, it gives an error

How does it happen?? As I believe once the IP is reserved for particular VM, it shouldn't be assigned to other.

Pls reply if someone know the reason.


Viewing all articles
Browse latest Browse all 12545

Trending Articles



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