Skip to content

Commit 0939b9d

Browse files
authored
Merge pull request #206283 from w-azure/winona-iot-hub-537
Removed hub/device create & TOC - 537
2 parents 1401d94 + 2a3a821 commit 0939b9d

File tree

5 files changed

+38
-56
lines changed

5 files changed

+38
-56
lines changed

articles/iot-hub/TOC.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,14 +277,14 @@
277277
href: iot-hub-java-java-device-management-getstarted.md
278278
- name: Schedule and broadcast jobs
279279
items:
280-
- name: Node.js
281-
href: iot-hub-node-node-schedule-jobs.md
282280
- name: .NET
283281
href: iot-hub-csharp-csharp-schedule-jobs.md
284-
- name: Java
285-
href: iot-hub-java-java-schedule-jobs.md
286282
- name: Python
287283
href: iot-hub-python-python-schedule-jobs.md
284+
- name: Node.js
285+
href: iot-hub-node-node-schedule-jobs.md
286+
- name: Java
287+
href: iot-hub-java-java-schedule-jobs.md
288288
- name: Manage
289289
items:
290290
- name: Create an IoT hub

articles/iot-hub/iot-hub-csharp-csharp-schedule-jobs.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ To learn more about each of these capabilities, see:
3333

3434
[!INCLUDE [iot-hub-basic](../../includes/iot-hub-basic-whole.md)]
3535

36-
This tutorial shows you how to:
36+
This article shows you how to:
3737

3838
* Create a device app that implements a direct method called **LockDoor**, which can be called by the back-end app.
3939

4040
* Create a back-end app that creates a job to call the **LockDoor** direct method on multiple devices. Another job sends desired property updates to multiple devices.
4141

