Azure APIM - Product subscriptions

Nagashree Balasundaram 741 Reputation points
2022-06-27T19:04:34.343+00:00

Hi,
Is there a way to subscribe to multiple products in a single subscription in Azure APIM. For eg: Product 1 has API1, API2 and Product2 has API3, API4. Can a consumer create one subscription to subscribe to both Product1 and Product2 so that consumer can call any of the four APIs using a single subscription key.
In the portal there is option to create a subscription for a single product or a single API only.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,960 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sujithreddy Komma 576 Reputation points Microsoft Employee
    2022-06-28T04:49:30.17+00:00

    Hi Nagashree,

    if you want a single Subscription Key to be used for all the APIS, why cant you add all the APIS under one Product and do it.
    Like in your Example.

    Product 1 can have API1, API2,API3, API4 and Product2 has API3, API4

    So that you can subscribe with one Subscription key with Product1. APIS can be subscribed to Multiple Products.
    if you want to change the Subscription Key,Then you can use

    https://learn.microsoft.com/en-us/rest/api/apimanagement/current-ga/subscription/create-or-update#code-try-0

    Thanks,
    Sujith.


0 additional answers

Sort by: Most helpful