CCK
CCK

Reputation: 1

Use connection string with AzureRM.ServiceBus PowerShell cmdlets?

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

Answers (1)

Fei Han
Fei Han

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

Related Questions