Skip to content

Commit f4216ae

Browse files
authored
Merge pull request MicrosoftDocs#36770 from helgeu/master
az eventgrid event-subscription create has changed
2 parents a48437a + ef401ec commit f4216ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/event-grid/custom-event-quickstart.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ The endpoint for your web app must include the suffix `/api/updates/`.
8080
endpoint=https://$sitename.azurewebsites.net/api/updates
8181
8282
az eventgrid event-subscription create \
83-
-g gridResourceGroup \
84-
--topic-name $topicname \
85-
--name demoViewerSub \
83+
--source-resource-id "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/topics/$topicname"
84+
--name demoViewerSub
8685
--endpoint $endpoint
86+
8787
```
8888

8989
View your web app again, and notice that a subscription validation event has been sent to it. Select the eye icon to expand the event data. Event Grid sends the validation event so the endpoint can verify that it wants to receive event data. The web app includes code to validate the subscription.

0 commit comments

Comments
 (0)