Skip to content

Commit d61708e

Browse files
committed
update CLI guide to GA version.
1 parent bdf7daf commit d61708e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,18 @@ For now, we do not support [WebHook-Request-Rate](https://github.com/cloudevents
4242

4343
### Configure through Azure Portal
4444

45-
Find your Azure Web PubSub service from **Azure Portal**. Navigate to **Settings** and enter your hub-name. Then click **Add** to configure your server side webhook URL. Don't forget to **Save** when finish.
45+
Find your Azure Web PubSub service from **Azure Portal**. Navigate to **Settings** and enter your hub-name. Then click **Add** to configure your server side webhook URL. Don't forget to click **Save** when finish.
4646

4747
:::image type="content" source="media/quickstart-serverless/set-event-handler.png" alt-text="Screenshot of setting the event handler.":::
4848

4949
### Configure through Azure CLI
5050

51-
Use the Azure CLI [az webpubsub event-handler hub](/cli/azure/webpubsub/event-handler/hub) command to update the event handler settings:
51+
Use the Azure CLI [**az webpubsub hub**](/cli/azure/webpubsub) command to configure the event handler settings.
52+
53+
Below is an example of setting 2 webhook URLs for hub `MyHub` of `MyWebPubSub` resource.
5254

5355
```azurecli-interactive
54-
az webpubsub event-handler hub update -n "<your-unique-resource-name>" -g "<your-resource-group-name>" --hub-name "<hub-name>" --template url-template="https://<server-domain>/api/{event}" user-event-pattern="*" system-event-pattern="connect,connected,disconnected"
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"
5557
```
5658

5759
## Next steps

0 commit comments

Comments
 (0)