Skip to content

Commit 567527e

Browse files
Merge pull request #267888 from PatAltimore/patricka-improve-mqtt-bridge-cmds
Format continued commands
2 parents 08d4d91 + 4081b9c commit 567527e

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

articles/iot-operations/connect-to-cloud/tutorial-connect-event-grid.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ export SUBSCRIPTION_ID=<SUBSCRIPTION_ID>
5959

6060
```azurecli
6161
az eventgrid namespace create \
62-
--namespace-name $EVENT_GRID_NAMESPACE \
63-
--resource-group $RESOURCE_GROUP \
64-
--location $LOCATION \
65-
--topic-spaces-configuration "{state:Enabled,maximumClientSessionsPerAuthenticationName:3}"
62+
--namespace-name $EVENT_GRID_NAMESPACE \
63+
--resource-group $RESOURCE_GROUP \
64+
--location $LOCATION \
65+
--topic-spaces-configuration "{state:Enabled,maximumClientSessionsPerAuthenticationName:3}"
6666
```
6767

6868
By setting the `topic-spaces-configuration`, this command creates a namespace with:
@@ -78,10 +78,10 @@ In the Event Grid namespace, create a topic space named `tutorial` with a topic
7878

7979
```azurecli
8080
az eventgrid namespace topic-space create \
81-
--resource-group $RESOURCE_GROUP \
82-
--namespace-name $EVENT_GRID_NAMESPACE \
83-
--name tutorial \
84-
--topic-templates "telemetry/#"
81+
--resource-group $RESOURCE_GROUP \
82+
--namespace-name $EVENT_GRID_NAMESPACE \
83+
--name tutorial \
84+
--topic-templates "telemetry/#"
8585
```
8686

8787
By using the `#` wildcard in the topic template, you can publish to any topic under the `telemetry` topic space. For example, `telemetry/temperature` or `telemetry/humidity`.
@@ -92,11 +92,11 @@ Using `az k8s-extension show`, find the principal ID for the Azure IoT MQ Arc ex
9292

9393
```azurecli
9494
export PRINCIPAL_ID=$(az k8s-extension show \
95-
--resource-group $RESOURCE_GROUP \
96-
--cluster-name $CLUSTER_NAME \
97-
--name mq \
98-
--cluster-type connectedClusters \
99-
--query identity.principalId -o tsv)
95+
--resource-group $RESOURCE_GROUP \
96+
--cluster-name $CLUSTER_NAME \
97+
--name mq \
98+
--cluster-type connectedClusters \
99+
--query identity.principalId -o tsv)
100100
echo $PRINCIPAL_ID
101101
```
102102

@@ -112,18 +112,18 @@ Assign the publisher role:
112112

113113
```azurecli
114114
az role assignment create \
115-
--assignee $PRINCIPAL_ID \
116-
--role "EventGrid TopicSpaces Publisher" \
117-
--scope /subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP/providers/Microsoft.EventGrid/namespaces/$EVENT_GRID_NAMESPACE/topicSpaces/tutorial
115+
--assignee $PRINCIPAL_ID \
116+
--role "EventGrid TopicSpaces Publisher" \
117+
--scope /subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP/providers/Microsoft.EventGrid/namespaces/$EVENT_GRID_NAMESPACE/topicSpaces/tutorial
118118
```
119119

120120
Assign the subscriber role:
121121

122122
```azurecli
123123
az role assignment create \
124-
--assignee $PRINCIPAL_ID \
125-
--role "EventGrid TopicSpaces Subscriber" \
126-
--scope /subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP/providers/Microsoft.EventGrid/namespaces/$EVENT_GRID_NAMESPACE/topicSpaces/tutorial
124+
--assignee $PRINCIPAL_ID \
125+
--role "EventGrid TopicSpaces Subscriber" \
126+
--scope /subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP/providers/Microsoft.EventGrid/namespaces/$EVENT_GRID_NAMESPACE/topicSpaces/tutorial
127127
```
128128

129129
> [!TIP]
@@ -135,10 +135,10 @@ Use Azure CLI to get the Event Grid MQTT broker hostname.
135135

136136
```azurecli
137137
az eventgrid namespace show \
138-
--resource-group $RESOURCE_GROUP \
139-
--namespace-name $EVENT_GRID_NAMESPACE \
140-
--query topicSpacesConfiguration.hostname \
141-
-o tsv
138+
--resource-group $RESOURCE_GROUP \
139+
--namespace-name $EVENT_GRID_NAMESPACE \
140+
--query topicSpacesConfiguration.hostname \
141+
-o tsv
142142
```
143143

144144
Take note of the output value for `topicSpacesConfiguration.hostname` that is a hostname value that looks like:

0 commit comments

Comments
 (0)