Tutorial: Get Azure Event Hubs Connection String

Prerequisites
Steps to Get the Connection String
1. Navigate to the Azure Portal: Open your web browser and go to https://portal.azure.com/. Log in with your Azure account credentials.
2. Find Your Event Hubs Namespace:
  1. In the Azure portal search bar at the top, type "Event Hubs namespaces" and select it from the results.
  2. On the "Event Hubs namespaces" page, locate and click on the name of the specific namespace you want to get the connection string for.
3. Access Shared Access Policies:
  1. Once you are on the overview page of your Event Hubs namespace, look for the "Settings" section in the left-hand navigation menu.
  2. Click on "Shared access policies".
4. Select or Create a Policy:
5. Copy the Connection String:
  1. On the "Shared access policy" page, you will find two connection strings: "Primary connection string" and "Secondary connection string".
  2. Click the copy icon next to the "Primary connection string".
Using the Connection String

You can now use this connection string in your applications (e.g., .NET, Python, Java, Node.js) to connect to your Azure Event Hubs. Here's a simplified example of how it might look:

Endpoint=sb://your-event-hubs-namespace.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=YOUR_PRIMARY_KEY

Replace your-event-hubs-namespace.servicebus.windows.net/ with your actual namespace and YOUR_PRIMARY_KEY with the copied primary key.

Next Steps

Now that you have your connection string, you can proceed to: