az iot hub job

Manage jobs in an IoT hub.

Commands

az iot hub job cancel Cancel a job in an IoT hub.
az iot hub job list List the jobs in an IoT hub.
az iot hub job show Get the details of a job in an IoT hub.

az iot hub job cancel

Cancel a job in an IoT hub.

az iot hub job cancel [--hub-name]
[--ids]
[--job-id]
[--resource-group]
[--subscription]

Examples

Cancel a job in an IoT hub. (autogenerated)

az iot hub job cancel --hub-name MyHub --job-id JobId

Optional Parameters

--hub-name

IoT Hub name.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. If provided, no other 'Resource Id' arguments should be specified.

--job-id

Job Id.

--resource-group -g

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

--subscription

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

az iot hub job list

List the jobs in an IoT hub.

az iot hub job list [--hub-name]
[--ids]
[--resource-group]
[--subscription]

Examples

List the jobs in an IoT hub. (autogenerated)

az iot hub job list --hub-name MyHub

Optional Parameters

--hub-name

IoT Hub name.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. If provided, no other 'Resource Id' arguments should be specified.

--resource-group -g

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

--subscription

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

az iot hub job show

Get the details of a job in an IoT hub.

az iot hub job show [--hub-name]
[--ids]
[--job-id]
[--resource-group]
[--subscription]

Examples

Get the details of a job in an IoT hub. (autogenerated)

az iot hub job show --hub-name MyHub --job-id JobId

Optional Parameters

--hub-name

IoT Hub name.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. If provided, no other 'Resource Id' arguments should be specified.

--job-id

Job Id.

--resource-group -g

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

--subscription

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