This post has been republished via RSS; it originally appeared at: Event Hubs Blog articles.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.
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.
The preview is only available in the following regions: US East, US East 2, West Europe.
There are two known issues in this preview which will be addressed with the next release:
- Create AAD App Credential.
- Do not assign any role.
- Create Event Hubs client and start sending.
- This will fail - which is expected.
- Now assign contributor/owner role on Event Hubs namespace for this App Credential.
- 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.
- Create AAD App Credential.
- Assign Contributor role and start sending (in a while loop) using [service] client.
- Now, delete the role assignment –
- This will not affect the current active 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.
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.
You can use Azure Portal, Power Shell, or CLI to register a provider. For more information, see https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services .
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.
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: