If you need to reserve static ip address for your VM, follow the commands below:
1. Set static ip:
New-AzureReservedIP -ReservedIPName "postgresql" -Location "West US"
2. Assign static ip, defined above to VM named postgresql –vm
Set-AzureReservedIPAssociation -ReservedIPName "postgresql" -ServiceName postgresql-vm
3. Remove static ip address.
Remove-AzureReservedIP -ReservedIPName "postgresql"
Be careful with Regions 🙂
Leave a Reply