You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To create event subscriptions for Azure Communication Services resource, [sign in to Azure CLI](/cli/azure/authenticate-azure-cli). You can sign in running the ```az login``` command from the terminal and providing your credentials. Run the following command to create the event subscription for the resource:
23
23
@@ -34,7 +34,7 @@ az eventgrid event-subscription create
34
34
35
35
For a list of Communication Services events, see [Communication Services Events](../../../../../articles/event-grid/event-schema-communication-services.md).
36
36
37
-
## List Event Subscriptions
37
+
## List event subscriptions
38
38
39
39
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.
40
40
@@ -47,7 +47,7 @@ az eventgrid event-subscription update
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.
53
53
@@ -56,7 +56,7 @@ az eventgrid event-subscription list
To delete an existing event subscription by using [the Azure CLI](/cli/azure/get-started-with-azure-cli), use the [`az eventgrid event-subscription delete`](/cli/azure/eventgrid/event-subscription#az-eventgrid-event-subscription-delete) command.
To create an Event subscription for Azure Communication Services, use the following steps. This article shows how to create an Event subscription for Azure Communication Services to receive events via Webhook.
20
20
@@ -43,7 +43,7 @@ For more information on Communication Services events, see [Communication Servic
43
43
44
44
1. Enter the link to the webhook and Select **Confirm Selection**.
45
45
46
-
:::image type="content" source="../media/subscribe-through-portal/select-webhook-endpoint.png" alt-text="Screenshot highlighting the select webhook endpoint page in the Azure portal." lightbox="../media/subscribe-through-portal/select-webhook-endpoint.png":::
46
+
:::image type="content" source="../media/subscribe-through-portal/select-web-hook-endpoint.png" alt-text="Screenshot highlighting the select webhook endpoint page in the Azure portal." lightbox="../media/subscribe-through-portal/select-webhook-endpoint.png":::
47
47
48
48
1. In the **Filters** tab, add the names of the event types you want to filter in the subscription and add context attribute filters you want to use in the subscription. Then, select **Next: Additional features** at the bottom of the page.
49
49
@@ -56,7 +56,7 @@ For more information on Communication Services events, see [Communication Servic
56
56
1. When done, select **Create**.
57
57
58
58
59
-
## Update Event Subscription
59
+
## Update event subscription
60
60
61
61
To update an Event subscription for Azure Communication Services, use the following steps. This section shows how to update an Event subscription for Azure Communication Services to update the events you want to receive via Webhook.
62
62
@@ -76,12 +76,12 @@ To update an Event subscription for Azure Communication Services resource, first
76
76
:::image type="content" source="../media/subscribe-through-portal/select-additional-features.png" alt-text="Screenshot that shows the Additional features tab of the Update Event Subscription page." lightbox="../media/subscribe-through-portal/select-additional-features.png":::
77
77
78
78
1. To update the webhook to receive events, select on **Change** next to the webhook link and enter the new webhook endpoint.
79
-
:::image type="content" source="../media/subscribe-through-portal/update-webhook-endpoint.png" alt-text="Screenshot that shows the Change the webhook endpoint link in the Event Subscription page." lightbox="../media/subscribe-through-portal/update-webhook-endpoint.png":::
79
+
:::image type="content" source="../media/subscribe-through-portal/update-web-hook-endpoint.png" alt-text="Screenshot that shows the Change the webhook endpoint link in the Event Subscription page." lightbox="../media/subscribe-through-portal/update-webhook-endpoint.png":::
80
80
81
81
1. When done, select **Save**,
82
82
:::image type="content" source="../media/subscribe-through-portal/save-update.png" alt-text="Screenshot that shows the save button in the Azure portal." lightbox="../media/subscribe-through-portal/update-webhook-endpoint.png":::
83
83
84
-
## Delete Event Subscription
84
+
## Delete event subscription
85
85
86
86
To delete an Event subscription for Azure Communication Services, use the following steps.
@@ -23,7 +23,7 @@ First, install the Microsoft Azure Event Grid Management library for .NET with [
23
23
```csharp
24
24
dotnetaddpackageAzure.ResourceManager.EventGrid;
25
25
```
26
-
1.Include the Communication Services Management SDK in your C# project:
26
+
Include the Event Grid Management SDK in your C# project:
27
27
28
28
```csharp
29
29
usingMicrosoft.Azure.Management.EventGrid;
@@ -33,12 +33,12 @@ using Microsoft.Azure.Management.EventGrid.Models;
33
33
## Authenticating with Azure Identity library
34
34
35
35
### Prerequisites:
36
-
1. Create a Microsoft Entra application and Service Principal that can access the resources in your subscription by following the instructions [here](/entra/identity-platform/howto-create-service-principal-portal).
37
-
2. Create a new Client secret or upload a trusted certificate issued by a certificate authority following the instructions above. This secret or certificate should be stored in the Keyvault.
38
-
3. Give contributor or owner access to the subscription to that application following the instructions [here](/azure/role-based-access-control/quickstart-assign-role-user-portal).
39
-
4. Read more about authorizing access to Event Grid resources [here](/azure/event-grid/security-authorization).
36
+
1. Create a Microsoft Entra application and Service Principal and set up a client secret or trusted certificate issued by certificate authority by following the instructions [here](/entra/identity-platform/howto-create-service-principal-portal).
37
+
1. Store the secret or the certificate in the Azure Keyvault.
38
+
1. Give contributor or owner access to the subscription to that application following the instructions [here](/azure/role-based-access-control/quickstart-assign-role-user-portal).
39
+
1. Read more about authorizing access to Event Grid resources [here](/azure/event-grid/security-authorization).
40
40
41
-
The Azure Identity library provides Microsoft Entra ID (Formerly Azure Active Directory) token authentication support across the Azure SDK. It provides a set of TokenCredential implementations which can be used to construct Azure SDK clients which support Microsoft Entra token authentication. You can read more about it [here](/dotnet/api/overview/azure/identity-readme).
41
+
The Azure Identity library provides Microsoft Entra ID (Formerly Azure Active Directory) token authentication support across the Azure SDK. It provides a set of TokenCredential implementations, which can be used to construct Azure SDK clients that support Microsoft Entra token authentication. You can read more about it [here](/dotnet/api/overview/azure/identity-readme).
42
42
43
43
1. Include the Azure Identity client library for .NET with [NuGet](https://www.nuget.org/):
44
44
@@ -55,58 +55,57 @@ using Azure.Security.KeyVault.Secrets
Togetthesecretcredentials, youwillneedtoreaditfromtheKeyvaultyoucreatedinPrerequisite #2 using [SecretClient](/azure/key-vault/secrets/quick-create-net).
61
-
62
-
```csharp
63
-
// Authenticate the Keyvault client with DefaultAzureCredential and get the secret.
64
-
SecretClientsecretClient=newSecretClient(newUri("https://myvault.vault.azure.net/"), new DefaultAzureCredential());
To get the secret credentials, you will need to read it from the Keyvault you created in Prerequisite #2 using [CertificateClient](/azure/key-vault/certificates/quick-create-net).
85
-
86
-
Read more about the Microsoft Entra Application configuration Authority [here](/entra/identity-platform/msal-client-application-configuration)
87
-
88
-
```csharp
89
-
// Authenticate the certificate client with DefaultAzureCredential and get the certificate.
Togetthecertificatecredentials, youneedtoreaditfromtheKeyvaultyoucreatedinPrerequisite #2 using [CertificateClient](/azure/key-vault/certificates/quick-create-net).
First, make sure to install the Azure Communication Services module ```Az.EventGrid``` using the following command.
23
23
@@ -51,7 +51,7 @@ New-AzEventGridSubscription
51
51
52
52
For a list of Communication Services events, see [Communication Services Events](../../../../../articles/event-grid/event-schema-communication-services.md).
53
53
54
-
## List Event Subscriptions
54
+
## List event subscriptions
55
55
56
56
To list all the existing event subscriptions set up for an Azure Communication Services resource, by using the [Azure PowerShell](/powershell/azure/get-started-azureps), use the [`Get-AzEventGridSubscription`](/powershell/module/az.eventgrid/get-azeventgridsubscription) command.
To update an existing event subscription by using the [Azure PowerShell](/powershell/azure/get-started-azureps), use the [`Update-AzEventGridSubscription `](/powershell/module/az.eventgrid/update-azeventgridsubscription) command.
66
66
@@ -75,7 +75,7 @@ Update-AzEventGridSubscription
75
75
76
76
```
77
77
78
-
## Delete Event Subscription
78
+
## Delete event subscription
79
79
80
80
To delete an existing event subscription by using the [Azure PowerShell](/powershell/azure/get-started-azureps), use the [`Remove-AzEventGridSubscription`](/powershell/module/az.eventgrid/remove-azeventgridsubscription) command.
81
81
@@ -86,4 +86,4 @@ Get-AzResource
86
86
87
87
## Next steps
88
88
89
-
* For information on other commands, see [Az.EventGrid Powershell Module](/powershell/module/az.eventgrid/new-azeventgridsubscription).
89
+
* For information on other commands, see [Az.EventGrid PowerShell Module](/powershell/module/az.eventgrid/new-azeventgridsubscription).
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/events/includes/register-event-grid-resource-provider.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.date: 01/26/2024
6
6
ms.author: pgrandhi
7
7
---
8
8
9
-
## Register the Event Grid Resource Provider
9
+
## Register the event grid resource provider
10
10
11
11
This article describes how to register Event Grid Resource Provider. If you have used Event Grid before in the same subscription, skip to the next section.
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/events/includes/register-provider-cli.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.date: 01/27/2024
7
7
ms.author: pgrandhi
8
8
---
9
9
10
-
## Register Event Grid resource provider
10
+
## Register the event grid resource provider
11
11
12
12
1. If you haven't previously used Event Grid in your Azure subscription, you might need to register the Event Grid resource provider. Run the following command to register the provider:
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/events/includes/register-provider-powershell.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,9 @@ ms.date: 01/27/2024
7
7
ms.author: pgrandhi
8
8
---
9
9
10
-
## Register Event Grid resource provider
10
+
## Register the event grid resource provider
11
11
12
-
If you haven't previously used Event Grid in your Azure subscription, you may need to register the Event Grid resource provider. Run the following command:
12
+
If you have not previously used Event Grid in your Azure subscription, you may need to register the Event Grid resource provider. Run the following command:
0 commit comments