Skip to content

Commit 0f49e6c

Browse files
Freshness. Check commands.
1 parent ebfe73e commit 0f49e6c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

articles/event-grid/includes/register-provider-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
author: spelluru
55
ms.service: azure-event-grid
66
ms.topic: include
7-
ms.date: 08/17/2018
7+
ms.date: 06/23/2025
88
ms.author: spelluru
99
ms.custom: include file
1010
---

articles/event-grid/publish-events-using-namespace-topics.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ An Event Grid namespace provides a user-defined endpoint to which you post your
6666
1. Create a namespace. You might want to change the location where you deploy it.
6767
6868
```azurecli-interactive
69-
az eventgrid namespace create -g $resource_group -n $namespace -l eastus
69+
az eventgrid namespace create --resource-group $resource_group --name $namespace --location eastus
7070
```
7171
7272
## Create a namespace topic
@@ -81,7 +81,7 @@ Create a topic that's used to hold all events published to the namespace endpoin
8181
1. Create your namespace topic:
8282
8383
```azurecli-interactive
84-
az eventgrid namespace topic create -g $resource_group -n $topic --namespace-name $namespace
84+
az eventgrid namespace topic create --resource-group $resource_group --name $topic --namespace-name $namespace
8585
```
8686
8787
## Create an event subscription
@@ -96,7 +96,7 @@ Create an event subscription setting its delivery mode to *queue*, which support
9696
1. Create an event subscription to the namespace topic:
9797
9898
```azurecli-interactive
99-
az eventgrid namespace topic event-subscription create -g $resource_group --topic-name $topic -n $event_subscription --namespace-name $namespace --delivery-configuration "{deliveryMode:Queue,queue:{receiveLockDurationInSeconds:300,maxDeliveryCount:4,eventTimeToLive:P1D}}"
99+
az eventgrid namespace topic event-subscription create --resource-group $resource_group --topic-name $topic --name $event_subscription --namespace-name $namespace --delivery-configuration "{deliveryMode:Queue,queue:{receiveLockDurationInSeconds:300,maxDeliveryCount:4,eventTimeToLive:P1D}}"
100100
```
101101
102102
## Send events to your topic
@@ -107,7 +107,8 @@ Now, send a sample event to the namespace topic by following steps in this secti
107107
1. Get the access keys associated with the namespace you created. You use one of them to authenticate when publishing events. To list your keys, you need the full namespace resource ID first. Get it by running the following command:
108108
109109
```azurecli-interactive
110-
namespace_resource_id=$(az eventgrid namespace show -g $resource_group -n $namespace --query "id" --output tsv)
110+
namespace_resource_id=$(az eventgrid namespace show --resource-group $resource_group --name $namespace --query "id" --output tsv)
111+
111112
```
112113
1. Get the first key from the namespace:
113114
@@ -143,7 +144,7 @@ You receive events from Event Grid using an endpoint that refers to an event sub
143144
1. Compose that endpoint by running the following command:
144145
145146
```azurecli-interactive
146-
receive_operation_uri="https://"$(az eventgrid namespace show -g $resource_group -n $namespace --query "topicsConfiguration.hostname" --output tsv)"/topics/"$topic/eventsubscriptions/$event_subscription:receive?api-version=2023-06-01-preview
147+
receive_operation_uri="https://"$(az eventgrid namespace show --resource-group $resource_group --name $namespace --query "topicsConfiguration.hostname" --output tsv)"/topics/"$topic/eventsubscriptions/$event_subscription:receive?api-version=2023-06-01-preview
147148
```
148149
149150
1. Submit a request to consume the event:

0 commit comments

Comments
 (0)