capabilities.work

Azure API Management Provision Subscription and Retrieve Keys

A 3-step recipe with Microsoft Azure API Management. We can help you get access.

Recipe · 3 steps

Azure API Management Provision Subscription and Retrieve Keys

Create a product subscription and retrieve its keys.

  1. Read the product to confirm it exists and capture its resource id for the subscription scope.
  2. Create the subscription scoped to the product, with a display name for the consumer.
  3. Retrieve the subscription's primary and secondary keys for delivery to the consumer.
What you'll need to have ready
  • subscriptionId: The Azure subscription identifier.
  • resourceGroupName: The resource group containing the service.
  • serviceName: The API Management service name.
  • productId: The product identifier the subscription is scoped to.
  • sid: The subscription identifier to create.
  • displayName: The subscription display name.
For your developer

Arazzo workflow microsoft-azure-api-management:provision-subscription-keys, 3 operations: Product_Get → Subscription_CreateOrUpdate → Subscription_ListSecrets. Specs on APIs.io.