Skip to content

Commit 26272d9

Browse files
committed
add more introduction about az cli.
1 parent d61708e commit 26272d9

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

articles/azure-web-pubsub/howto-develop-eventhandler.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,20 @@ Find your Azure Web PubSub service from **Azure Portal**. Navigate to **Settings
4848

4949
### Configure through Azure CLI
5050

51-
Use the Azure CLI [**az webpubsub hub**](/cli/azure/webpubsub) command to configure the event handler settings.
51+
Use the Azure CLI [**az webpubsub hub**](/cli/azure/webpubsub) group commands to configure the event handler settings.
5252

53-
Below is an example of setting 2 webhook URLs for hub `MyHub` of `MyWebPubSub` resource.
53+
Commands | Description
54+
--|--
55+
create | Create hub settings for WebPubSub Service.
56+
delete | Delete hub settings for WebPubSub Service.
57+
list | List all hub settings for WebPubSub Service.
58+
show | Show hub settings for WebPubSub Service.
59+
update | Update hub settings for WebPubSub Service.
60+
61+
Below is an example of creating 2 webhook URLs for hub `MyHub` of `MyWebPubSub` resource.
5462

5563
```azurecli-interactive
56-
az webpubsub hub update -n MyWebPubSub -g MyResourceGroup --hub-name MyHub --event-handler url-template="http://host.com" user-event-pattern="*" --event-handler url-template="http://host2.com" system-event="connected" system-event="disconnected" auth-type="ManagedIdentity" auth-resource="uri://myUri"
64+
az webpubsub hub create -n MyWebPubSub -g MyResourceGroup --hub-name MyHub --event-handler url-template="http://host.com" user-event-pattern="*" --event-handler url-template="http://host2.com" system-event="connected" system-event="disconnected" auth-type="ManagedIdentity" auth-resource="uri://myUri"
5765
```
5866

5967
## Next steps

0 commit comments

Comments
 (0)