Microsoft Azure API Management · Arazzo Workflow

Azure API Management Rotate Subscription Keys

Version 1.0.0

Confirm a subscription, regenerate both keys, then retrieve the new secrets.

1 workflow 1 source API 1 provider
View Spec View on GitHub A2AAI GatewayAPI CenterAPI GatewayAPI ManagementEnterpriseMCPMicrosoft AzureArazzoWorkflows

Provider

microsoft-azure-api-management

Workflows

rotate-subscription-keys
Regenerate both subscription keys and return the new secrets.
Confirms the subscription, regenerates the primary and secondary keys, then lists the secrets to surface the rotated keys.
4 steps inputs: resourceGroupName, serviceName, sid, subscriptionId outputs: primaryKey, secondaryKey
1
getSubscription
Read the subscription to confirm it exists before rotating its keys.
2
regeneratePrimary
Regenerate the primary subscription key.
3
regenerateSecondary
Regenerate the secondary subscription key.
4
getSecrets
Retrieve the rotated primary and secondary keys.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Azure API Management Rotate Subscription Keys
  summary: Confirm a subscription, regenerate both keys, then retrieve the new secrets.
  description: >-
    Rotates the credentials on an existing subscription. The workflow reads the
    subscription to confirm it exists, regenerates the primary key and then the
    secondary key, and finally retrieves the new secrets so they can be
    distributed. Every step spells out its request inline so the flow can be
    read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: subscriptionApi
  url: ../openapi/microsoft-azure-api-management-subscription-api-openapi.yml
  type: openapi
workflows:
- workflowId: rotate-subscription-keys
  summary: Regenerate both subscription keys and return the new secrets.
  description: >-
    Confirms the subscription, regenerates the primary and secondary keys, then
    lists the secrets to surface the rotated keys.
  inputs:
    type: object
    required:
    - subscriptionId
    - resourceGroupName
    - serviceName
    - sid
    properties:
      subscriptionId:
        type: string
        description: The Azure subscription identifier.
      resourceGroupName:
        type: string
        description: The resource group containing the service.
      serviceName:
        type: string
        description: The API Management service name.
      sid:
        type: string
        description: The subscription identifier whose keys are rotated.
  steps:
  - stepId: getSubscription
    description: >-
      Read the subscription to confirm it exists before rotating its keys.
    operationId: Subscription_Get
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: serviceName
      in: path
      value: $inputs.serviceName
    - name: sid
      in: path
      value: $inputs.sid
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      subscriptionResourceId: $response.body#/id
  - stepId: regeneratePrimary
    description: >-
      Regenerate the primary subscription key.
    operationId: Subscription_RegeneratePrimaryKey
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: serviceName
      in: path
      value: $inputs.serviceName
    - name: sid
      in: path
      value: $inputs.sid
    successCriteria:
    - condition: $statusCode == 200
  - stepId: regenerateSecondary
    description: >-
      Regenerate the secondary subscription key.
    operationId: Subscription_RegenerateSecondaryKey
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: serviceName
      in: path
      value: $inputs.serviceName
    - name: sid
      in: path
      value: $inputs.sid
    successCriteria:
    - condition: $statusCode == 200
  - stepId: getSecrets
    description: >-
      Retrieve the rotated primary and secondary keys.
    operationId: Subscription_ListSecrets
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: serviceName
      in: path
      value: $inputs.serviceName
    - name: sid
      in: path
      value: $inputs.sid
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      primaryKey: $response.body#/primaryKey
      secondaryKey: $response.body#/secondaryKey
  outputs:
    primaryKey: $steps.getSecrets.outputs.primaryKey
    secondaryKey: $steps.getSecrets.outputs.secondaryKey

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-api-management-rotate-subscription-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.