AZURE - Unable to move resources from one subscription to another within same region

Soumyadeep Sarkar 15 Reputation points
2023-01-20T13:51:04.7433333+00:00

Hi Team,

I am trying to move all the AZURE resources from one subscription to another within the same region. I did the validation and found out the below error message associated with Public IP of the VPN Gateway.

Please need advise and solution as we need to move due to some organizational issues.

{"code":"ResourceMoveProviderValidationFailed","message":"Resource move validation failed. Please see details. Diagnostic information: timestamp '20230120T134717Z', subscription id '136b2ad3-3cf3-401f-80f0-66c2e2eafbd9', tracking id '0c829fe2-6076-4c8c-b920-ff338ddb9f75', request correlation id '0010e4fe-de24-4675-8752-3e8a5184a8cc'.","details":[{"code":"CannotMoveResource","target":"Microsoft.Network/virtualNetworks","message":"Cannot move one or more resources in the request. Please check details for information about each resource.","details":[{"code":"MoveNotSupported","message":"Move for resource type publicIPAddresses is not supported. Move request contains resource /subscriptions/136b2ad3-3cf3-401f-80f0-66c2e2eafbd9/resourceGroups/prod-erp-rg/providers/Microsoft.Network/publicIPAddresses/prod-erp-publicip of that type."}]}]}

User's image

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,159 questions
Azure Resource Mover
Azure Resource Mover
An Azure service used for moving multiple resources between Azure regions.
203 questions
{count} vote

3 answers

Sort by: Most helpful
  1. Luke Murray 10,526 Reputation points MVP
    2023-01-23T23:54:49.5566667+00:00

    Public IP looks to be supported to be moved - you may have to Disassociate It, though.

    "While Microsoft very recently added the ability to migrate Standard SKU Public IPs across subscriptions—it is not possible to move them if they are associated with any resource."

    https://github.com/MicrosoftDocs/azure-docs/issues/93951

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-support-resources#microsoftnetwork

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-limitations/networking-move-limitations

    5 people found this answer helpful.

  2. Luke Murray 10,526 Reputation points MVP
    2023-01-21T22:50:26.1766667+00:00

    Instead of using Azure Resource Mover to move your resources (which are made for stateful resources to be replicated to another region), try the Normal Move.

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-resource-group-and-subscription?WT.mc_id=AZ-MVP-5004796#use-the-portal

    Make sure you select Subscription (and not Region).

    I am assuming you are migrating to another subscription within the same tenancy?

    1 person found this answer helpful.

  3. Soumyadeep Sarkar 15 Reputation points
    2023-01-23T13:59:48.8833333+00:00

    I tried the subscription move in the same region from the Resource Group, however it gave the same error as the resource mover.

    Below is the RAW error for better clarity,

    {
      "code": "ResourceMoveProviderValidationFailed",
      "message": "Resource move validation failed. Please see details. Diagnostic information: timestamp '20230123T135536Z', subscription id '136b2ad3-3cf3-401f-80f0-66c2e2eafbd9', tracking id 'e8fe0eb6-407a-4478-9c89-79bda002c740', request correlation id '372464a9-3b72-4a4d-91a9-22b5ddc45c30'.",
      "details": [
        {
          "code": "CannotMoveResource",
          "target": "Microsoft.Network/virtualNetworks",
          "message": "Cannot move one or more resources in the request. Please check details for information about each resource.",
          "details": [
            {
              "code": "MoveNotSupported",
              "message": "Move for resource type publicIPAddresses is not supported. Move request contains resource /subscriptions/136b2ad3-3cf3-401f-80f0-66c2e2eafbd9/resourceGroups/prod-erp-rg/providers/Microsoft.Network/publicIPAddresses/prod-erp-publicip of that type."
            }
          ]
        }
      ]
    }
    
    0 comments No comments