Skip to content

Commit ff152fb

Browse files
committed
Acrolynx
1 parent 0e22869 commit ff152fb

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

articles/event-grid/kubernetes/create-topic-subscription.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Azure Event Grid on Kubernetes - Webhook as event handler
3-
description: This article describes how to create an event grid topic on a Kubernetes cluster that's connected to Azure Arc and then create a subscription for the topic.
3+
description: This article describes how to create an Event Grid topic on a Kubernetes cluster that's connected to Azure Arc and then create a subscription for the topic.
44
author: jfggdl
55
ms.subservice: kubernetes
66
ms.author: jafernan
@@ -11,7 +11,7 @@ ms.devlang: azurecli
1111
---
1212

1313
# Route cloud events to Webhooks with Azure Event Grid on Kubernetes
14-
In this quickstart, you'll create a topic in Event Grid on Kubernetes, create a subscription for the topic, and then send a sample event to the topic to test the scenario.
14+
In this quickstart, you create a topic in Event Grid on Kubernetes, create a subscription for the topic, and then send a sample event to the topic to test the scenario.
1515

1616
[!INCLUDE [preview-feature-note.md](../includes/preview-feature-note.md)]
1717

@@ -23,7 +23,7 @@ In this quickstart, you'll create a topic in Event Grid on Kubernetes, create a
2323

2424

2525
## Create a custom location
26-
As an Azure location extension, a custom location lets you use your Azure Arc-enabled Kubernetes cluster as a target location for deploying resources such as Event Grid topics. A custom location represents a namespace in the cluster and it's the place where topics and event subscriptions are deployed. In this section, you'll create a custom location.
26+
As an Azure location extension, a custom location lets you use your Azure Arc-enabled Kubernetes cluster as a target location for deploying resources such as Event Grid topics. A custom location represents a namespace in the cluster and it's the place where topics and event subscriptions are deployed. In this section, you create a custom location.
2727

2828
1. Declare the following variables to hold values of the Azure Arc cluster, resource group, and custom location names. Copy these statements to an editor, replace the values, and then copy/paste to the bash window.
2929

