Skip to content

Commit c88d0d0

Browse files
Merge pull request #265882 from jadacampbell/patch-6
Update create-event-subscription-az-cli.md
2 parents 5d9ec8f + 5e2431d commit c88d0d0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/communication-services/quickstarts/events/includes/create-event-subscription-az-cli.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ For a list of Communication Services events, see [Communication Services Events]
3939
To list all the existing event subscriptions set up for an Azure Communication Services resource, by using [the Azure CLI](/cli/azure/get-started-with-azure-cli), use the [`az eventgrid event-subscription list`](/cli/azure/eventgrid/event-subscription#az-eventgrid-event-subscription-list) command.
4040

4141
```azurecli-interactive
42-
az eventgrid event-subscription update
43-
--name EventsWebhookSubscription
44-
--source-resource-id /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Communication/CommunicationServices/<acsResourceName>
45-
--included-event-types Microsoft.Communication.SMSReceived Microsoft.Communication.SMSDeliveryReportReceived Microsoft.Communication.ChatMessageReceived
46-
--endpoint-type webhook
47-
--endpoint https://azureeventgridviewer.azurewebsites.net/api/updates
42+
az eventgrid event-subscription list
43+
--source-resource-id /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Communication/CommunicationServices/<acsResourceName>
4844
```
4945

5046
## Update event subscription
5147

5248
To update an existing event subscription by using [the Azure CLI](/cli/azure/get-started-with-azure-cli), use the [`az eventgrid event-subscription update`](/cli/azure/eventgrid/event-subscription#az-eventgrid-event-subscription-update) command.
5349

5450
```azurecli-interactive
55-
az eventgrid event-subscription list
56-
--source-resource-id /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Communication/CommunicationServices/<acsResourceName>
51+
az eventgrid event-subscription update
52+
--name EventsWebhookSubscription
53+
--source-resource-id /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Communication/CommunicationServices/<acsResourceName>
54+
--included-event-types Microsoft.Communication.SMSReceived Microsoft.Communication.SMSDeliveryReportReceived Microsoft.Communication.ChatMessageReceived
55+
--endpoint-type webhook
56+
--endpoint https://azureeventgridviewer.azurewebsites.net/api/updates
5757
```
5858

5959
## Delete event subscription

0 commit comments

Comments
 (0)