az iot hub message-route fallback

Note

This reference is part of the azure-iot extension for the Azure CLI (version 2.46.0 or higher). The extension will automatically install the first time you run an az iot hub message-route fallback command. Learn more about extensions.

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

Manage the fallback route of an IoT hub.

Commands

Name Description Type Status
az iot hub message-route fallback set

Enable or disable the fallback route in an IoT Hub.

Extension Preview
az iot hub message-route fallback show

Show the fallback route of an IoT Hub.

Extension Preview

az iot hub message-route fallback set

Preview

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

Enable or disable the fallback route in an IoT Hub.

az iot hub message-route fallback set --enabled {false, true}
                                      --hub-name
                                      [--resource-group]

Examples

Enable the fallback route in an IoT Hub

az iot hub message-route fallback set -n {iothub_name} --enabled true

Disable the fallback route in an IoT Hub.

az iot hub message-route fallback set -n {iothub_name} --enabled false

Required Parameters

--enabled -e

A boolean indicating whether to enable route to the IoT Hub.

Accepted values: false, true
--hub-name -n

IoT Hub name.

Optional Parameters

--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 iot hub message-route fallback show

Preview

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

Show the fallback route of an IoT Hub.

az iot hub message-route fallback show --hub-name
                                       [--resource-group]

Examples

Show the fallback route from an IoT Hub.

az iot hub message-route fallback show -n {iothub_name}

Required Parameters

--hub-name -n

IoT Hub name.

Optional Parameters

--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.