@@ -42,7 +42,7 @@ As an Azure location extension, a custom location lets you use your Azure Arc-en
4242
```azurecli-interactive
4343
clusterextensionid=$(az k8s-extension show --name eventgrid-ext --cluster-type connectedClusters -c $arcclustername -g $resourcegroupname --query id -o tsv)
4444
```
45-
1. Create a custom location using the above two values. Update custom location and resource group names before running the command.
45+
1. Create a custom location using the two values from the previous step. Update custom location and resource group names before running the command.
4646
4747
```azurecli-interactive
4848
az customlocation create -n $customlocationname -g $resourcegroupname --namespace arc --host-resource-id $hostresourceid --cluster-extension-ids $clusterextensionid
@@ -56,7 +56,7 @@ As an Azure location extension, a custom location lets you use your Azure Arc-en
5656
For more information on creating custom locations, see [Create and manage custom locations on Azure Arc-enabled Kubernetes](../../azure-arc/kubernetes/custom-locations.md).
5757
5858
## Create a topic
59-
In this section, you'll create a topic in the custom location you created in the previous step. Update resource group and event grid topic names before running the command. Update the location if you are using a location other than East US.
59+
In this section, you create a topic in the custom location you created in the previous step. Update resource group and Event Grid topic names before running the command. Update the location if you're using a location other than East US.
6060
6161
1. Declare a variable to hold the topic name.
6262
@@ -73,7 +73,7 @@ In this section, you'll create a topic in the custom location you created in the
7373
7474
## Create a message endpoint
7575
76-
Before you create a subscription for the custom topic, create an endpoint for the event message. Typically, the endpoint takes actions based on the event data. To simplify this quickstart, you deploy a [pre-built web app](https://github.com/Azure-Samples/azure-event-grid-viewer) that displays the event messages. The deployed solution includes an App Service plan, an App Service web app, and source code from GitHub.
76+
Before you create a subscription for the custom topic, create an endpoint for the event message. Typically, the endpoint takes actions based on the event data. To simplify this quickstart, you deploy a [prebuilt web app](https://github.com/Azure-Samples/azure-event-grid-viewer) that displays the event messages. The deployed solution includes an App Service plan, an App Service web app, and source code from GitHub.
7777
7878
1. In the article page, select **Deploy to Azure** to deploy the solution to your subscription. In the Azure portal, provide values for the parameters.
7979
@@ -87,7 +87,7 @@ Before you create a subscription for the custom topic, create an endpoint for th
8787
![View new site](../media/custom-event-quickstart-portal/view-site.png)
8888
8989
## Create a subscription
90-
Subscribers can register for events published to a topic. To receive any event, you'll need to create an Event Grid subscription for a topic of interest. An event subscription defines the destination to which those events are sent. To learn about all the destinations or handlers supported, see [Event handlers](event-handlers.md).
90+
Subscribers can register for events published to a topic. To receive any event, you need to create an Event Grid subscription for a topic of interest. An event subscription defines the destination to which those events are sent. To learn about all the destinations or handlers supported, see [Event handlers](event-handlers.md).
9191
9292
To create an event subscription with a WebHook (HTTPS endpoint) destination, enter a name for the event subscription, update the name of the web site, and run the following command.
9393
@@ -100,7 +100,7 @@ az eventgrid event-subscription create --name <EVENT SUBSCRIPTION NAME> --source
100100
For more information about the CLI command, see [`az eventgrid event-subscription create`](/cli/azure/eventgrid/event-subscription#az-eventgrid-event-subscription-create).
101101

102102
## Send events to the topic
103-
1. Run the following command to get the **endpoint** for the topic: After you copy and paste the command, update the **topic name** and **resource group name** before you run the command. You'll publish sample events to this topic endpoint.
103+
1. Run the following command to get the **endpoint** for the topic: After you copy and paste the command, update the **topic name** and **resource group name** before you run the command. You publish sample events to this topic endpoint.
104104

105105
```azurecli
106106
az eventgrid topic show --name $topicname -g $resourcegroupname --query "endpoint" --output tsv
@@ -132,7 +132,7 @@ For more information about the CLI command, see [`az eventgrid event-subscriptio
132132
133133
If the topic endpoint URL from step 1 is a private IP address, such as in the case when Event Grid broker's service type is ClusterIP, you can execute **Curl** from within another pod in the cluster to have access to that IP address. For example, you can perform the following steps:
134134
135-
1. Create a manifest file with the following configuration. You may want to adjust the ``dnsPolicy`` according to your needs. Consult [DNS for Services and Pods](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/) for more information.
135+
1. Create a manifest file with the following configuration. You may want to adjust the ``dnsPolicy`` according to your needs. For more information, see [DNS for Services and Pods](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/).
136136
137137
```yml
138138
apiVersion: v1
@@ -159,7 +159,7 @@ For more information about the CLI command, see [`az eventgrid event-subscriptio
159159
kubectl exec --stdin --tty test-pod -- /bin/bash
160160
```
161161
162-
At this point, you have a shell session from a running container in the cluster from which you can execute the **Curl** command described in an earlier step above.
162+
At this point, you have a shell session from a running container in the cluster from which you can execute the **Curl** command described in an earlier step.
163163
164164
> [!NOTE]
165165
> To learn how to send cloud events using programming languages, see the following samples:

articles/event-grid/kubernetes/event-handlers.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ An event handler is any system that exposes an endpoint and is the destination f
1313

1414
The way to configure Event Grid to send events to a destination is through the creation of an event subscription. It can be done through [Azure CLI](/cli/azure/eventgrid/event-subscription#az-eventgrid-event-subscription-create), [management SDK](../sdk-overview.md#management-sdks), or using direct HTTPs calls using the [2020-10-15-preview API](/rest/api/eventgrid/controlplane-version2021-10-15-preview/event-subscriptions/create-or-update) version.
1515

16-
In general, Event Grid on Kubernetes can send events to any destination via **Webhooks**. Webhooks are HTTP(s) endpoints exposed by a service or workload to which Event Grid has access. The webhook can be a workload hosted in the same cluster, in the same network space, on the cloud, on-prem or anywhere that Event Grid can reach.
16+
In general, Event Grid on Kubernetes can send events to any destination via **Webhooks**. Webhooks are HTTP(s) endpoints exposed by a service or workload to which Event Grid has access. The webhook can be a workload hosted in the same cluster, in the same network space, on the cloud, on-premises or anywhere that Event Grid can reach.
1717

1818
[!INCLUDE [preview-feature-note.md](../includes/preview-feature-note.md)]
1919

@@ -38,10 +38,10 @@ Event Grid on Kubernetes offers a good level of feature parity with Azure Event
3838

3939
1. Use [REST api version 2020-10-15-preview](/rest/api/eventgrid/controlplane-version2021-10-15-preview/event-subscriptions).
4040
2. [Azure Event Grid trigger for Azure Functions](../../azure-functions/functions-bindings-event-grid-trigger.md?tabs=csharp%2Cconsole) isn't supported. You can use a WebHook destination type to deliver events to Azure Functions.
41-
3. There's no [dead letter location](../manage-event-delivery.md#set-dead-letter-location) support. That means that you cannot use ``properties.deadLetterDestination`` in your event subscription payload.
41+
3. There's no [dead letter location](../manage-event-delivery.md#set-dead-letter-location) support. That means that you can't use ``properties.deadLetterDestination`` in your event subscription payload.
4242
4. Azure Relay's Hybrid Connections as a destination isn't supported yet.
4343
5. Only CloudEvents schema is supported. The supported schema value is "[CloudEventSchemaV1_0](/rest/api/eventgrid/controlplane-version2021-10-15-preview/event-subscriptions/create-or-update#eventdeliveryschema)". Cloud Events schema is extensible and based on open standards.
44-
6. Labels ([properties.labels](/rest/api/eventgrid/controlplane-version2021-10-15-preview/event-subscriptions/create-or-update#request-body)) aren't applicable to Event Grid on Kubernetes. Hence, they are not available.
44+
6. Labels ([properties.labels](/rest/api/eventgrid/controlplane-version2021-10-15-preview/event-subscriptions/create-or-update#request-body)) aren't applicable to Event Grid on Kubernetes. Hence, they aren't available.
4545
7. [Delivery with resource identity](/rest/api/eventgrid/controlplane-version2021-10-15-preview/event-subscriptions/create-or-update#deliverywithresourceidentity) isn't supported. So, all properties for [Event Subscription Identity](/rest/api/eventgrid/controlplane-version2021-10-15-preview/event-subscriptions/create-or-update#eventsubscriptionidentity) aren't supported.
4646
8. [Destination endpoint validation](../webhook-event-delivery.md#endpoint-validation-with-event-grid-events) isn't supported yet.
4747

@@ -74,7 +74,7 @@ To publish to a WebHook endpoint, set the `endpointType` to `WebHook` and provid
7474

7575
To publish to an Azure Event Grid cloud endpoint, set the `endpointType` to `WebHook` and provide:
7676

77-
* **endpointUrl**: Azure event grid topic URL in the cloud with the API version parameter set to **2018-01-01** and `aeg-sas-key` set to the URL encoded SAS key.
77+
* **endpointUrl**: Azure Event Grid topic URL in the cloud with the API version parameter set to **2018-01-01** and `aeg-sas-key` set to the URL encoded SAS key.
7878

7979
```json
8080
{
@@ -91,7 +91,7 @@ To publish to an Azure Event Grid cloud endpoint, set the `endpointType` to `Web
9191

9292
## Event Hubs
9393

94-
To publish to an Event Hub, set the `endpointType` to `eventHub` and provide:
94+
To publish to an Event Hubs, set the `endpointType` to `eventHub` and provide:
9595

9696
* **resourceId**: resource ID for the specific event hub.
9797

articles/event-grid/kubernetes/features.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.topic: conceptual
1111
# Event Grid on Kubernetes with Azure Arc features
1212
Event Grid on Kubernetes offers a rich set of features that help you integrate your Kubernetes workloads and realize hybrid architectures. It shares the same [rest API](/rest/api/eventgrid/controlplane-version2021-10-15-preview/topics) (starting with version 2020-10-15-preview), [Event Grid CLI](/cli/azure/eventgrid), Azure portal experience, [management SDKs](../sdk-overview.md#management-sdks), and [data plane SDKs](../sdk-overview.md#data-plane-sdks) with Azure Event Grid, the other edition of the same service. When you're ready to publish events, you can use the [data plane SDK examples provided in different languages](https://devblogs.microsoft.com/azure-sdk/event-grid-ga/) that work for both editions of Event Grid.
1313

14-
Although Event Grid on Kubernetes and Azure Event Grid share many features and the goal is to provide the same user experience, there are some differences given the unique requirements they seek to meet and the stage in which they are on their software lifecycle. For example, the only type of topic available in Event Grid on Kubernetes are Event Grid Topics that sometimes are also referred as custom topics. Other types of topics (see below) are either not applicable or support for them is not yet available. The main differences between the two editions of Event Grid are presented in the table below.
14+
Although Event Grid on Kubernetes and Azure Event Grid share many features and the goal is to provide the same user experience, there are some differences given the unique requirements they seek to meet and the stage in which they are on their software lifecycle. For example, the only type of topic available in Event Grid on Kubernetes are Event Grid topics that sometimes are also referred as custom topics. Other types of topics are either not applicable or support for them isn't yet available. The main differences between the two editions of Event Grid are presented in the following table.
1515

1616
[!INCLUDE [preview-feature-note.md](../includes/preview-feature-note.md)]
1717

@@ -20,22 +20,22 @@ Although Event Grid on Kubernetes and Azure Event Grid share many features and t
2020

2121
| Feature | Event Grid on Kubernetes | Azure Event Grid |
2222
|:--|:-:|:-:|
23-
| [Event Grid Topics](/rest/api/eventgrid/controlplane-version2021-10-15-preview/topics) |||
23+
| [Event Grid topics](/rest/api/eventgrid/controlplane-version2021-10-15-preview/topics) |||
2424
| [CNCF Cloud Events schema](https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md) |||
2525
| Event Grid and custom schemas |* ||
2626
| Reliable delivery |||
2727
| Metrics |** ||
2828
| Azure Monitor |||
2929
| [Dead-letter location](../manage-event-delivery.md#set-dead-letter-location) |||
30-
| [Forward events to another event grid topic](event-handlers.md#azure-event-grid) |||
30+
| [Forward events to another Event Grid topic](event-handlers.md#azure-event-grid) |||
3131
| [System Topics](../system-topics.md) |||
3232
| [Domain Topics](../event-domains.md) |||
3333
| [Partner Events](../partner-events-overview.md) |||
3434
| [Destination endpoint validation](../webhook-event-delivery.md#endpoint-validation-with-event-grid-events) |||
3535
| [Azure Event Grid trigger for Azure Functions](../../azure-functions/functions-bindings-event-grid-trigger.md) |||
3636
| Azure Relay's Hybrid Connections as a destination |||
3737
| [Advanced filtering](filter-events.md) |*** ||
38-
| [Webhook AuthN/AuthZ with AAD](../secure-webhook-delivery.md) |||
38+
| [Webhook AuthN/AuthZ with Azure AD](../secure-webhook-delivery.md) |||
3939
| [Event delivery with resource identity](/rest/api/eventgrid/controlplane-version2021-10-15-preview/event-subscriptions/create-or-update) |||
4040
| Same set of data plane SDKs |||
4141
| Same set of management SDKs |||

0 commit comments

Comments
 (0)