This template creates a new Azure Event Grid, then adds a WebHook subscription to it.
More details can be found here.
ARM Template for creating an Azure Event Grid + WebHook subscription
PowerShell
This template creates a new Azure Event Grid, then adds a WebHook subscription to it.
More details can be found here.