Skip to content

Commit ecc6d15

Browse files
committed
Updated content
1 parent a18e7bd commit ecc6d15

5 files changed

+18
-19
lines changed

articles/iot-hub/how-to-schedule-broadcast-jobs.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: lizross
88
ms.service: azure-iot-hub
99
ms.devlang: csharp
1010
ms.topic: how-to
11-
ms.date: 1/7/2025
11+
ms.date: 1/15/2025
1212
zone_pivot_groups: iot-hub-howto-c2d-1
1313
---
1414

@@ -18,9 +18,8 @@ This article shows you how to create back-end app code to schedule and broadcast
1818

1919
Use Azure IoT Hub to schedule and track jobs that update up to millions of devices for the following operations:
2020

21-
* Update desired properties
22-
* Update tags
2321
* Invoke direct methods
22+
* Updated device twin desired properties
2423

2524
A job wraps one of these actions and tracks the execution against a set of devices that is defined by a device twin query. For example, a back-end app can use a job to invoke a direct method on 10,000 devices that reboots the devices. You specify the set of devices with a device twin query and schedule the job to run at a future time. The job monitors progress as each of the devices receives and executes the reboot direct method.
2625

includes/iot-hub-howto-schedule-broadcast-jobs-dotnet.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ ms.author: kgremban
77
ms.service: azure-iot-hub
88
ms.devlang: csharp
99
ms.topic: include
10-
ms.date: 1/7/2025
10+
ms.date: 1/15/2025
1111
ms.custom: [amqp, mqtt, "Role: Cloud Development", "Role: IoT Device", devx-track-csharp, devx-track-dotnet]
1212
---
1313

1414
* Requires Visual Studio
1515

1616
## Overview
1717

