openStorage accounts.
On the Storage accounts page, selectCreateand name the account.
Click “Review + Create” then “Create”After the storage account is created, select it from the list of storage accounts and click onAccess keysin the left menu.Copy the connection string.
Role assignment
Alternatively, users can grant the necessary permissions to the registered application to access the Event Hub without using the RootManageSharedAccessKey
. Roles can be assigned in a variety of ways (e.g. inherited from the subscription group), but the following steps will show how to assign the necessary roles directly to the Storage Account.
Repeat steps 1-2 from the Connection String section to create the Storage Account.
In the Storage Account, clickAccess control (IAM)in the left menu, click+ Add, and clickAdd Role Assignment.Search for either theStorage Blob Data ContributororStorage Blob Data Owner??Storage Blob Data Reader?? role and select it and then clickNext.Click+ Select membersand search for the event hub application, select it, clickNext.ClickReview + Assign.
Now, in the Event Hub Namespace, click onShared access policies, search the default policy namedRootManageSharedAccessKeyand click it.
Copy and write down the primary (or secondary) connection string to be used later in the configuration file.