Moving Application Gateway to another subscription

Ben Harnett 6 Reputation points
2021-06-07T02:42:52.477+00:00

What is the best way to move an application gateway to another subscription?

I'm trying to move all resources on a resources group to another group under a different subscription but am getting these errors:

{"code":"ResourceMoveValidationFailed","message":"The resource batch move request has '2' validation errors. Diagnostic information: timestamp '20210607T021650Z', tracking Id 'e3565d3e-27e9-4d41-ba70-ebd10dc92ed7', request correlation Id '2b17ff7f-7137-458f-b71b-95d7096767fe'.","details":[{"code":"ResourceMoveNotSupported","target":"/subscriptions/c80f3f55-88c8-4c72-bf6d-867ded87ebd0/resourceGroups/bp-prod-rg-001/providers/Microsoft.Network/applicationGateways/bp-prod-agw-001","message":"Resource move is not supported for resource types 'Microsoft.Network/applicationGateways, Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies'."},{"code":"ResourceMoveNotSupported","target":"/subscriptions/c80f3f55-88c8-4c72-bf6d-867ded87ebd0/resourceGroups/bp-prod-rg-001/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies/bp-prod-waf-001","message":"Resource move is not supported for resource types 'Microsoft.Network/applicationGateways, Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies'."}]}

Clearly it says that it is moving is not supported so how do you do it, especially with a production system?

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,108 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. KALYANBRATA DHAR 16 Reputation points
    2021-06-07T18:01:41.277+00:00

    Are both the subscriptions in same tenant/ directory? If both the subscriptions are not in the same tenant/ directory, then move of App Gateway is not supported and you need to manually delete/ recreate the resource.

    0 comments No comments

  2. SvenGlöckner 441 Reputation points
    2023-07-14T10:05:30.95+00:00

    I'm getting the same error even when trying to move to another resource group.

    It seems clear that moving is impossible for Application Gateway. So we'll have to recreate it.

    Resource move is not supported for resource types 'Microsoft.Network/applicationGateways'
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.