Skip to content

Commit a952113

Browse files
Freshness. Commands. Screenshots.
1 parent a3d45d1 commit a952113

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

articles/event-grid/custom-event-to-queue-storage.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Replace `<TOPIC NAME>` with a unique name for your custom topic. The Event Grid
4343
1. Run the following command to create the topic:
4444
4545
```azurecli-interactive
46-
az eventgrid topic create --name $topicname -l westus2 -g gridResourceGroup
46+
az eventgrid topic create --name $topicname --location westus2 --resource-group gridResourceGroup
4747
```
4848
4949
## Create a queue
@@ -61,8 +61,8 @@ Before you subscribe to the custom topic, create the endpoint for the event mess
6161
```azurecli-interactive
6262
queuename="eventqueue"
6363
64-
az storage account create -n $storagename -g gridResourceGroup -l westus2 --sku Standard_LRS
65-
key="$(az storage account keys list -n $storagename --query "[0].{value:value}" --output tsv)"
64+
az storage account create --name $storagename --resource-group gridResourceGroup --location westus2 --sku Standard_LRS
65+
key="$(az storage account keys list --account-name $storagename --query "[0].{value:value}" --output tsv)"
6666
az storage queue create --name $queuename --account-name $storagename --account-key $key
6767
```
6868
@@ -79,7 +79,7 @@ Before you run the command, replace the placeholder for the [expiration date](co
7979
```azurecli-interactive
8080
storageid=$(az storage account show --name $storagename --resource-group gridResourceGroup --query id --output tsv)
8181
queueid="$storageid/queueservices/default/queues/$queuename"
82-
topicid=$(az eventgrid topic show --name $topicname -g gridResourceGroup --query id --output tsv)
82+
topicid=$(az eventgrid topic show --name $topicname --resource-group gridResourceGroup --query id --output tsv)
8383
8484
az eventgrid event-subscription create \
8585
--source-resource-id $topicid \
@@ -108,8 +108,8 @@ If you use the REST API to create the subscription, you pass the ID of the stora
108108
Trigger an event to see how Event Grid distributes the message to your endpoint. First, get the URL and key for the custom topic:
109109

110110
```azurecli-interactive
111-
endpoint=$(az eventgrid topic show --name $topicname -g gridResourceGroup --query "endpoint" --output tsv)
112-
key=$(az eventgrid topic key list --name $topicname -g gridResourceGroup --query "key1" --output tsv)
111+
endpoint=$(az eventgrid topic show --name $topicname --resource-group gridResourceGroup --query "endpoint" --output tsv)
112+
key=$(az eventgrid topic key list --name $topicname --resource-group gridResourceGroup --query "key1" --output tsv)
113113
```
114114

115115
For the sake of simplicity in this article, you use sample event data to send to the custom topic. Typically, an application or an Azure service would send the event data.
-1.54 KB
Loading

0 commit comments

Comments
 (0)