共用方式為


az servicebus namespace replica

Manage servicebus namespace replicas.

Commands

Name Description Type Status
az servicebus namespace replica add

Add one or more Replica properties to a namespace.

Core GA
az servicebus namespace replica remove

Remove one or more Replica properties to a namespace.

Core GA

az servicebus namespace replica add

Add one or more Replica properties to a namespace.

az servicebus namespace replica add --geo-data-replication-config
                                    --namespace-name
                                    --resource-group

Examples

Add one or more Replica properties to a namespace.

az servicebus namespace replica add --namespace-name mynamespace -g MyResourceGroup --geo-data-replication-config role-type=Secondary location-name=mylocation

Required Parameters

--geo-data-replication-config --replica-config

A list of regions where replicas of the namespace are maintained Object.

--namespace-name

Name of the Namespace.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az servicebus namespace replica remove

Remove one or more Replica properties to a namespace.

az servicebus namespace replica remove --geo-data-replication-config
                                       --namespace-name
                                       --resource-group

Examples

Remove one or more Replica properties to a namespace.

az servicebus namespace replica remove --namespace-name mynamespace -g MyResourceGroup --geo-data-replication-config role-type=Secondary location-name=mylocation

Required Parameters

--geo-data-replication-config --replica-config

A list of regions where replicas of the namespace are maintained Object.

--namespace-name

Name of the Namespace.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.