To manage Azure Service Bus with AzureRM.ServiceBus PowerShell cmdlets, you get access using Login-AzureRmAccount, eg:
Login-AzureRmAccount
Get-AzureRmServiceBusNamespace -ResourceGroup myRG -NamespaceName myNS
Is there a way get access with AzureRM.ServiceBus using a connection string with manage claims? Eg as when using .NET Framework NamespaceManager:
$namespaceManager = [Microsoft.ServiceBus.NamespaceManager]::CreateFromConnectionString($connectionString)
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 .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.