Skip to content

Commit 89aab1f

Browse files
committed
fixed issues
1 parent e945091 commit 89aab1f

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

articles/event-grid/authenticate-with-namespaces-using-webhook-authentication.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -111,30 +111,30 @@ In this step, you configure custom webhook authentication settings on your Event
111111
112112
Use the following command to update your namespace with the custom webhook authentication configuration.
113113
114-
```azurecli
115-
az eventgrid namespace update \
116-
--resource-group <resource-group-name> \
117-
--name <namespace-name> \
118-
--api-version 2025-04-01-preview \
119-
--identity-type UserAssigned \
120-
--identity-user-assigned-identities "/subscriptions/XXXXXXXXXXX/resourcegroups/XXXXXXXXXXX/providers/Microsoft.ManagedIdentity/userAssignedIdentities/XXXXXXXXXXX={}" \
121-
--set properties.isZoneRedundant=true \
122-
properties.topicSpacesConfiguration.state=Enabled \
123-
properties.topicSpacesConfiguration.clientAuthentication.webHookAuthentication.identity.type=UserAssigned \
124-
properties.topicSpacesConfiguration.clientAuthentication.webHookAuthentication.identity.userAssignedIdentity="/subscriptions/XXXXXXXXXXX/resourcegroups/XXXXXXXXXXX/providers/Microsoft.ManagedIdentity/userAssignedIdentities/XXXXXXXXXXX" \
125-
properties.topicSpacesConfiguration.clientAuthentication.webHookAuthentication.endpointUrl="https://XXXXXXXXXXX" \
126-
properties.topicSpacesConfiguration.clientAuthentication.webHookAuthentication.azureActiveDirectoryApplicationIdOrUri="api://XXXXXXXXXXX/.default" \
127-
properties.topicSpacesConfiguration.clientAuthentication.webHookAuthentication.azureActiveDirectoryTenantId="XXXXXXXXXXX"
128-
```
129-
130-
Replace <NAMESPACE_NAME> and <RESOURCE_GROUP_NAME> with your actual values, and fill in the placeholders in the subscription/resource group/identity/app ID/URL/tenant ID. To enhance the performance and reliability of webhook-based authentication for Azure Event Grid MQTT Broker, we strongly recommend enabling HTTP/2 support for your webhook endpoint.
114+
```azurecli
115+
az eventgrid namespace update \
116+
--resource-group <resource-group-name> \
117+
--name <namespace-name> \
118+
--api-version 2025-04-01-preview \
119+
--identity-type UserAssigned \
120+
--identity-user-assigned-identities "/subscriptions/XXXXXXXXXXX/resourcegroups/XXXXXXXXXXX/providers/Microsoft.ManagedIdentity/userAssignedIdentities/XXXXXXXXXXX={}" \
121+
--set properties.isZoneRedundant=true \
122+
properties.topicSpacesConfiguration.state=Enabled \
123+
properties.topicSpacesConfiguration.clientAuthentication.webHookAuthentication.identity.type=UserAssigned \
124+
properties.topicSpacesConfiguration.clientAuthentication.webHookAuthentication.identity.userAssignedIdentity="/subscriptions/XXXXXXXXXXX/resourcegroups/XXXXXXXXXXX/providers/Microsoft.ManagedIdentity/userAssignedIdentities/XXXXXXXXXXX" \
125+
properties.topicSpacesConfiguration.clientAuthentication.webHookAuthentication.endpointUrl="https://XXXXXXXXXXX" \
126+
properties.topicSpacesConfiguration.clientAuthentication.webHookAuthentication.azureActiveDirectoryApplicationIdOrUri="api://XXXXXXXXXXX/.default" \
127+
properties.topicSpacesConfiguration.clientAuthentication.webHookAuthentication.azureActiveDirectoryTenantId="XXXXXXXXXXX"
128+
```
129+
130+
Replace <NAMESPACE_NAME> and <RESOURCE_GROUP_NAME> with your actual values, and fill in the placeholders in the subscription/resource group/identity/app ID/URL/tenant ID. To enhance the performance and reliability of webhook-based authentication for Azure Event Grid MQTT Broker, we strongly recommend enabling HTTP/2 support for your webhook endpoint.
131131

132132
## Webhook API details
133133

134134
### Request Headers
135135

136-
- Authorization: Bearer <token>
137-
- <token> is an Entra ID token for the managed identity configured to call the webhook.
136+
- Authorization: Bearer token
137+
- token is an Entra ID token for the managed identity configured to call the webhook.
138138

139139
### Request payload
140140

0 commit comments

Comments
 (0)