Migrating Azure Public IP Address' from the classic portal (ASM) to Resource Manager (ARM)

Those who are in the process of migrating their workloads from the classic Azure ASM portal to the new Resource Manager (ARM) portal will probably find themselves wanting to migrate their public facing IP address’ so you don’t have to worry about DNS replication during the cutover. Below is a quick guide which walks you through the process.
 
Azure Environment
Cloud Service – CeledonCloudService
Region – West US 2
Public IP Address – 52.183.26.6
Reserved IP Address Name: CeledonWebsitePublicIP
 
Step 1 – Login and prepare your ARM enviornment

#Login to your ARM account
Add-AzureRmAccount
#Get a list of available subscriptions
Get-AzureRMSubscription | Sort SubscriptionName | Select SubscriptionName
#Select your subscription
Select-AzureRmSubscription -SubscriptionName "SubscriptionName"
#Register migration provider, this can take a couple minuites
Register-AzureRmResourceProvider -ProviderNamespace Microsoft.ClassicInfrastructureMigrate
#View the current RegistrationState status, do not proceed to step 2 until the status says Registered
Get-AzureRmResourceProvider -ProviderNamespace Microsoft.ClassicInfrastructureMigrate

 
Step 2 – Login to your ASM account

#Login to your ASM account
Add-AzureAccount
#Get a list of available subscriptions
Get-AzureSubscription | Sort SubscriptionName | Select SubscriptionName
#Select your subscription
Select-AzureSubscription –SubscriptionName "SubscriptionName"

 
Step 3 – Reserve Your Public IP Address/De-associate it from your Cloud Service

#Reserve your Cloud Service public IP address. Change the ReservedIPName and ServiceName switches as nescessary
New-AzureReservedIP –ReservedIPName CeledonWebSitePublicIP –Location "West US 2" -ServiceName CeledonCloudService
#De-associate the reserved IP address from your cloud service
Remove-AzureReservedIPAssociation -ReservedIPName CeledonWebSitePublicIP -ServiceName CeledonCloudService

 
Step 4 – Migrate the Reserved IP address

#Check for issues during migration
Move-AzureReservedIP -ReservedIPName CeledonWebSitePublicIP -Validate
#Prepare the ReservedIP for migration
Move-AzureReservedIP -ReservedIPName CeledonWebSitePublicIP -Prepare
#Commit to migrating the ReservedIP
Move-AzureReservedIP -ReservedIPName CeledonWebSitePublicIP -Commit

 
Step 5 – Verify & Cleanup
At this point if you login to portal.azure.com, you should see the resource under Public IP Address with the correct IP address. You can go ahead and move it to the correct resource group and assign the public IP address to whichever resource you would like.
Azure Reserved IP
 

Leave a Reply

Your email address will not be published. Required fields are marked *

Let's talk

If you want to get a free consultation without any obligations, fill in the form below and we'll get in touch with you.