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
Event Grid topics are Azure resources, and must be placed in an Azure resource group. The resource group is a logical collection into which Azure resources are deployed and managed.
25
23
26
24
Create a resource group with the [az group create](/cli/azure/group#az-group-create) command. The following example creates a resource group named **gridResourceGroup** in the **westus2** location.
27
25
26
+
> [!NOTE]
27
+
> Select **Try it** next to the CLI example to launch Cloud Shell in the right pane. Select **Copy** button to copy the command, paste it in the Cloud Shell window, and then press ENTER to run the command.
28
+
28
29
```azurecli-interactive
29
30
az group create --name gridResourceGroup --location westus2
30
31
```
@@ -42,9 +43,9 @@ An event grid topic provides a user-defined endpoint that you post your events t
42
43
```
43
44
1. Run the following command to create the topic.
44
45
45
-
```azurecli-interactive
46
-
az eventgrid topic create --name $topicname -l westus2 -g gridResourceGroup
47
-
```
46
+
```azurecli-interactive
47
+
az eventgrid topic create --name $topicname -l westus2 -g gridResourceGroup
48
+
```
48
49
49
50
## Create Queue storage
50
51
@@ -61,7 +62,8 @@ Before subscribing to the custom topic, let's create the endpoint for the event
:::image type="content" source="./media/custom-event-to-queue-storage/messages.png" alt-text="Screenshot showing the list of messages in the queue that are received from Event Grid.":::
124
126
125
127
> [!NOTE]
126
128
> If you use an [Azure Queue storage trigger for Azure Functions](../azure-functions/functions-bindings-storage-queue-trigger.md) for a queue that receives messages from Event Grid, you may see the following error message on the function execution: `The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.`
0 commit comments