CmdID / az / az eventgrid / az eventgrid namespace / az eventgrid namespace topic / az eventgrid namespace topic event-subscription
az eventgrid namespace topic event-subscription create
Create an event subscription of a namespace topic. Azure CLI extensions reference
1 example 6 options Its page in the Azure CLI extensions reference
Examples
Create event subscription
az eventgrid namespace topic event-subscription create -g rg --topic-name topic -n event-subscription --namespace-name name --delivery-configuration "{deliveryMode:Queue,queue:{receiveLockDurationInSeconds:60,maxDeliveryCount:4,eventTimeToLive:P1D}}"Identify-gName of resource group.--topic-nameName of the namespace topic.-nName of the event subscription to be created.--namespace-nameName of the namespace.--delivery-configurationInformation about the delivery configuration of the event subscription.Options
--delivery-configurationInformation about the delivery configuration of the event subscription.--event-delivery-schemaThe event delivery schema for the event subscription.--event-subscription-name, --name, -nName of the event subscription to be created.--filters-configurationInformation about the filter for the event subscription.--namespace-nameName of the namespace.--topic-nameName of the namespace topic.