Skip to content

Commit d92f5b7

Browse files
Freshness. Commands. Screenshots.
1 parent eebf9e3 commit d92f5b7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/event-grid/mqtt-publish-and-subscribe-cli.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ After a successful installation by using the step CLI, open a command prompt in
6868
Use the command to create a namespace. Update the command with your resource group and a namespace name.
6969
7070
```azurecli-interactive
71-
az eventgrid namespace create -g {Resource Group} -n {Namespace Name} --topic-spaces-configuration "{state:Enabled}"
71+
az eventgrid namespace create --resource-group {Resource Group} --name {Namespace Name} --topic-spaces-configuration "{state:Enabled}"
7272
```
7373

7474
To keep the quickstart simple, you create a namespace with minimal properties. For detailed steps about configuring network, security, and other settings on other pages of the wizard, see [Create and manage namespaces](create-view-manage-namespaces.md).
@@ -78,7 +78,7 @@ To keep the quickstart simple, you create a namespace with minimal properties. F
7878
Use the command to create the client. Update the command with your resource group and a namespace name.
7979

8080
```azurecli-interactive
81-
az eventgrid namespace client create -g {Resource Group} --namespace-name {Namespace Name} -n {Client Name} --authentication-name client1-authnID --client-certificate-authentication "{validationScheme:ThumbprintMatch,allowed-thumbprints:[Client Thumbprint]}"
81+
az eventgrid namespace client create --resource-group {Resource Group} --namespace-name {Namespace Name} --name {Client Name} --authentication-name client1-authnID --client-certificate-authentication "{validationScheme:ThumbprintMatch,allowed-thumbprints:[Client Thumbprint]}"
8282
```
8383
- To keep the quickstart simple, you use thumbprint match for authentication. For steps on how to use the X.509 CA certificate chain for client authentication, see [Client authentication using certificate chain](./mqtt-certificate-chain-client-authentication.md).
8484
- For this exercise, we use the default `$all client` group, which includes all the clients in the namespace. To learn more about creating custom client groups by using client attributes, see [Client groups](mqtt-client-groups.md).
@@ -88,21 +88,21 @@ az eventgrid namespace client create -g {Resource Group} --namespace-name {Names
8888
Use the command to create the topic space. Update the command with your resource group, namespace name, and topic space name.
8989

9090
```azurecli-interactive
91-
az eventgrid namespace topic-space create -g {Resource Group} --namespace-name {Namespace Name} -n {Topicspace Name} --topic-templates ['contosotopics/topic1']
91+
az eventgrid namespace topic-space create --resource-group {Resource Group} --namespace-name {Namespace Name} --name {Topicspace Name} --topic-templates ['contosotopics/topic1']
9292
```
9393

9494
## Create permission bindings
9595

9696
Use the `az eventgrid` command to create the first permission binding for publisher permission. Update the command with your resource group, namespace name, and permission binding name.
9797

9898
```azurecli-interactive
99-
az eventgrid namespace permission-binding create -g {Resource Group} --namespace-name {Namespace Name} -n {Permission Binding Name} --client-group-name '$all' --permission publisher --topic-space-name {Topicspace Name}
99+
az eventgrid namespace permission-binding create --resource-group {Resource Group} --namespace-name {Namespace Name} --name {Permission Binding Name} --client-group-name '$all' --permission publisher --topic-space-name {Topicspace Name}
100100
```
101101

102102
Use the command to create the second permission binding. Update the command with your resource group, namespace name, and permission binding name. This permission binding is for subscribers.
103103

104104
```azurecli-interactive
105-
az eventgrid namespace permission-binding create -g {Resource Group} --namespace-name {Namespace Name} -n {Name of second Permission Binding} --client-group-name '$all' --permission subscriber --topic-space-name {Topicspace Name}
105+
az eventgrid namespace permission-binding create --resource-group {Resource Group} --namespace-name {Namespace Name} --name {Name of second Permission Binding} --client-group-name '$all' --permission subscriber --topic-space-name {Topicspace Name}
106106
```
107107

108108
## Publish and subscribe to MQTT messages

0 commit comments

Comments
 (0)