Azure APIM subscription 'Display Name' does not accept user defined value

Kanagaraj Subramaniam 5 Reputation points
2023-02-10T07:48:15.67+00:00

Trying to achieve product subscription through subscription api (https://management.azure.com/subscriptions/{subscription}resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}?api-version=2021-08-01) and the request payload contains (displayname, scope, ownerid and state). Once the product subscription is created through api the display name shows "product {my product name} Subscription} instead of that I have provided.

Whether am I missing anything?

Ref: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-setup-delegation https://learn.microsoft.com/en-us/rest/api/apimanagement/current-ga/subscription/create-or-update?tabs=HTTP

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,327 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MuthuKumaranMurugaachari-MSFT 22,416 Reputation points
    2023-02-15T19:24:21.01+00:00

    Kanagaraj Subramaniam Thanks for sharing the code snippet. It appears that you have defined model class ApimSubscriptionRequest in your application and performing some JSON serialization/processing using GetContent(SerializeToJson(apimSubscriptionRequest))) functions before calling Rest API. I would suggest you capture Http request, payload info either while debugging or using tools like Fiddler and investigate the issue. If you still help, please share request info/payload (removing critical/sensitive info) and correlation ID.

    Alternatively, you can quickly test it via portal, Rest API directly and see whether you are able to reproduce the issue. If you observe the issue only with the application code (not Rest API - Try it/portal), then submit a ticket to our support team and they have the best resources/tools to investigate the backend logs for the cause.

    I hope this helps your question and feel free to add a comment for any other questions.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.