capabilities.work

Rotate Namespace Keys

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

Recipe · 3 steps

Rotate Namespace Keys

Regenerate an authorization rule key and return the new connection string.

  1. List the current connection strings so the value being rotated out can be retired from dependent applications.
  2. Regenerate the requested key type for the authorization rule.
  3. Read the keys back after rotation to confirm the new connection string is live before distributing it.
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) whose key is rotated.
  • keyType: Which key to regenerate.
  • apiVersion: Client API version for the management plane.
For your developer

Arazzo workflow microsoft-azure-event-hubs:rotate-namespace-keys, 3 operations: Namespaces_ListKeys → Namespaces_RegenerateKeys → Namespaces_ListKeys. Specs on APIs.io.