How to create Application Gateway using existing one on the same subscription

Priyanka Mahadik 21 Reputation points
2023-05-19T07:27:04.2666667+00:00

How we could spin a new Application gateway using existing Application gateway on the same subscription. Each configuration should be the same as the existing one.

Tried with a template but it got failed.

Kindly help me with the process.

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
957 questions
Azure FastTrack
Azure FastTrack
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.FastTrack: This tag is no longer in use. Please use 'Azure Startups' instead.
75 questions
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 47,421 Reputation points Microsoft Employee
    2023-05-22T15:17:25.2466667+00:00

    Hello @Priyanka Mahadik ,

    I understand that you would like to know how to create Application Gateway using existing one on the same subscription.

    You can export a template from an existing resource and modify it for your scenario. The exported template helps you understand the JSON syntax and properties that deploy your resources.

    The export template process attempts to create a usable template. However, most exported templates require some modifications before they can be used to deploy Azure resources.

    Export is not guaranteed to succeed. Export is not a reliable way to turn pre-existing resources into templates that are usable in production. It is better to create resources from scratch using hand-written Bicep file, ARM template or terraform.

    And there are some limitations in Export as mentioned in the below doc:

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/export-template-portal#limitations

    You can also use the readily available ARM/Bicep templates to deploy Application gateway by editing the template as per requirement.

    Refer: https://learn.microsoft.com/en-us/azure/application-gateway/quick-create-template

    https://learn.microsoft.com/en-us/samples/azure/azure-quickstart-templates/ag-docs-wafv2/

    https://learn.microsoft.com/en-us/azure/application-gateway/quick-create-bicep?tabs=CLI

    Refer the FAQ about ARM templates for more information: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/frequently-asked-questions

    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.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Alistair Ross 7,101 Reputation points Microsoft Employee
    2023-05-19T08:06:22.0066667+00:00

    Hello

    Details on how to deploy Azure Application Gateways via templates can be found here ARM / Bicep.

    If you are having issues with deploying via a template, you can check out the learn module here for running the ARM template test toolkit https://learn.microsoft.com/en-us/training/modules/arm-template-test/.

    If you would like me to have a look at you template, please share it here otherwise I hope this above helps solve your issues.

    Alistair

    0 comments No comments