I am trying to fetch a list of all Microsoft.ServiceBus/namespaces/
.
az resource list --resource-type "Microsoft.ServiceBus/namespaces/" --subscription "operations"
The servicebus exists in the respective subscription and can be viewed by my same account through portal.
I am already into respective subscription and have also tried specifying it explicitly, but it only returns and empty list []
.
Any idea what I am doing wrong?
CodePudding user response:
Your command to list the ServiceBus Namespace uses az resource
instead of az servicebus
Use the following command to list your Azure ServiceBus Namespaces az servicebus namespace list [--resource-group]