42-
At the end of this tutorial, you have two .NET (C#) console apps:
42+
At the end of this article, you have two .NET (C#) console apps:
4343

4444
* **SimulateDeviceMethods**. This app connects to your IoT hub and implements the **LockDoor** direct method.
4545

@@ -49,17 +49,13 @@ At the end of this tutorial, you have two .NET (C#) console apps:
4949

5050
* Visual Studio.
5151

52-
* An active Azure account. If you don't have an account, you can create a [free account](https://azure.microsoft.com/pricing/free-trial/) in just a couple of minutes.
53-
54-
* Make sure that port 8883 is open in your firewall. The device sample in this article uses MQTT protocol, which communicates over port 8883. This port may be blocked in some corporate and educational network environments. For more information and ways to work around this issue, see [Connecting to IoT Hub (MQTT)](iot-hub-mqtt-support.md#connecting-to-iot-hub).
52+
* An IoT Hub. Create one with the [CLI](iot-hub-create-using-cli.md) or the [Azure portal](iot-hub-create-through-portal.md).
5553

56-
## Create an IoT hub
54+
* A registered device. Register one in the [Azure portal](iot-hub-create-through-portal.md#register-a-new-device-in-the-iot-hub).
5755

58-
[!INCLUDE [iot-hub-include-create-hub](../../includes/iot-hub-include-create-hub.md)]
59-
60-
## Register a new device in the IoT hub
56+
* An active Azure account. If you don't have an account, you can create a [free account](https://azure.microsoft.com/pricing/free-trial/) in just a couple of minutes.
6157

62-
[!INCLUDE [iot-hub-include-create-device](../../includes/iot-hub-include-create-device.md)]
58+
* Make sure that port 8883 is open in your firewall. The device sample in this article uses MQTT protocol, which communicates over port 8883. This port may be blocked in some corporate and educational network environments. For more information and ways to work around this issue, see [Connecting to IoT Hub (MQTT)](iot-hub-mqtt-support.md#connecting-to-iot-hub).
6359

6460
## Create a simulated device app
6561

@@ -151,7 +147,7 @@ In this section, you create a .NET console app that responds to a direct method
151147
1. Save your work and build your solution.
152148

153149
> [!NOTE]
154-
> To keep things simple, this tutorial does not implement any retry policies. In production code, you should implement retry policies (such as connection retry), as suggested in [Transient fault handling](/azure/architecture/best-practices/transient-faults).
150+
> To keep things simple, this article does not implement any retry policies. In production code, you should implement retry policies (such as connection retry), as suggested in [Transient fault handling](/azure/architecture/best-practices/transient-faults).
155151
>
156152

157153
## Get the IoT hub connection string
@@ -304,7 +300,7 @@ You are now ready to run the apps.
304300

305301
## Next steps
306302

307-
In this tutorial, you used a job to schedule a direct method to a device and the update of the device twin's properties.
303+
In this article, you used a job to schedule a direct method to a device and the update of the device twin's properties.
308304

309305
* To continue getting started with IoT Hub and device management patterns such as end-to-end image-based update in [Device Update for Azure IoT Hub tutorial using the Raspberry Pi 3 B+ Reference Image](../iot-hub-device-update/device-update-raspberry-pi.md).
310306

articles/iot-hub/iot-hub-java-java-schedule-jobs.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ To learn more about each of these capabilities, see:
3232

3333
[!INCLUDE [iot-hub-basic](../../includes/iot-hub-basic-whole.md)]
3434

35-
This tutorial shows you how to:
35+
This article shows you how to:
3636

3737
* Create a device app that implements a direct method called **lockDoor**. The device app also receives desired property changes from the back-end app.
3838

3939
* Create a back-end app that creates a job to call the **lockDoor** direct method on multiple devices. Another job sends desired property updates to multiple devices.
4040

41-
At the end of this tutorial, you have a Java console device app and a Java console back-end app:
41+
At the end of this article, you have a Java console device app and a Java console back-end app:
4242

4343
**simulated-device** that connects to your IoT hub, implements the **lockDoor** direct method, and handles desired property changes.
4444

@@ -49,6 +49,10 @@ At the end of this tutorial, you have a Java console device app and a Java conso
4949
5050
## Prerequisites
5151

52+
* An IoT Hub. Create one with the [CLI](iot-hub-create-using-cli.md) or the [Azure portal](iot-hub-create-through-portal.md).
53+
54+
* A registered device. Register one in the [Azure portal](iot-hub-create-through-portal.md#register-a-new-device-in-the-iot-hub).
55+
5256
* [Java SE Development Kit 8](/java/azure/jdk/). Make sure you select **Java 8** under **Long-term support** to get to downloads for JDK 8.
5357

5458
* [Maven 3](https://maven.apache.org/download.cgi)
@@ -57,16 +61,6 @@ At the end of this tutorial, you have a Java console device app and a Java conso
5761

5862
* Make sure that port 8883 is open in your firewall. The device sample in this article uses MQTT protocol, which communicates over port 8883. This port may be blocked in some corporate and educational network environments. For more information and ways to work around this issue, see [Connecting to IoT Hub (MQTT)](iot-hub-mqtt-support.md#connecting-to-iot-hub).
5963

60-
## Create an IoT hub
61-
62-
[!INCLUDE [iot-hub-include-create-hub](../../includes/iot-hub-include-create-hub.md)]
63-
64-
## Register a new device in the IoT hub
65-
66-
[!INCLUDE [iot-hub-include-create-device](../../includes/iot-hub-include-create-device.md)]
67-
68-
You can also use the [IoT extension for Azure CLI](https://github.com/Azure/azure-iot-cli-extension) tool to add a device to your IoT hub.
69-
7064
## Get the IoT hub connection string
7165

7266
[!INCLUDE [iot-hub-howto-schedule-jobs-shared-access-policy-text](../../includes/iot-hub-howto-schedule-jobs-shared-access-policy-text.md)]
@@ -365,7 +359,7 @@ In this section, you create a Java console app that handles the desired properti
365359
import java.util.Scanner;
366360
```
367361

368-
9. Add the following class-level variables to the **App** class. Replace `{yourdeviceconnectionstring}` with the device connection string you copied previously in the [Register a new device in the IoT hub](#register-a-new-device-in-the-iot-hub) section:
362+
9. Add the following class-level variables to the **App** class. Replace `{yourdeviceconnectionstring}` with the device connection string you saw when you registered a device in your IoT Hub:
369363

370364
```java
371365
private static String connString = "{yourdeviceconnectionstring}";
@@ -511,10 +505,10 @@ You are now ready to run the console apps.
511505

512506
## Next steps
513507

514-
In this tutorial, you used a job to schedule a direct method to a device and the update of the device twin's properties.
508+
In this article, you used a job to schedule a direct method to a device and the update of the device twin's properties.
515509

516510
Use the following resources to learn how to:
517511

518-
* Send telemetry from devices with the [Get started with IoT Hub](../iot-develop/quickstart-send-telemetry-iot-hub.md?pivots=programming-language-java) tutorial.
512+
* Send telemetry from devices with the [Get started with IoT Hub](../iot-develop/quickstart-send-telemetry-iot-hub.md?pivots=programming-language-java) article.
519513

520514
* Control devices interactively (such as turning on a fan from a user-controlled app) with the [Use direct methods](./quickstart-control-device.md?pivots=programming-language-java) quickstart.

articles/iot-hub/iot-hub-node-node-schedule-jobs.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,33 +32,29 @@ Learn more about each of these capabilities in these articles:
3232

3333
[!INCLUDE [iot-hub-basic](../../includes/iot-hub-basic-whole.md)]
3434

35-
This tutorial shows you how to:
35+
This article shows you how to:
3636

3737
* Create a Node.js simulated device app that has a direct method, which enables **lockDoor**, which can be called by the solution back end.
3838

3939
* Create a Node.js console app that calls the **lockDoor** direct method in the simulated device app using a job and updates the desired properties using a device job.
4040

41-
At the end of this tutorial, you have two Node.js apps:
41+
At the end of this article, you have two Node.js apps:
4242

4343
* **simDevice.js**, which connects to your IoT hub with the device identity and receives a **lockDoor** direct method.
4444

4545
* **scheduleJobService.js**, which calls a direct method in the simulated device app and updates the device twin's desired properties using a job.
4646

4747
## Prerequisites
4848

49-
* Node.js version 10.0.x or later. [Prepare your development environment](https://github.com/Azure/azure-iot-sdk-node/tree/main/doc/node-devbox-setup.md) describes how to install Node.js for this tutorial on either Windows or Linux.
49+
* An IoT Hub. Create one with the [CLI](iot-hub-create-using-cli.md) or the [Azure portal](iot-hub-create-through-portal.md).
5050

51-
* An active Azure account. (If you don't have an account, you can create a [free account](https://azure.microsoft.com/pricing/free-trial/) in just a couple of minutes.)
52-
53-
* Make sure that port 8883 is open in your firewall. The device sample in this article uses MQTT protocol, which communicates over port 8883. This port may be blocked in some corporate and educational network environments. For more information and ways to work around this issue, see [Connecting to IoT Hub (MQTT)](iot-hub-mqtt-support.md#connecting-to-iot-hub).
51+
* A registered device. Register one in the [Azure portal](iot-hub-create-through-portal.md#register-a-new-device-in-the-iot-hub).
5452

55-
## Create an IoT hub
53+
* Node.js version 10.0.x or later. [Prepare your development environment](https://github.com/Azure/azure-iot-sdk-node/tree/main/doc/node-devbox-setup.md) describes how to install Node.js for this article on either Windows or Linux.
5654

57-
[!INCLUDE [iot-hub-include-create-hub](../../includes/iot-hub-include-create-hub.md)]
58-
59-
## Register a new device in the IoT hub
55+
* An active Azure account. (If you don't have an account, you can create a [free account](https://azure.microsoft.com/pricing/free-trial/) in just a couple of minutes.)
6056

61-
[!INCLUDE [iot-hub-get-started-create-device-identity](../../includes/iot-hub-get-started-create-device-identity.md)]
57+
* Make sure that port 8883 is open in your firewall. The device sample in this article uses MQTT protocol, which communicates over port 8883. This port may be blocked in some corporate and educational network environments. For more information and ways to work around this issue, see [Connecting to IoT Hub (MQTT)](iot-hub-mqtt-support.md#connecting-to-iot-hub).
6258

6359
## Create a simulated device app
6460

@@ -128,7 +124,7 @@ In this section, you create a Node.js console app that responds to a direct meth
128124
8. Save and close the **simDevice.js** file.
129125

130126
> [!NOTE]
131-
> To keep things simple, this tutorial does not implement any retry policy. In production code, you should implement retry policies (such as an exponential backoff), as suggested in the article, [Transient Fault Handling](/azure/architecture/best-practices/transient-faults).
127+
> To keep things simple, this article does not implement any retry policy. In production code, you should implement retry policies (such as an exponential backoff), as suggested in the article, [Transient Fault Handling](/azure/architecture/best-practices/transient-faults).
132128
>
133129

134130
## Get the IoT hub connection string
@@ -291,7 +287,7 @@ You are now ready to run the applications.
291287

292288
## Next steps
293289

294-
In this tutorial, you used a job to schedule a direct method to a device and the update of the device twin's properties.
290+
In this article, you used a job to schedule a direct method to a device and the update of the device twin's properties.
295291
296292
To continue getting started with IoT Hub and device management patterns such as end-to-end image-based update in [Device Update for Azure IoT Hub tutorial using the Raspberry Pi 3 B+ Reference Image](../iot-hub-device-update/device-update-raspberry-pi.md).
297293

articles/iot-hub/iot-hub-python-python-schedule-jobs.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ Learn more about each of these capabilities in these articles:
3131

3232
[!INCLUDE [iot-hub-basic](../../includes/iot-hub-basic-whole.md)]
3333

34-
This tutorial shows you how to:
34+
This article shows you how to:
3535

3636
* Create a Python simulated device app that has a direct method, which enables **lockDoor**, which can be called by the solution back end.
3737

3838
* Create a Python console app that calls the **lockDoor** direct method in the simulated device app using a job and updates the desired properties using a device job.
3939

40-
At the end of this tutorial, you have two Python apps:
40+
At the end of this article, you have two Python apps:
4141

4242
**simDevice.py**, which connects to your IoT hub with the device identity and receives a **lockDoor** direct method.
4343

@@ -47,15 +47,11 @@ At the end of this tutorial, you have two Python apps:
4747

4848
## Prerequisites
4949

50-
[!INCLUDE [iot-hub-include-python-v2-installation-notes](../../includes/iot-hub-include-python-v2-installation-notes.md)]
51-
52-
## Create an IoT hub
50+
* An IoT Hub. Create one with the [CLI](iot-hub-create-using-cli.md) or the [Azure portal](iot-hub-create-through-portal.md).
5351

54-
[!INCLUDE [iot-hub-include-create-hub](../../includes/iot-hub-include-create-hub.md)]
52+
* A registered device. Register one in the [Azure portal](iot-hub-create-through-portal.md#register-a-new-device-in-the-iot-hub).
5553

56-
## Register a new device in the IoT hub
57-
58-
[!INCLUDE [iot-hub-include-create-device](../../includes/iot-hub-include-create-device.md)]
54+
[!INCLUDE [iot-hub-include-python-v2-installation-notes](../../includes/iot-hub-include-python-v2-installation-notes.md)]
5955

6056
## Create a simulated device app
6157

@@ -143,7 +139,7 @@ In this section, you create a Python console app that responds to a direct metho
143139
6. Save and close the **simDevice.py** file.
144140
145141
> [!NOTE]
146-
> To keep things simple, this tutorial does not implement any retry policy. In production code, you should implement retry policies (such as an exponential backoff), as suggested in the article, [Transient Fault Handling](/azure/architecture/best-practices/transient-faults).
142+
> To keep things simple, this article does not implement any retry policy. In production code, you should implement retry policies (such as an exponential backoff), as suggested in the article, [Transient Fault Handling](/azure/architecture/best-practices/transient-faults).
147143
>
148144
149145
## Get the IoT hub connection string
@@ -182,7 +178,7 @@ In this section, you create a Python console app that initiates a remote **lockD
182178
183179
2. Using a text editor, create a new **scheduleJobService.py** file in your working directory.
184180
185-
3. Add the following `import` statements and variables at the start of the **scheduleJobService.py** file. Replace the `{IoTHubConnectionString}` placeholder with the IoT hub connection string you copied previously in [Get the IoT hub connection string](#get-the-iot-hub-connection-string). Replace the `{deviceId}` placeholder with the device ID you registered in [Register a new device in the IoT hub](#register-a-new-device-in-the-iot-hub):
181+
3. Add the following `import` statements and variables at the start of the **scheduleJobService.py** file. Replace the `{IoTHubConnectionString}` placeholder with the IoT hub connection string you copied previously in [Get the IoT hub connection string](#get-the-iot-hub-connection-string). Replace the `{deviceId}` placeholder with the device ID (the name) from your registered device:
186182
187183
```python
188184
import os
@@ -318,6 +314,6 @@ You are now ready to run the applications.
318314

319315
## Next steps
320316

321-
In this tutorial, you used a job to schedule a direct method to a device and the update of the device twin's properties.
317+
In this article, you used a job to schedule a direct method to a device and the update of the device twin's properties.
322318

323319
To continue getting started with IoT Hub and device management patterns such as end-to-end image-based update in [Device Update for Azure IoT Hub tutorial using the Raspberry Pi 3 B+ Reference Image](../iot-hub-device-update/device-update-raspberry-pi.md).

0 commit comments

Comments
 (0)