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
In this step, you create the Azure resources. The steps used in this tutorial create a set of secure-by-default resources that include App Service and Azure Database for PostgreSQL. For the creation process, you'll specify:
162
146
163
147
* The **Name** for the web app. It's the name used as part of the DNS name for your webapp in the form of `https://<app-name>.azurewebsites.net`.
Copy file name to clipboardExpand all lines: articles/container-apps/firewall-integration.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
@@ -17,7 +17,7 @@ You can lock down a network via NSGs with more restrictive rules than the defaul
17
17
18
18
In the workload profiles environment, user-defined routes (UDRs) and [securing outbound traffic with a firewall](./networking.md#configuring-udr-with-azure-firewall) are supported. When using an external workload profiles environment, inbound traffic to Azure Container Apps is routed through the public IP that exists in the [managed resource group](./networking.md#workload-profiles-environment-2) rather than through your subnet. This means that locking down inbound traffic via NSG or Firewall on an external workload profiles environment isn't supported. For more information, see [Networking in Azure Container Apps environments](./networking.md#user-defined-routes-udr).
19
19
20
-
In the Consumption only environment, custom user-defined routes (UDRs). In the Consumption only environment, express routes are not supported, and custom user-defined routes (UDRs) have limited support. For more details on what level of UDR support is available on Consumption only environment, see the [FAQ](faq.yml#do-consumption-only-environments-support-custom-user-defined-routes-).
20
+
In the Consumption only environment, express routes are not supported, and custom user-defined routes (UDRs) have limited support. For more details on what level of UDR support is available on Consumption only environment, see the [FAQ](faq.yml#do-consumption-only-environments-support-custom-user-defined-routes-).
Copy file name to clipboardExpand all lines: articles/event-grid/custom-event-quickstart-portal.md
+16-30Lines changed: 16 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,19 @@
1
1
---
2
-
title: 'Send custom events to web endpoint - Event Grid, Azure portal'
3
-
description: 'Quickstart: Use Azure Event Grid and Azure portal to publish a custom topic, and subscribe to events for that topic. The events are handled by a web application.'
4
-
ms.date: 09/25/2023
2
+
title: Send custom events to web endpoint
3
+
description: In this tutorial, you use Azure Event Grid and Azure portal to publish a custom topic, and subscribe to events for that topic.
4
+
ms.date: 12/13/2024
5
5
ms.topic: quickstart
6
6
ms.custom: mode-ui
7
+
# Customer intent: I want to learn how to send custom events to Azure Event Grid and have them routed to a Webhook endpoint.
7
8
---
8
9
9
-
# Route custom events to web endpoint with the Azure portal and Azure Event Grid
10
-
Event Grid is a fully managed service that enables you to easily manage events across many different Azure services and applications. It simplifies building event-driven and serverless applications. For an overview of the service, see [Event Grid overview](overview.md).
11
-
12
-
In this article, you use the Azure portal to do the following tasks:
13
-
14
-
1. Create a custom topic.
15
-
1. Subscribe to the custom topic.
16
-
1. Trigger the event.
17
-
1. View the result. Typically, you send events to an endpoint that processes the event data and takes actions. However, to simplify this article, you send the events to a web app that collects and displays the messages.
18
-
10
+
# Quickstart: Send custom events to web endpoint with the Azure portal and Azure Event Grid
11
+
In this quickstart, you create a topic, create a subscription to that topic using a Webhook endpoint, trigger a sample event, and then view the result. Typically, you send events to an endpoint that processes the event data and takes actions. However, to simplify this tutorial, you send the events to a web app that collects and displays the messages.
- If you don't have an Azure subscription, create an [Azure free account](https://azure.microsoft.com/pricing/purchase-options/azure-account?icid=azurefreeaccount) before you begin.
16
+
- If you're new Azure Event Grid, see [Event Grid overview](overview.md).
@@ -35,7 +30,7 @@ An Event Grid topic provides a user-defined endpoint that you post your events t
35
30
1. On the **Create Topic** page, follow these steps:
36
31
1. Select your Azure **subscription**.
37
32
2. Select an existing resource group or select **Create new**, and enter a **name** for the **resource group**.
38
-
3. Provide a unique **name** for the custom topic. The topic name must be unique because it's represented by a DNS entry. Don't use the name shown in the image. Instead, create your own name - it must be between 3-50 characters and contain only values a-z, A-Z, 0-9, and "-".
33
+
3. Provide a unique **name** for the custom topic. The topic name must be unique because it's represented by a DNS entry. Don't use the name shown in the image. Instead, create your own name - it must be between 3-50 characters and contain only values a-z, A-Z, 0-9, and `-`.
39
34
4. Select a **location** for the Event Grid topic.
40
35
5. Select **Review + create** at the bottom of the page.
41
36
@@ -45,7 +40,7 @@ An Event Grid topic provides a user-defined endpoint that you post your events t
45
40
:::image type="content" source="./media/custom-event-quickstart-portal/review-create-page.png" alt-text="Review settings and create":::
46
41
5. After the deployment succeeds, select **Go to resource** to navigate to the **Event Grid Topic** page for your topic. Keep this page open. You use it later in the quickstart.
47
42
48
-
:::image type="content" source="./media/custom-event-quickstart-portal/topic-home-page.png" alt-text="Screenshot showing the Event Grid topic home page.":::
43
+
:::image type="content" source="./media/custom-event-quickstart-portal/topic-home-page.png" alt-text="Screenshot showing the Event Grid topic home page." lightbox="./media/custom-event-quickstart-portal/topic-home-page.png":::
49
44
50
45
> [!NOTE]
51
46
> To keep the quickstart simple, you'll be using only the **Basics** page to create a topic. For detailed steps about configuring network, security, and data residency settings on other pages of the wizard, see [Create a custom topic](create-custom-topic.md).
@@ -65,7 +60,7 @@ Before you create a subscription for the custom topic, create an endpoint for th
65
60
66
61
:::image type="content" source="./media/blob-event-quickstart-portal/template-deploy-parameters.png" alt-text="Screenshot showing the Custom deployment page.":::
67
62
1. On the **Review + create** page, select **Create**.
68
-
1. The deployment may take a few minutes to complete. Select Alerts (bell icon) in the portal, and then select **Go to resource group**.
63
+
1. The deployment might take a few minutes to complete. Select Alerts (bell icon) in the portal, and then select **Go to resource group**.
69
64
70
65
:::image type="content" source="./media/blob-event-quickstart-portal/navigate-resource-group.png" alt-text="Screenshot showing the successful deployment message with a link to navigate to the resource group.":::
71
66
4. On the **Resource group** page, in the list of resources, select the web app (**contosoegriviewer** in the following example) that you created.
@@ -84,7 +79,7 @@ You subscribe to an Event Grid topic to tell Event Grid which events you want to
84
79
85
80
1. Now, on the **Event Grid Topic** page for your custom topic, select **+ Event Subscription** on the toolbar.
:::image type="content" source="./media/custom-event-quickstart-portal/new-event-subscription.png" alt-text="Screenshot that shows the Add Event Subscription button on the toolbar." lightbox="./media/custom-event-quickstart-portal/new-event-subscription.png":::
88
83
2. On the **Create Event Subscription** page, follow these steps:
89
84
1. Enter a **name** for the event subscription.
90
85
3. Select **Web Hook** for the **Endpoint type**.
@@ -110,8 +105,8 @@ The first example uses Azure CLI. It gets the URL and key for the custom topic,
110
105
### Azure CLI
111
106
1. In the Azure portal, select **Cloud Shell**. The Cloud Shell opens in the bottom pane of the web browser.
1.Select **Bash** in the top-left corner of the Cloud Shell window.
108
+
:::image type="content" source="./media/custom-event-quickstart-portal/select-cloud-shell.png" alt-text="Screnshot that shows the selection of Cloud Shell button." lightbox="./media/custom-event-quickstart-portal/select-cloud-shell.png":::
109
+
1.If the Cloud Shell opens a PowerShell session, select **Switch to Bash** in the top-left corner of the Cloud Shell window. If not, continue to the next step.
115
110
116
111
:::image type="content" source="./media/custom-event-quickstart-portal/cloud-shell-bash.png" alt-text="Screenshot that shows the Cloud Shell with Bash selected in the top-left corner.":::
117
112
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.
@@ -207,19 +202,10 @@ If you plan to continue working with this event, don't clean up the resources cr
207
202
208
203
The other resource group you see in the image was created and used by the Cloud Shell window. Delete it if you don't plan to use the Cloud Shell window later.
209
204
210
-
## Next steps
205
+
## Related content
211
206
212
207
Now that you know how to create custom topics and event subscriptions, learn more about what Event Grid can help you do:
213
208
214
-
- [About Event Grid](overview.md)
215
209
- [Route Blob storage events to a custom web endpoint](../storage/blobs/storage-blob-event-quickstart.md?toc=%2fazure%2fevent-grid%2ftoc.json)
216
-
- [Monitor virtual machine changes with Azure Event Grid and Logic Apps](monitor-virtual-machine-changes-logic-app.md)
217
-
- [Stream big data into a data warehouse](event-hubs-integration.md)
218
-
219
-
See the following samples to learn about publishing events to and consuming events from Event Grid using different programming languages.
220
-
221
210
- [Azure Event Grid samples for .NET](/samples/azure/azure-sdk-for-net/azure-event-grid-sdk-samples/)
222
211
- [Azure Event Grid samples for Java](/samples/azure/azure-sdk-for-java/eventgrid-samples/)
223
-
- [Azure Event Grid samples for Python](/samples/azure/azure-sdk-for-python/eventgrid-samples/)
224
-
- [Azure Event Grid samples for JavaScript](/samples/azure/azure-sdk-for-js/eventgrid-javascript/)
225
-
- [Azure Event Grid samples for TypeScript](/samples/azure/azure-sdk-for-js/eventgrid-typescript/)
0 commit comments