question

BenHarnett-2063 avatar image
0 Votes"
BenHarnett-2063 asked KALYANBRATADHAR-8648 answered

Moving Application Gateway to another subscription

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

KALYANBRATADHAR-8648 avatar image
0 Votes"
KALYANBRATADHAR-8648 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.