APIM Subscription key expiry and notification

Nagashree Balasundaram 741 Reputation points
2022-08-02T16:19:29.73+00:00

Is there a way to create subscription keys with specified expiry time on the azure portal for APIM?
If not what is the best way to set expiration date for the subscription keys? Can this be set/updated once the subscription key is created?

Is there a way to send notifications for the expiring soon/expired keys? I do see the REST API for subscriptions list has this property definition - properties.notificationDate. What does this property do and is this used to send any notifications?

There is an old thread that mentions about subscription expiry date. Is there any update to the product other than the suggested options in this thread - https://social.msdn.microsoft.com/Forums/en-US/e71a470b-7c60-4bc9-a85e-857a8bbaeefc/subscription-key-expiry-date?forum=azureapimgmt

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

Accepted answer
  1. James Longworth 326 Reputation points
    2022-08-04T10:36:48.327+00:00

    If your underlying requirement is just to periodically rotate the APIM subscription keys that you have linked to products / APIs, and you want to do this in an automated manner, I think this article may be of help. It uses PowerShell in an automation runbook to automate periodic key rotation for product subscriptions in APIM, and could easily be extended and adapted as needed.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 29,276 Reputation points
    2022-08-02T17:36:26.603+00:00

    Hi @Nagashree Balasundaram Thanks for reaching out. There is no way to create subscription keys with specified expiry time on azure portal. we don't have a built-in lifetime management of subscription keys you can implement it yourself using REST API as suggested in the given reference thread. I had a discussion internally and PG confirmed that there is no change/update in this area other than the suggested options in the given thread and regarding the properties.notificationDate its just a property currently and we don't really use it customers can use it to build their own workflow.

    you leave your feedback at aka.ms/apimwish so that other users who are in need to similar feature can upvote it and PG can take it forward.

    Please let me know incase of further queries, I would be happy to assist you.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.

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.