/
How-To get Event Hubs Connection String With Azure PowerShell
How-To get Event Hubs Connection String With Azure PowerShell
You can use the Get-AzEventHubKey to get the connection string for the specific policy/rule.
1- With the shared access policy only
Get-AzEventHubKey -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName -AuthorizationRuleName MyAuthRuleName
2- With the name of the namespace
Get-AzEventHubKey -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName -EventHubName MyEventHubName -AuthorizationRuleName MyAuthRuleName
3- With an alias
Get-AzEventHubKey -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName -EventHubName MyEventHubName -AliasName MyAliasName -Name MyAuthRuleName
, multiple selections available,
Related content
How-To read events from an Event Hub
How-To read events from an Event Hub
More like this
How-To use an Active Directory with the Event Hub Clients
How-To use an Active Directory with the Event Hub Clients
More like this
How-To read events from an Event Hub partition
How-To read events from an Event Hub partition
More like this
How-To inspect an Event Hub
How-To inspect an Event Hub
More like this
How-To publish events to an Event Hub
How-To publish events to an Event Hub
More like this
Azure Event Hub Architecture
Azure Event Hub Architecture
More like this