capabilities.work

Provision an Authorization Rule and Retrieve Keys

A 3-step recipe with Azure Event Hubs. We can help you get access.

Recipe · 3 steps

Provision an Authorization Rule and Retrieve Keys

Create a namespace authorization rule and retrieve its keys.

  1. Create or update the namespace authorization rule with the supplied rights.
  2. Read the authorization rule back to confirm the rights were applied before handing out keys.
  3. List the primary and secondary connection strings and keys for the authorization rule so applications can connect.
What you'll need to have ready
  • subscriptionId: Azure subscription identifier that scopes the resource.
  • resourceGroupName: Name of the resource group that contains the namespace.
  • namespaceName: The existing Event Hubs namespace name.
  • authorizationRuleName: The authorization rule (SAS policy) name to create.
  • rights: The rights granted to the rule.
  • apiVersion: Client API version for the management plane.
For your developer

Arazzo workflow microsoft-azure-event-hubs:provision-authorization-rule-and-keys, 3 operations: Namespaces_CreateOrUpdateAuthorizationRule → Namespaces_GetAuthorizationRule → Namespaces_ListKeys. Specs on APIs.io.