Reputation: 1
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)
Upvotes: 0
Views: 386
Reputation: 27793
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.
Upvotes: 0