18-
This article describes how to use the [Azure IoT SDK for .NET](https://github.com/Azure/azure-iot-sdk-csharp/blob/main/readme.md) to create backend service application code to a schedule job to invoke a direct method or perform a device twin desired property update on one or more devices.
18+
This article describes how to use the [Azure IoT SDK for .NET](https://github.com/Azure/azure-iot-sdk-csharp/blob/main/readme.md) to create backend service application code to a schedule job to invoke a direct method or perform a device twin update on one or more devices.
1919

2020
### Add service NuGet package
2121

@@ -60,11 +60,11 @@ jobClient = JobClient.CreateFromConnectionString(connString);
6060

6161
[!INCLUDE [iot-hub-howto-connect-service-iothub-entra-dotnet](iot-hub-howto-connect-service-iothub-entra-dotnet.md)]
6262

63-
### Schedule a direct method update job
63+
### Schedule a direct method job
6464

6565
Use [ScheduleDeviceMethodAsync](/dotnet/api/microsoft.azure.devices.jobclient.scheduledevicemethodasync) to schedule a job to run a direct method on one or multiple devices.
6666

67-
The [CloudToDeviceMethod](/dotnet/api/microsoft.azure.devices.cloudtodevicemethod.-ctor?#microsoft-azure-devices-cloudtodevicemethod-ctor(system-string-system-timespan-system-timespan)) object to specify the direct method name and device connection timeout values.
67+
Use the [CloudToDeviceMethod](/dotnet/api/microsoft.azure.devices.cloudtodevicemethod.-ctor?#microsoft-azure-devices-cloudtodevicemethod-ctor(system-string-system-timespan-system-timespan)) object to specify the direct method name and device connection timeout values.
6868

6969
```csharp
7070
// The CloudToDeviceMethod record specifies the direct method name and device connection timeout
@@ -73,7 +73,7 @@ new CloudToDeviceMethod("LockDoor", TimeSpan.FromSeconds(5),
7373
TimeSpan.FromSeconds(5));
7474
```
7575

76-
This example schedules a job for a direct method method named "LockDoor" on one device named "Device-1". The device(s) included in the scheduled job are contained second parameter as a query condition.
76+
This example schedules a job for a direct method named "LockDoor" on one device named "Device-1". The device(s) included in the scheduled job are contained second parameter as a query condition.
7777

7878
```csharp
7979
string methodJobId = Guid.NewGuid().ToString(); // a unique job ID
@@ -85,9 +85,9 @@ JobResponse result = await jobClient.ScheduleDeviceMethodAsync(methodJobId,
8585
(long)TimeSpan.FromMinutes(2).TotalSeconds);
8686
```
8787

88-
### Schedule a device desired twin update job
88+
### Schedule a device twin update job
8989

90-
Use [ScheduleTwinUpdateAsync](/dotnet/api/microsoft.azure.devices.jobclient.scheduledevicemethodasync) to schedule a new desired twin update job to run on one or multiple devices.
90+
Use [ScheduleTwinUpdateAsync](/dotnet/api/microsoft.azure.devices.jobclient.scheduledevicemethodasync) to schedule a new device twin desired properties and tags update job to run on one or more devices.
9191

9292
First, create and populate a device `Twin` object for the update. For example:
9393

includes/iot-hub-howto-schedule-broadcast-jobs-java.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ ms.author: kgremban
77
ms.service: azure-iot-hub
88
ms.devlang: java
99
ms.topic: include
10-
ms.date: 1/7/2025
10+
ms.date: 1/15/2025
1111
ms.custom: mqtt, devx-track-java, devx-track-extended-java
1212
---
1313

1414
* Requires [Java SE Development Kit 8](/azure/developer/java/fundamentals/). Make sure you select **Java 8** under **Long-term support** to navigate to downloads for JDK 8.
1515

1616
## Overview
1717

18-
This article describes how to use the [Azure IoT SDK for Java](https://github.com/Azure/azure-iot-sdk-java) to create backend service application code to schedule job to invoke a direct method or perform a device twin desired property update on one or more devices.
18+
This article describes how to use the [Azure IoT SDK for Java](https://github.com/Azure/azure-iot-sdk-java) to create backend service application code to schedule job to invoke a direct method or perform a device twin update on one or more devices.
1919

2020
### Service import statements
2121

@@ -102,9 +102,9 @@ try {
102102

103103
Use [scheduleUpdateTwin](/java/api/com.microsoft.azure.sdk.iot.service.jobs.jobclient?#com-microsoft-azure-sdk-iot-service-jobs-jobclient-scheduleupdatetwin(java-lang-string-java-lang-string-com-microsoft-azure-sdk-iot-service-devicetwin-devicetwindevice-java-util-date-long)) to schedule a job to run a device twin update on one or multiple devices.
104104

105-
This example method schedules a device twin update job for a specific job Id.
105+
This example method schedules a device twin update job for a specific job ID.
106106

107-
First, prepare a `DeviceTwinDevice` record for the device twin update. For example:
107+
First, prepare a [DeviceTwinDevice](/java/api/com.microsoft.azure.sdk.iot.service.devicetwin.devicetwindevice) record for the device twin update. For example:
108108

109109
```java
110110
String deviceId = "Device-1";
@@ -144,7 +144,7 @@ try {
144144

145145
### Monitor a job
146146

147-
Use [getJob](/java/api/com.microsoft.azure.sdk.iot.service.jobs.jobclient?#com-microsoft-azure-sdk-iot-service-jobs-jobclient-getjob(java-lang-string)) to access a job status.
147+
Use [getJob](/java/api/com.microsoft.azure.sdk.iot.service.jobs.jobclient?#com-microsoft-azure-sdk-iot-service-jobs-jobclient-getjob(java-lang-string)) to fetch job information based on a specific job ID. `getJob` returns a [JobResult](/java/api/com.microsoft.azure.sdk.iot.service.jobs.jobresult) object that contains methods and properties you can use to check job information including running status.
148148

149149
For example:
150150

includes/iot-hub-howto-schedule-broadcast-jobs-node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ ms.author: kgremban
77
ms.service: azure-iot-hub
88
ms.devlang: nodejs
99
ms.topic: include
10-
ms.date: 1/7/2025
10+
ms.date: 1/15/2025
1111
ms.custom: [amqp, mqtt, devx-track-js]
1212
---
1313

1414
* Requires Node.js version 10.0.x or later
1515

1616
## Overview
1717

18-
This article describes how to use the [Azure IoT SDK for Node.js](https://github.com/Azure/azure-iot-sdk-node) to create backend service application code to schedule job to invoke a direct method or perform a device twin desired property update on one or more devices.
18+
This article describes how to use the [Azure IoT SDK for Node.js](https://github.com/Azure/azure-iot-sdk-node) to create backend service application code to schedule job to invoke a direct method or perform a device twin update on one or more devices.
1919

2020
### Install service SDK package
2121

includes/iot-hub-howto-schedule-broadcast-jobs-python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.author: kgremban
77
ms.service: azure-iot-hub
88
ms.devlang: python
99
ms.topic: include
10-
ms.date: 1/7/2025
10+
ms.date: 1/15/2025
1111
ms.custom: mqtt, devx-track-python, py-fresh-zinc
1212
---
1313

@@ -106,7 +106,7 @@ new_job_response = iothub_job_manager.create_scheduled_job(job_id, job_request)
106106

107107
### Schedule a device twin update job
108108

109-
Use [create_scheduled_job](/python/api/azure-iot-hub/azure.iot.hub.iothubjobmanager?#azure-iot-hub-iothubjobmanager-create-scheduled-job) to create a new job to run a device twin update on one or multiple devices.
109+
Use [create_scheduled_job](/python/api/azure-iot-hub/azure.iot.hub.iothubjobmanager?#azure-iot-hub-iothubjobmanager-create-scheduled-job) to create a new job to run a device twin desired properties update on one or multiple devices.
110110

111111
`create_scheduled_job` parameter notes:
112112

0 commit comments

Comments
 (0)