Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Created October 23, 2024 03:45
Show Gist options
  • Select an option

  • Save wilmoore/577f01fe2b0ab5d495a84f9e72b6321a to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/577f01fe2b0ab5d495a84f9e72b6321a to your computer and use it in GitHub Desktop.
Software Engineering :: Cloud :: Microsoft Azure :: Event Hubs :: Training :: Creating an EventHub

Software Engineering :: Cloud :: Microsoft Azure :: Event Hubs :: Training :: Creating an EventHub

⪼ Made with 💜 by Polyglot.

Create an event hub namespace
  1. In the Azure Portal, select NEW, type Event Hubs, and then select Event Hubs from the resulting search. Then select Create.
  2. Provide a name for the event hub, and then create a resource group. Specify xx-name-eh and xx-name-rg respectively, XX- represents you initials to ensure uniqueness of the Event Hub name and Resource Group name.
  3. Click the checkbox to Pin to the dashboard, then select the Create button.
Create an event hub
  1. After the deployment is complete, click the xx-name-eh event hub on the dashboard.
  2. Under Entities, select Event Hubs.
  3. To create the event hub, select the + Event Hub button. Provide the name socialstudy-eh, then, select Create.
  4. To grant access to the event hub, we need to create a shared access policy. Select the socialstudy-eh event hub when it appears, and then, under Settings, select Shared access policies.
  5. Under Shared access policies, create a policy with MANAGE permissions by selecting + Add. Give the policy the name of xx-name-eh-sap, check MANAGE, and then select Create.
  6. Select you new policy after it has been created, and then, select the copy button for the CONNECTION STRING - PRIMARY KEY entity.
  7. Paste the CONNECTION STRING - PRIMARY KEY entity into Notepad (this is needed later in the excercise).
  8. Leave all windows open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment