az iot adr ns su device-class

Note

This reference is part of the azure-iot extension for the Azure CLI (version 2.73.0 or higher). The extension will automatically install the first time you run an az iot adr ns su device-class command. Learn more about extensions.

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

View and delete Software Updates device classes.

Commands

Name Description Type Status
az iot adr ns su device-class delete

Delete a Software Updates device class.

Extension Preview
az iot adr ns su device-class list

List device classes in a linked Software Updates instance.

Extension Preview
az iot adr ns su device-class show

Show a Software Updates device class.

Extension Preview

az iot adr ns su device-class delete

Preview

Command group 'iot adr ns su device-class' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Delete a Software Updates device class.

az iot adr ns su device-class delete --cid --class-id --device-class-id
                                     --name --namespace --ns
                                     --resource-group
                                     [--acquire-policy-token]
                                     [--change-reference]
                                     [--yes {false, true}]

Examples

Delete a device class without prompting

az iot adr ns su device-class delete --ns myNamespace -g myResourceGroup \
  --device-class-id 0123456789abcdef --yes

Required Parameters

--cid --class-id --device-class-id

Device class identifier.

--name --namespace --ns -n

Name of the Device Registry namespace.

--resource-group -g

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

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--yes -y

Skip user prompts. Indicates acceptance of action. Used primarily for automation scenarios. Default: false.

Property Value
Accepted values: false, true
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--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.

Property Value
Default value: False

az iot adr ns su device-class list

Preview

Command group 'iot adr ns su device-class' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

List device classes in a linked Software Updates instance.

az iot adr ns su device-class list --name --namespace --ns
                                   --resource-group

Examples

List device classes

az iot adr ns su device-class list --ns myNamespace -g myResourceGroup

Required Parameters

--name --namespace --ns -n

Name of the Device Registry 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.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--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.

Property Value
Default value: False

az iot adr ns su device-class show

Preview

Command group 'iot adr ns su device-class' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Show a Software Updates device class.

az iot adr ns su device-class show --cid --class-id --device-class-id
                                   --name --namespace --ns
                                   --resource-group

Examples

Show a device class

az iot adr ns su device-class show --ns myNamespace -g myResourceGroup \
  --device-class-id 0123456789abcdef

Required Parameters

--cid --class-id --device-class-id

Device class identifier.

--name --namespace --ns -n

Name of the Device Registry 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.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--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.

Property Value
Default value: False