Hello @Andrea Ciciliano ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you would like to know if it is possible to move an Application Gateway between two subscriptions.
Application gateways and WAF policies are not supported for move across resource groups/subscriptions/regions.
So, the only option is to recreate the Application gateway in the new subscription.
However, to minimize downtime, you could follow a few steps as below:
- You can export your existing App gateway configuration via ARM template, Bicep, PowerShell, CLI, etc.
- You can either export template from your existing resource group or the Application gateway.
Refer: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/export-template-portal
https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/export-template-cli
https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/export-template-powershell
- Deploy the dependent resources such Key vaults and upload certificates.
- Modify the exported template per your requirement and then deploy the Application gateway in the new subscription using that template.
- Do a DNS swap to the newly provisioned application gateway (meaning point your DNS name or custom domain to the newly created application gateway).
- Once the newly created Application gateway is fully provisioned and working, you can delete your old gateway.
This should result in almost no downtime.
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.