Azure Event Hubs Managed Service Identity (MSI) and Role-based access control (RBAC) (preview) released!

First published on on Dec 20, 2017

We are happy to announce the preview release of Managed Service Identity (MSI) and Role-based access control (RBAC) for Azure Event Hubs. In this preview we show how to use the two features with Azure Event Hubs.

Release notes:

For the initial public preview, you can only add AAD accounts and service principals to the “Owner” or “Contributor” roles of an Azure Event Hubs namespace. The same for MSI, in which you can only add a managed service identity to the “Owner” or “Contributor” roles of an Azure Event Hubs namespace.

In an upcoming update, Azure Event Hubs will add explicit roles for “Sender” and “Receiver” that enable you to grant only send or receive permissions. The receive permission also provides read-only access to obtain information about the entity.

In subsequent updates, it will also be possible to associate MSI or AAD accounts and service principals with roles at the level of individual entities, enabling fine grained access control. In addition to the predefined roles, you will be able to compose custom roles from the underlying Azure Event Hubs permission set will also be enabled.

Regional availability:

The preview is only available in the following regions: US East, US East 2, West Europe.

Known issues:

There are two known issues in this preview which will be addressed with the next release:

Issue 1:


  1. Create AAD App Credential.

  2. Do not assign any role.

  3. Create Event Hubs client and start sending.

  4. This will fail – which is expected.

  5. Now assign contributor/owner role on Event Hubs namespace for this App Credential.

  6. Sending on this Event Hubs Client (

    active connection and cbs link

    ) will still continue to fail.

This should recover after RBAC expiry. This is 20 minutes on production.

Issue 2:


  1. Create AAD App Credential.

  2. Assign Contributor role and start sending (in a while loop) using [service] client.

  3. Now, delete the role assignment –

  4. This will not affect the current


    It ran up to 30 minutes in our tests.

This should recover after token expiry. We don’t do an RBAC check on the existing link until the token expires.

Issue 3:

If your subscription already has a service bus namespace or event hubs namespace, the RBAC call might fail with an exception. In this case, re-register the following resource providers to make it work.

Resource providers

  • Microsoft.EventHub

  • Microsoft.ServiceBus

You can use Azure Portal, Power Shell, or CLI to register a provider. For more information, see


Issue 4:

If you are using RBAC and assign rights for your user and / or the AAD app, under your Event Hubs Namespace and there under Instance Access Management (IAM), you need to re-add yourself as owner even though you may have ownership rights inherited from your subscription.

Learn more:

The following articles also contain links to GitHub code samples for both RBAC and MSI.

To learn more about RBAC please follow this link. :

To learn more about MSI please follow this link:

REMEMBER: these articles are REPUBLISHED. Your best bet to get a reply is to follow the link at the top of the post to the ORIGINAL post! BUT you're more than welcome to start discussions here:

This site uses Akismet to reduce spam. Learn how your comment data is processed.