0
votes

To manage Azure Service Bus with AzureRM.ServiceBus PowerShell cmdlets, you get access using Login-AzureRmAccount, e.g.:

Login-AzureRmAccount
Get-AzureRmServiceBusNamespace -ResourceGroup myRG -NamespaceName myNS

Is there a way get access with AzureRM.ServiceBus using a connection string with manage claims? E.g. as when using .NET Framework NamespaceManager:

$namespaceManager = [Microsoft.ServiceBus.NamespaceManager]::CreateFromConnectionString($connectionString)
1

1 Answers

0
votes

We could include a reference to the .NET assembly for Service Bus and create the NamespaceManager object ($NamespaceManager) from ConnectionString. And then we could use $NamespaceManager later in the script to provision and manage Service Bus entities. For detailed information, please refer to this documentation.