Create Event Grid subscription for resource events
This template creates Event Grid subscription for either a resource group or Azure subscription. It sends the events to a WebHook. For information about deploying the template at the subscription level, see Deploy resources to an Azure subscription.
You need a WebHook endpoint for receiving the events. If you have one, pass that URI as the endpoint
parameter. If you do not have an existing endpoint, the template in the prereqs folder deploys a web app that displays the event messages. Deploy this template to your subscription. Pass that URI in the format https://<your-site>/api/updates/
For more information, see Create a message endpoint.
Tags: eventgrid, Microsoft.EventGrid/eventSubscriptions, Microsoft.Web/serverfarms, Microsoft.Web/sites, sourcecontrols