You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-hub/iot-hub-devguide-jobs.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,13 @@ author: cwatson-cat
5
5
ms.author: cwatson
6
6
ms.service: azure-iot-hub
7
7
ms.topic: concept-article
8
-
ms.date: 05/06/2019
8
+
ms.date: 08/13/2025
9
9
ms.custom: mqtt
10
10
---
11
11
12
12
# Schedule Azure IoT Hub jobs on multiple devices
13
13
14
-
Azure IoT Hub enables a number of building blocks like [device twin properties and tags](iot-hub-devguide-device-twins.md) and [direct methods](iot-hub-devguide-direct-methods.md). Typically, back-end apps enable device administrators and operators to update and interact with IoT devices in bulk and at a scheduled time. Jobs execute device twin updates and direct methods against a set of devices at a scheduled time. For example, an operator would use a back-end app that initiates and tracks a job to reboot a set of devices in building 43 and floor 3 at a time that would not be disruptive to the operations of the building.
14
+
Azure IoT Hub enables many building blocks like [device twin properties and tags](iot-hub-devguide-device-twins.md) and [direct methods](iot-hub-devguide-direct-methods.md). Typically, back-end apps enable device administrators and operators to update and interact with IoT devices in bulk and at a scheduled time. Jobs execute device twin updates and direct methods against a set of devices at a scheduled time. For example, an operator would use a back-end app that initiates and tracks a job to reboot a set of devices in building 43 and floor 3 at a time that wouldn't be disruptive to the operations of the building.
@@ -23,7 +23,7 @@ Consider using jobs when you need to schedule and track progress any of the foll
23
23
24
24
## Job lifecycle
25
25
26
-
Jobs are initiated by the solution back end and maintained by IoT Hub. You can initiate a job through a service-facing URI (`PUT https://<iot hub>/jobs/v2/<jobID>?api-version=2021-04-12`) and query for progress on an executing job through a service-facing URI (`GET https://<iot hub>/jobs/v2/<jobID?api-version=2021-04-12`). To refresh the status of running jobs once a job is initiated, run a job query. There is no explicit purge of job history, but they have a TTL of 30 days.
26
+
Jobs are initiated by the solution back end and maintained by IoT Hub. You can initiate a job through a service-facing URI (`PUT https://<iot hub>/jobs/v2/<jobID>?api-version=2021-04-12`) and query for progress on an executing job through a service-facing URI (`GET https://<iot hub>/jobs/v2/<jobID?api-version=2021-04-12`). To refresh the status of running jobs once a job is initiated, run a job query. There's no explicit purge of job history, but they have a TTL of 30 days.
27
27
28
28
> [!NOTE]
29
29
> When you initiate a job, property names and values can only contain US-ASCII printable alphanumeric, except any in the following set: `$ ( ) < > @ , ; : \ " / [ ] ? = { } SP HT`
@@ -63,7 +63,7 @@ The query condition can also be on a single device ID or on a list of device IDs
63
63
"queryCondition" = "deviceId IN ['MyDevice1']"
64
64
```
65
65
66
-
[IoT Hub Query Language](iot-hub-devguide-query-language.md) covers IoT Hub query language in additional detail.
66
+
For more information about the IoT Hub query language, see [IoT Hub query language for device and module twins, jobs, and message routing](iot-hub-devguide-query-language.md).
67
67
68
68
The following snippet shows the request and response for a job scheduled to call a direct method named testMethod on all devices on contoso-hub-1:
The continuationToken is provided from the response.
170
170
171
-
You can query for the job execution status on each device using the [IoT Hub query language for device twins, jobs, and message routing](iot-hub-devguide-query-language.md).
171
+
You can query for the job execution status on each device using the [IoT Hub query language for device and module twins, jobs, and message routing](iot-hub-devguide-query-language.md).
172
172
173
173
## Jobs properties
174
174
@@ -198,24 +198,24 @@ The following list shows the properties and corresponding descriptions, which ca
198
198
||**deviceJobStatistics.runningCount**: Number of devices that are currently running the job. |
199
199
||**deviceJobStatistics.pendingCount**: Number of devices that are pending to run the job. |
200
200
201
-
### Additional reference material
201
+
### Other reference material
202
202
203
-
Other reference topics in the IoT Hub developer guide include:
203
+
Other reference articles in the IoT Hub developer guide include:
204
204
205
205
*[IoT Hub endpoints](iot-hub-devguide-endpoints.md) describes the various endpoints that each IoT hub exposes for run-time and management operations.
206
206
207
-
*[Throttling and quotas](iot-hub-devguide-quotas-throttling.md) describes the quotas that apply to the IoT Hub service and the throttling behavior to expect when you use the service.
207
+
*[IoT Hub quotas and throttling](iot-hub-devguide-quotas-throttling.md) describes the quotas that apply to the IoT Hub service and the throttling behavior to expect when you use the service.
208
208
209
-
*[Azure IoT device and service SDKs](iot-hub-devguide-sdks.md) lists the various language SDKs you can use when you develop both device and service apps that interact with IoT Hub.
209
+
*[Azure IoT Hub SDKs](iot-hub-devguide-sdks.md) lists the various language SDKs you can use when you develop both device and service apps that interact with IoT Hub.
210
210
211
-
*[IoT Hub query language for device twins, jobs, and message routing](iot-hub-devguide-query-language.md) describes the IoT Hub query language. Use this query language to retrieve information from IoT Hub about your device twins and jobs.
211
+
*[IoT Hub query language for device and module twins, jobs, and message routing](iot-hub-devguide-query-language.md) describes the IoT Hub query language. Use this query language to retrieve information from IoT Hub about your device twins and jobs.
212
212
213
-
*[IoT Hub MQTT support](../iot/iot-mqtt-connect-to-iot-hub.md) provides more information about IoT Hub support for the MQTT protocol.
213
+
*[Communicate with an IoT hub using the MQTT protocol](../iot/iot-mqtt-connect-to-iot-hub.md) provides more information about IoT Hub support for the MQTT protocol.
214
214
215
215
## Next steps
216
216
217
-
To try out some of the concepts described in this article, see the following IoT Hub tutorial:
217
+
To explore some of the concepts described in this article, see the following IoT Hub article:
218
218
219
-
*[Schedule and broadcast jobs](schedule-jobs-node.md)
219
+
*[Reliability in Azure IoT Hub](schedule-jobs-node.md)
0 commit comments