שתף באמצעות


az iot ops broker authz

Note

This reference is part of the azure-iot-ops extension for the Azure CLI (version 2.53.0 or higher). The extension will automatically install the first time you run an az iot ops broker authz command. Learn more about extensions.

Command group 'iot ops' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Broker authorization management.

Commands

Name Description Type Status
az iot ops broker authz delete

Delete an mqtt broker authorization resource.

Extension Preview
az iot ops broker authz list

List mqtt broker authorization resources associated with an instance.

Extension Preview
az iot ops broker authz show

Show details of an mqtt broker authorization resource.

Extension Preview

az iot ops broker authz delete

Experimental Preview Deprecated

Command group 'iot ops' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Delete an mqtt broker authorization resource.

az iot ops broker authz delete --broker
                               --instance
                               --name
                               --resource-group
                               [--yes {false, true}]

Examples

Delete the broker authorization resource called 'authz' associated with broker 'broker'.

az iot ops broker authz delete -n authz -b broker --in mycluster-ops-instance -g myresourcegroup

Same as prior example but skipping the confirmation prompt.

az iot ops broker authz delete -n authz -b broker --in mycluster-ops-instance -g myresourcegroup -y

Required Parameters

--broker -b
Experimental Preview Deprecated

Mqtt broker name.

--instance -i
Experimental Preview Deprecated

IoT Operations instance name.

--name -n
Experimental Preview Deprecated

Mqtt broker authorization resource name.

--resource-group -g
Experimental Preview Deprecated

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

Optional Parameters

--yes -y
Experimental Preview Deprecated

Confirm [y]es without a prompt. Useful for CI and automation scenarios.

Accepted values: false, true
Global Parameters
--debug
Experimental Preview Deprecated

Increase logging verbosity to show all debug logs.

--help -h
Experimental Preview Deprecated

Show this help message and exit.

--only-show-errors
Experimental Preview Deprecated

Only show errors, suppressing warnings.

--output -o
Experimental Preview Deprecated

Output format.

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

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

--subscription
Experimental Preview Deprecated

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

--verbose
Experimental Preview Deprecated

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

az iot ops broker authz list

Experimental Preview Deprecated

Command group 'iot ops' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

List mqtt broker authorization resources associated with an instance.

az iot ops broker authz list --broker
                             --instance
                             --resource-group

Examples

Enumerate all broker authorization resources associated with the default broker.

az iot ops broker authz list -b broker --in mycluster-ops-instance -g myresourcegroup

Required Parameters

--broker -b
Experimental Preview Deprecated

Mqtt broker name.

--instance -i
Experimental Preview Deprecated

IoT Operations instance name.

--resource-group -g
Experimental Preview Deprecated

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

Optional Parameters

Global Parameters
--debug
Experimental Preview Deprecated

Increase logging verbosity to show all debug logs.

--help -h
Experimental Preview Deprecated

Show this help message and exit.

--only-show-errors
Experimental Preview Deprecated

Only show errors, suppressing warnings.

--output -o
Experimental Preview Deprecated

Output format.

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

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

--subscription
Experimental Preview Deprecated

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

--verbose
Experimental Preview Deprecated

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

az iot ops broker authz show

Experimental Preview Deprecated

Command group 'iot ops' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Show details of an mqtt broker authorization resource.

az iot ops broker authz show --broker
                             --instance
                             --name
                             --resource-group

Examples

Show details of a broker authorization resource 'authz' associated with the default broker.

az iot ops broker authz show -n authz -b broker --in mycluster-ops-instance -g myresourcegroup

Required Parameters

--broker -b
Experimental Preview Deprecated

Mqtt broker name.

--instance -i
Experimental Preview Deprecated

IoT Operations instance name.

--name -n
Experimental Preview Deprecated

Mqtt broker authorization resource name.

--resource-group -g
Experimental Preview Deprecated

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

Optional Parameters

Global Parameters
--debug
Experimental Preview Deprecated

Increase logging verbosity to show all debug logs.

--help -h
Experimental Preview Deprecated

Show this help message and exit.

--only-show-errors
Experimental Preview Deprecated

Only show errors, suppressing warnings.

--output -o
Experimental Preview Deprecated

Output format.

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

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

--subscription
Experimental Preview Deprecated

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

--verbose
Experimental Preview Deprecated

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