5

Is there any ways to assign public static IP for Azure VM? Do I have to do through the Azure Virtual Network or I need to do it when setting up the VM?

Would appreciate that if somebody could provide me some tutorial and steps to achieve it.

Thank you.

wendy
  • 105
  • 1
  • 1
  • 6

2 Answers2

2

Yes - but only recently. Run get-help *-AzureReservedIP* to get all the cmdlets you need.

Here is more:

https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-reserved-public-ip/

Dene
  • 578
  • 5
  • 9
Raf
  • 9,681
  • 1
  • 29
  • 41
1

EDIT: use the "New-AzureReservedIP" powershell cmdlet in the VM

the verbose syntax looks like this:

New-AzureReservedIP – ReservedIPName “MyWebsiteIP” –Label “WebsiteIP” –Location “Japan West”

for more information, here's a relevant blog post about it:

http://azure.microsoft.com/blog/2014/05/14/reserved-ip-addresses/

here's an msdn spec on it:

https://msdn.microsoft.com/en-us/library/azure/dn769136.aspx

kennydust
  • 1,135
  • 15
  • 17