Tuesday, January 19, 2016

[AZR] Manage Azure VM IPs


Set static internal IP address:

Get-AzureVM -ServiceName MyCloudService -Name MyAzureVM | Set-AzureStaticVNetIP -IPAddress "10.1.1.4" | Update-AzureVM


Create a new reserved IP:

1. Create the Azure reserved IP:

New-AzureReservedIP -ReservedIPName MyReservedIP -Location "East US"

2. Associate with a cloud service 

Set-AzureReservedIPAssociation -ReservedIPName MyReservedIP -ServiceName MyCloudService 


Convert Dynamic VIP to Reserved IP in a cloud service:

New-AzureReservedIP -ReservedIPName MyReservedIP -Location "East US" -ServiceName MyCloudService 


Remove Reserved IP from the Deployment

Remove-AzureReservedIPAssociation -ReservedIPName MyReservedIP -ServiceName MyCloudService