Inquiry Regarding Expiration of Azure Event Hub RootManageSharedAccessKey

Eli 0 Reputation points
2024-12-15T09:42:08.2633333+00:00

Hi All,

When I create an Azure Event Hub, a Shared Access Policy named RootManageSharedAccessKey is automatically created. I would like to confirm whether the access key within this policy has an expiration date, or if it is permanent

Thank you.

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
663 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 33,951 Reputation points MVP
    2024-12-15T12:54:18.8966667+00:00

    Hello @Eli,

    welcome to this moderated Azure community forum.

    Both the primary and secondary keys are valid until you regenerate the individual key:

    User's image

    These keys you see are not active anymore! I already regenerated the keys.

    Using these key is great for securing your service but you have no control over these keys once given away.

    Therefor we role the keys once in a while.

    If you need the key access just for connecting Azure services within azure, check out if the use of the system assigned managed identity is possible:

    User's image

    This is the now preferred way to secure your services because you do not see any key, only specific role assignments.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.


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.