Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieve Service Bus primaryConnectionString with az cli

Is it possible to get Azure Service Bus primaryConnectionString with AZ CLI?

Input parameters:

  1. Resource Group
  2. Service Bus Name
like image 830
qwazer Avatar asked Aug 24 '26 15:08

qwazer


1 Answers

Years later it's now supported. In case anyone else stumbles upon this question like me, it can be done this way:

az servicebus namespace authorization-rule keys list --resource-group myresourcegroup --namespace-name mynamespace --name RootManageSharedAccessKey --query primaryConnectionString -o tsv
like image 190
Keisha W Avatar answered Aug 27 '26 09:08

Keisha W



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!