Skip to content

Commit 05df307

Browse files
Merge pull request #251897 from spelluru/egriddomain0918
added links to samples
2 parents 46bf5c4 + d7d5c16 commit 05df307

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

articles/event-grid/how-to-event-domains.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.custom: devx-track-azurecli, devx-track-azurepowershell
1111
This article shows how to:
1212

1313
* Create an Event Grid domain
14-
* Subscribe to event grid topics
14+
* Subscribe to Event Grid topics
1515
* List keys
1616
* Publish events to a domain
1717

@@ -115,14 +115,14 @@ New-AzEventGridSubscription `
115115

116116
---
117117

118-
If you need a test endpoint to subscribe your events to, you can always deploy a [pre-built web app](https://github.com/Azure-Samples/azure-event-grid-viewer) that displays the incoming events. You can send your events to your test website at `https://<your-site-name>.azurewebsites.net/api/updates`.
118+
If you need a test endpoint to subscribe your events to, you can always deploy a [prebuilt web app](https://github.com/Azure-Samples/azure-event-grid-viewer) that displays the incoming events. You can send your events to your test website at `https://<your-site-name>.azurewebsites.net/api/updates`.
119119

120120
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure-Samples%2Fazure-event-grid-viewer%2Fmaster%2Fazuredeploy.json" target="_blank"><img src="../media/template-deployments/deploy-to-azure.svg" alt="Button to deploy to Azure."></a>
121121

122-
Permissions that are set for a topic are stored in Azure Active Directory and must be deleted explicitly. Deleting an event subscription won't revoke a users access to create event subscriptions if they've write access on a topic.
122+
Permissions that are set for a topic are stored in Microsoft Entra ID and must be deleted explicitly. Deleting an event subscription doesn't revoke a users access to create event subscriptions if they've write access on a topic.
123123

124124

125-
## Publish events to an Event Grid Domain
125+
## Publish events to an Event Grid domain
126126

127127
Publishing events to a domain is the same as [publishing to a custom topic](./post-to-custom-topic.md). However, instead of publishing to the custom topic, you publish all events to the domain endpoint. In the JSON event data, you specify the topic you wish the events to go to. The following array of events would result in event with `"id": "1111"` to topic `demotopic1` while event with `"id": "2222"` would be sent to topic `demotopic2`:
128128

@@ -190,6 +190,12 @@ Get-AzEventGridDomainKey `
190190

191191
And then use your favorite method of making an HTTP POST to publish your events to your Event Grid domain.
192192

193+
> [!NOTE]
194+
> For samples that use programming language SDKs to publish events to an Event Grid domain, use the following links:
195+
> - [.NET](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample2_PublishEventsToDomain.md#publishing-events-to-an-event-grid-domain)
196+
> - [Python](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_eg_events_to_a_domain.py)
197+
> - [Java](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/eventgrid/azure-messaging-eventgrid-cloudnative-cloudevents/src/samples/java/com/azure/messaging/eventgrid/cloudnative/cloudevents/samples/PublishNativeCloudEventToDomainAsync.java)
198+
193199
## Search lists of topics or subscriptions
194200

195201
To search and manage large number of topics or subscriptions, the Event Grid APIs support listing and pagination.

0 commit comments

Comments
 (0)