Create a Web App protected by Application Gateway v2
This template creates an Azure Web App with Access Restriction for an Application Gateway v2.
The Application Gateway is deployed in a vNet (subnet) which has the 'Microsoft.Web' Service Endpoint enabled. The Web App restricts access to traffic from a subnet. By default, everything is created with generated names, however, you can easily modify the template to use other default values or parameterize values. You can also 'bring your own' subnet, web app, application gateway or public ip, if you have any of the items already created.
Tags: web-app, application-gateway, service-endpoint, Microsoft.Network/virtualNetworks, Microsoft.Web/serverfarms, Microsoft.Web/sites, Microsoft.Network/publicIPAddresses, Microsoft.Network/applicationGateways