Azure - How to handle public IP when moving a resource group between subscriptions

Alberto Poblacion 1,556 Reputation points
2022-07-06T11:46:14.423+00:00

I am using the Azure Portal to move a Resource Group from one subscription to another one.
During the validation phase, it complains about a public IP address in the resource group, which cannot be moved.
That's alright, I do not mind if the IP changes and I get a new one after the move. The question is how to drop the public IP without losing the configuration for the other resources that depend on it, and then how to re-add a new IP address after the move and get it linked instead of the old one. The IP address is associated to a network interface in a virtual machine and there is a network security group controlling the ports that are open.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,157 questions
0 comments No comments
{count} vote

Accepted answer
  1. Jackson Martins 9,646 Reputation points MVP
    2022-07-06T12:28:55.91+00:00

    Hi @Alberto Poblacion
    Are you trying to move to a resource group in another region?
    Azure Public IPs are region specific and can't be moved from one region to another. You can however, use an Azure Resource Manager template to export the existing configuration of a public IP.

    reference: https://learn.microsoft.com/en-us/azure/virtual-network/move-across-regions-publicip-portal

    if in the same region, subscriptions must be in the same tenant:

    reference: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-resource-group-and-subscription#checklist-before-moving-resources

    Get in touch if you need more help with this issue.

    --please don't forget to "Accept the answer" if the reply is helpful--

    2 people found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. 32373548 30 Reputation points
    2023-01-18T14:53:45.1366667+00:00

    @ Jackson Is it possible to move static Public IPs to another Azure Subscription in the same Azure Region and Azure Tenant?

    1 person found this answer helpful.

  2. andersbs 0 Reputation points
    2023-03-29T13:42:29.0766667+00:00

    If you click "Disassociate" on the IP-resource first, the move-operation should work.