Skip to content

Commit b23d228

Browse files
committed
events
1 parent ddcf756 commit b23d228

File tree

6 files changed

+48
-41
lines changed

6 files changed

+48
-41
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ author: pgrandhi
33
ms.service: azure-communication-services
44
ms.custom: devx-track-azurecli
55
ms.topic: include
6-
ms.date: 01/27/2024
6+
ms.date: 06/28/2024
77
ms.author: pgrandhi
88
---
99

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: pgrandhi
33
ms.service: azure-communication-services
44
ms.topic: include
5-
ms.date: 01/26/2024
5+
ms.date: 06/28/2024
66
ms.author: pgrandhi
77
---
88

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: pgrandhi
33
ms.service: azure-communication-services
44
ms.topic: include
5-
ms.date: 01/28/2024
5+
ms.date: 06/28/2025
66
ms.author: pgrandhi
77
---
88

@@ -23,6 +23,7 @@ First, install the Microsoft Azure Event Grid Management library for .NET with [
2323
```csharp
2424
dotnet add package Azure.ResourceManager.EventGrid;
2525
```
26+
2627
Include the Event Grid Management SDK in your C# project:
2728

2829
```csharp
@@ -33,8 +34,11 @@ using Microsoft.Azure.Management.EventGrid.Models;
3334
## Authenticate with Azure Identity library
3435

3536
1. Create a Microsoft Entra application and Service Principal and set up a client secret or trusted certificate issued by certificate authority. Follow the instructions at [Register a Microsoft Entra app and create a service principal](/entra/identity-platform/howto-create-service-principal-portal).
37+
3638
1. Store the secret or the certificate in the Azure Keyvault.
39+
3740
1. Give contributor or owner access to the subscription to that application following the instructions at [Grant a user access to Azure resources using the Azure portal](/azure/role-based-access-control/quickstart-assign-role-user-portal).
41+
3842
1. Read more about [Authorizing access to Event Grid resources](/azure/event-grid/security-authorization).
3943

4044
The Azure Identity library provides Microsoft Entra ID token authentication support across the Azure SDK. It provides a set of TokenCredential implementations, which you can use to construct Azure SDK clients that support Microsoft Entra token authentication. For more information, see [Azure Identity client library for .NET](/dotnet/api/overview/azure/identity-readme).
@@ -159,7 +163,7 @@ await eventGridClient.EventSubscriptions.UpdateAsync(
159163

160164
## Delete event Subscription
161165

162-
This code sample shows how to delete the event subscription for the webhook subscriber endpoint.
166+
This sample code shows how to delete the event subscription for the webhook subscriber endpoint.
163167

164168
```csharp
165169
string webhookUri = $"<webhookUri>";

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ author: pgrandhi
33
ms.service: azure-communication-services
44
ms.custom: devx-track-azurepowershell
55
ms.topic: include
6-
ms.date: 01/27/2024
6+
ms.date: 06/28/2025
77
ms.author: pgrandhi
88
---
99

@@ -24,18 +24,19 @@ First, install the Azure Communication Services module ```Az.EventGrid``` using
2424
```PowerShell
2525
PS C:\> Install-Module Az.EventGrid
2626
```
27+
2728
1. Sign in to your Azure subscription with the [Connect-AzAccount](/powershell/module/az.accounts/connect-azaccount) command and follow the on-screen directions.
2829

29-
```PowerShell
30-
Connect-AzAccount
31-
```
30+
```PowerShell
31+
Connect-AzAccount
32+
```
3233

3334
2. If your identity is associated with more than one subscription, then set your active subscription to **subscription of the Web PubSub** resource that you want to move.
3435

35-
```PowerShell
36-
$context = Get-AzSubscription -SubscriptionId <subscription-id>
37-
Set-AzContext $context
38-
```
36+
```PowerShell
37+
$context = Get-AzSubscription -SubscriptionId <subscription-id>
38+
Set-AzContext $context
39+
```
3940

4041
To create an event subscription using the [Azure PowerShell](/powershell/azure/get-started-azureps), use the [`New-AzEventGridSubscription`](/powershell/module/az.eventgrid/new-azeventgridsubscription) command.
4142

@@ -86,4 +87,4 @@ Get-AzResource
8687

8788
## Next steps
8889

89-
- For information on other commands, see [Az.EventGrid PowerShell Module](/powershell/module/az.eventgrid/new-azeventgridsubscription).
90+
- For information about other commands, see [Az.EventGrid PowerShell Module](/powershell/module/az.eventgrid/new-azeventgridsubscription).

articles/communication-services/quickstarts/events/subscribe-to-events.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: Subscribe to Azure Communication Services Events
3-
titleSuffix: An Azure Communication Services quickstart
2+
title: Subscribe to events
3+
titleSuffix: An Azure Communication Services article
44
description: This article describes how to subscribe to events from Azure Communication Services.
55
author: pgrandhi
66
manager: rasubram
77
services: azure-communication-services
88
ms.author: pgrandhi
9-
ms.date: 01/26/2024
9+
ms.date: 06/28/2025
1010
ms.topic: quickstart
1111
ms.service: azure-communication-services
1212
ms.subservice: arm
@@ -15,7 +15,7 @@ ms.custom: mode-other, devx-track-azurecli, devx-track-azurepowershell
1515
ms.devlang: azurecli
1616
---
1717

18-
# Subscribe to Azure Communication Services events
18+
# Subscribe to events
1919

2020
This article describes how to subscribe to events from Azure Communication Services through the portal, Azure CLI, PowerShell, and .NET SDK.
2121

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,39 @@
11
---
2-
title: Quickstart - Handle voice and video calling events
3-
titleSuffix: An Azure Communication Services quickstart
4-
description: Learn how to handle voice and video calling events using Azure Communication Services.
2+
title: View calling events
3+
titleSuffix: An Azure Communication Services article
4+
description: This article describes how to handle voice and video calling events using Azure Communication Services.
55
author: laithrodan
66
manager: micahvivion
77
services: azure-communication-services
88
ms.author: laithrodan
9-
ms.date: 12/10/2021
9+
ms.date: 06/28/2025
1010
ms.topic: quickstart
1111
ms.service: azure-communication-services
1212
ms.subservice: calling
1313
ms.custom: mode-other
1414
---
15-
# Quickstart: Handle voice and video calling events
15+
16+
# View calling events
17+
1618
[!INCLUDE [Public Preview](../../includes/public-preview-include-document.md)]
1719

18-
Get started with Azure Communication Services by using Azure Event Grid to handle Communication Services voice and video calling events.
20+
You can use Azure Event Grid to handle Communication Services voice and video calling events.
1921

2022
## About Azure Event Grid
2123

22-
[Azure Event Grid](../../../event-grid/overview.md) is a cloud-based eventing service. In this article, you'll learn how to subscribe to events for [communication service events](../../../event-grid/event-schema-communication-services.md), and trigger an event to view the result. Typically, you send events to an endpoint that processes the event data and takes actions. In this article, we'll send the events to a web app that collects and displays the messages.
24+
[Azure Event Grid](../../../event-grid/overview.md) is a cloud-based eventing service. This article describes how to subscribe to events for [communication service events](../../../event-grid/event-schema-communication-services.md), and trigger an event to view the result. Typically, you send events to an endpoint that processes the event data and takes actions. In this article, we send the events to a web app that collects and displays the messages.
2325

2426
## Prerequisites
27+
2528
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
26-
- An Azure Communication Service resource. Further details can be found in the [Create an Azure Communication Services resource](../create-communication-resource.md) quickstart.
29+
- An Azure Communication Service resource. For more information, see [Create an Azure Communication Services resource](../create-communication-resource.md).
2730
- An Azure Communication Services voice and video calling enabled client. [Add voice calling to your app](../voice-video-calling/getting-started-with-calling.md).
2831

29-
## Setting up
32+
## Set up
3033

3134
### Enable Event Grid resource provider
3235

33-
If you haven't previously used Event Grid in your Azure subscription, you may need to register the Event Grid resource provider following the steps below:
36+
If you're new to Event Grid, you might need to register the Event Grid resource provider following these steps:
3437

3538
In the Azure portal:
3639

@@ -40,11 +43,11 @@ In the Azure portal:
4043
4. Find **Microsoft.EventGrid**.
4144
5. If not registered, select **Register**.
4245

43-
It may take a moment for the registration to finish. Select **Refresh** to update the status. When **Status** is **Registered**, you're ready to continue.
46+
It might take a moment for the registration to finish. Select **Refresh** to update the status. When **Status** is **Registered**, you're ready to continue.
4447

4548
### Event Grid Viewer deployment
4649

47-
For this quickstart, we will use the [Azure Event Grid Viewer Sample](/samples/azure-samples/azure-event-grid-viewer/azure-event-grid-viewer/) to view events in near-real time. This will provide the user with the experience of a real-time feed. In addition, the payload of each event should be available for inspection as well.
50+
In this article, we use the [Azure Event Grid Viewer Sample](/samples/azure-samples/azure-event-grid-viewer/azure-event-grid-viewer/) to view events in near-real time. This provides the user with the experience of a real-time feed. In addition, the payload of each event should be available for inspection as well.
4851

4952
## Subscribe to voice and video calling events using web hooks
5053

@@ -56,7 +59,7 @@ Press **Add Event Subscription** to enter the creation wizard.
5659

5760
On the **Create Event Subscription** page, Enter a **name** for the event subscription.
5861

59-
You can subscribe to specific events, to tell Event Grid which of the voice and video events you want to subscribe to, and where to send the events. Select the events you'd like to subscribe to from the dropdown menu. For voice and video calling you'll have the option to choose `Call Started`, `Call Ended`, `Call Participant added` and `Call Participant Removed`.
62+
You can subscribe to specific events, to tell Event Grid which of the voice and video events you want to subscribe to, and where to send the events. Select the events you want to subscribe to from the dropdown menu. For voice and video calling, you can choose `Call Started`, `Call Ended`, `Call Participant added`, or `Call Participant Removed`.
6063

6164
If you're prompted to provide a **System Topic Name**, feel free to provide a unique string. This field has no impact on your experience and is used for internal telemetry purposes.
6265

@@ -70,37 +73,36 @@ Select **Web Hook** for **Endpoint type**.
7073

7174
For **Endpoint**, click **Select an endpoint**, and enter the URL of your web app.
7275

73-
In this case, we will use the URL from the [Azure Event Grid Viewer Sample](/samples/azure-samples/azure-event-grid-viewer/azure-event-grid-viewer/) we set up earlier in the quickstart. The URL for the sample will be in the format: `https://{{site-name}}.azurewebsites.net/api/updates`
76+
In this case, we use the URL from the [Azure Event Grid Viewer Sample](/samples/azure-samples/azure-event-grid-viewer/azure-event-grid-viewer/) we set up earlier in the quickstart. The URL for the sample uses the format: `https://{{site-name}}.azurewebsites.net/api/updates`
7477

7578
Then select **Confirm Selection**.
7679

7780
:::image type="content" source="./../sms/media/handle-sms-events/select-events-create-selectwebhook-epadd.png" alt-text="Screenshot showing confirming a Web Hook Endpoint.":::
7881

79-
## Viewing voice and video calling events
82+
## View voice and video calling events
8083

81-
### Triggering voice and video calling events
84+
### Trigger voice and video calling events
8285

8386
To view event triggers, we must first generate the events.
8487

85-
- `Call Started` events are generated when a Azure Communication Services voice and video call is started. To trigger this event, just start a call attached to your Communication Services resource.
86-
- `Call Ended` events are generated when a Azure Communication Services voice and video call is ended. To trigger this event, just end a call attached to your Communication Services resource.
88+
- `Call Started` events are generated when an Azure Communication Services voice and video call is started. To trigger this event, just start a call attached to your Communication Services resource.
89+
- `Call Ended` events are generated when an Azure Communication Services voice and video call is ended. To trigger this event, just end a call attached to your Communication Services resource.
8790
- `Call Participant Added` events are generated when a participant is added to an Azure Communication Services voice and video call. To trigger this event, add a participant to an Azure Communication Services voice and video call attached to your Communication Services resource.
8891
- `Call Participant Removed` events are generated when a participant is removed from an Azure Communication Services voice and video call. To trigger this event, remove a participant from an Azure Communication Services voice and video call attached to your Communication Services resource.
8992

9093
Check out the full list of [events supported by Azure Communication Services](../../../event-grid/event-schema-communication-services.md).
9194

92-
### Receiving voice and video calling events
95+
### Receive voice and video calling events
9396

94-
Once you complete either action above you will notice that voice and video calling events are sent to your endpoint. These events will show up in the [Azure Event Grid Viewer Sample](/samples/azure-samples/azure-event-grid-viewer/azure-event-grid-viewer/) we set up at the beginning. You can press the eye icon next to the event to see the entire payload.
97+
Once you complete either action of the previous actions, you notice voice and video calling events are sent to your endpoint. These events show up in the [Azure Event Grid Viewer Sample](/samples/azure-samples/azure-event-grid-viewer/azure-event-grid-viewer/) we set up at the beginning. You can press the eye icon next to the event to see the entire payload.
9598

9699
Learn more about the [event schemas and other eventing concepts](../../../event-grid/event-schema-communication-services.md).
97100

98101
## Clean up resources
99102

100103
If you want to clean up and remove a Communication Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it. Learn more about [cleaning up resources](../create-communication-resource.md#clean-up-resources).
101104

105+
## Related articles
102106

103-
You may also want to:
104-
105-
- [Learn about event handling concepts](../../../event-grid/event-schema-communication-services.md)
106-
- [Learn about Event Grid](../../../event-grid/overview.md)
107+
- [Learn about event handling concepts](../../../event-grid/event-schema-communication-services.md)
108+
- [Learn about Event Grid](../../../event-grid/overview.md)

0 commit comments

Comments
 (0)