Azure Event Hubs · Arazzo Workflow

Microsoft Azure Event Hubs Rotate Namespace Keys

Version 1.0.0

Capture the current connection strings for an authorization rule, regenerate one of the keys, and read back the new credentials.

1 workflow 1 source API 1 provider
View Spec View on GitHub Big DataEvent StreamingIoTMessage IngestionReal-Time ProcessingArazzoWorkflows

Provider

microsoft-azure-event-hubs

Workflows

rotate-namespace-keys
Regenerate an authorization rule key and return the new connection string.
Reads the current keys, regenerates the requested key type, and reads the refreshed keys for the namespace authorization rule.
3 steps inputs: apiVersion, authorizationRuleName, keyType, namespaceName, resourceGroupName, subscriptionId outputs: newPrimaryConnectionString, newSecondaryConnectionString, previousPrimaryConnectionString
1
listCurrentKeys
List the current connection strings so the value being rotated out can be retired from dependent applications.
2
regenerateKey
Regenerate the requested key type for the authorization rule.
3
confirmKeys
Read the keys back after rotation to confirm the new connection string is live before distributing it.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Azure Event Hubs Rotate Namespace Keys
  summary: Capture the current connection strings for an authorization rule, regenerate one of the keys, and read back the new credentials.
  description: >-
    A safe key-rotation flow for an Event Hubs namespace authorization rule. It
    first lists the current connection strings so the old value can be retired,
    regenerates the requested key (primary or secondary), and then lists the keys
    again to surface the freshly minted connection string. Each step inlines its
    ARM request so the rotation can be executed and audited directly.
  version: 1.0.0
sourceDescriptions:
- name: authorizationRulesApi
  url: ../openapi/microsoft-azure-event-hubs-authorization-rules-api-openapi.yml
  type: openapi
workflows:
- workflowId: rotate-namespace-keys
  summary: Regenerate an authorization rule key and return the new connection string.
  description: >-
    Reads the current keys, regenerates the requested key type, and reads the
    refreshed keys for the namespace authorization rule.
  inputs:
    type: object
    required:
    - subscriptionId
    - resourceGroupName
    - namespaceName
    - authorizationRuleName
    properties:
      subscriptionId:
        type: string
        description: Azure subscription identifier that scopes the resource.
      resourceGroupName:
        type: string
        description: Name of the resource group that contains the namespace.
      namespaceName:
        type: string
        description: The existing Event Hubs namespace name.
      authorizationRuleName:
        type: string
        description: The authorization rule (SAS policy) whose key is rotated.
      keyType:
        type: string
        description: Which key to regenerate.
        enum:
        - PrimaryKey
        - SecondaryKey
        default: PrimaryKey
      apiVersion:
        type: string
        description: Client API version for the management plane.
        default: '2024-01-01'
  steps:
  - stepId: listCurrentKeys
    description: >-
      List the current connection strings so the value being rotated out can be
      retired from dependent applications.
    operationId: Namespaces_ListKeys
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: namespaceName
      in: path
      value: $inputs.namespaceName
    - name: authorizationRuleName
      in: path
      value: $inputs.authorizationRuleName
    - name: api-version
      in: query
      value: $inputs.apiVersion
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      previousPrimaryConnectionString: $response.body#/primaryConnectionString
      previousSecondaryConnectionString: $response.body#/secondaryConnectionString
  - stepId: regenerateKey
    description: >-
      Regenerate the requested key type for the authorization rule.
    operationId: Namespaces_RegenerateKeys
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: namespaceName
      in: path
      value: $inputs.namespaceName
    - name: authorizationRuleName
      in: path
      value: $inputs.authorizationRuleName
    - name: api-version
      in: query
      value: $inputs.apiVersion
    requestBody:
      contentType: application/json
      payload:
        keyType: $inputs.keyType
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      rotatedPrimaryConnectionString: $response.body#/primaryConnectionString
      rotatedSecondaryConnectionString: $response.body#/secondaryConnectionString
  - stepId: confirmKeys
    description: >-
      Read the keys back after rotation to confirm the new connection string is
      live before distributing it.
    operationId: Namespaces_ListKeys
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: namespaceName
      in: path
      value: $inputs.namespaceName
    - name: authorizationRuleName
      in: path
      value: $inputs.authorizationRuleName
    - name: api-version
      in: query
      value: $inputs.apiVersion
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      newPrimaryConnectionString: $response.body#/primaryConnectionString
      newSecondaryConnectionString: $response.body#/secondaryConnectionString
      keyName: $response.body#/keyName
  outputs:
    previousPrimaryConnectionString: $steps.listCurrentKeys.outputs.previousPrimaryConnectionString
    newPrimaryConnectionString: $steps.confirmKeys.outputs.newPrimaryConnectionString
    newSecondaryConnectionString: $steps.confirmKeys.outputs.newSecondaryConnectionString

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/microsoft-azure-event-hubs-rotate-namespace-keys-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.