Skip to content

Commit e86c231

Browse files
authored
Merge pull request #230859 from kgremban/mar15-metarefresh-devicemgmt
Metadata and filename refresh -- device management
2 parents 08374e7 + f65c88a commit e86c231

13 files changed

+67
-45
lines changed

articles/iot-hub/.openpublishing.redirection.iot-hub.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,26 @@
938938
"redirect_url": "/azure/iot-hub/tutorial-routing",
939939
"redirect_document_id": false
940940
},
941+
{
942+
"source_path_from_root": "/articles/iot-hub/iot-hub-csharp-csharp-device-management-get-started.md",
943+
"redirect_url": "/azure/iot-hub/device-management-dotnet",
944+
"redirect_document_id": true
945+
},
946+
{
947+
"source_path_from_root": "/articles/iot-hub/iot-hub-python-python-device-management-get-started.md",
948+
"redirect_url": "/azure/iot-hub/device-management-python",
949+
"redirect_document_id": true
950+
},
951+
{
952+
"source_path_from_root": "/articles/iot-hub/iot-hub-node-node-device-management-get-started.md",
953+
"redirect_url": "/azure/iot-hub/device-management-node",
954+
"redirect_document_id": true
955+
},
956+
{
957+
"source_path_from_root": "/articles/iot-hub/iot-hub-java-java-device-management-getstarted.md",
958+
"redirect_url": "/azure/iot-hub/device-management-java",
959+
"redirect_document_id": true
960+
},
941961
{
942962
"source_path_from_root": "/articles/iot-hub/iot-hub-store-data-in-azure-table-storage.md",
943963
"redirect_url": "/azure/iot-hub/tutorial-routing#routing-to-a-storage-account",

articles/iot-hub/TOC.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,16 +382,16 @@
382382
href: device-management-cli.md
383383
- name: .NET
384384
displayName: device management, status updates, device maintenance windows
385-
href: iot-hub-csharp-csharp-device-management-get-started.md
385+
href: device-management-dotnet.md
386386
- name: Python
387387
displayName: device management, status updates, device maintenance windows
388-
href: iot-hub-python-python-device-management-get-started.md
388+
href: device-management-python.md
389389
- name: Node.js
390390
displayName: device management, status updates, device maintenance windows
391-
href: iot-hub-node-node-device-management-get-started.md
391+
href: device-management-node.md
392392
- name: Java
393393
displayName: device management, status updates, device maintenance windows
394-
href: iot-hub-java-java-device-management-getstarted.md
394+
href: device-management-java.md
395395
- name: Schedule and broadcast jobs
396396
items:
397397
- name: CLI

articles/iot-hub/device-management-cli.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
title: Get started with Azure IoT Hub device management (Azure CLI)
3-
description: How to use Azure IoT Hub device management to initiate a remote device reboot. You use the Azure CLI to implement a simulated device and invoke a direct method from that device.
2+
title: Device management using direct methods (CLI)
3+
titleSuffix: Azure IoT Hub
4+
description: How to use Azure IoT Hub direct methods with the Azure CLI for device management tasks including invoking a remote device reboot.
45
author: kgremban
56

7+
ms.author: kgremban
68
ms.service: iot-hub
7-
services: iot-hub
89
ms.devlang: azurecli
9-
ms.topic: conceptual
10+
ms.topic: how-to
1011
ms.date: 01/30/2023
11-
ms.author: kgremban
1212
ms.custom: "mqtt, devx-track-azurecli"
1313
---
1414

articles/iot-hub/iot-hub-csharp-csharp-device-management-get-started.md renamed to articles/iot-hub/device-management-dotnet.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
title: Get started with Azure IoT Hub device management (.NET/.NET) | Microsoft Docs
3-
description: How to use Azure IoT Hub device management to initiate a remote device reboot. You use the Azure IoT device SDK for .NET to implement a simulated device app that includes a direct method and the Azure IoT service SDK for .NET to implement a service app that invokes the direct method.
2+
title: Device management using direct methods (.NET)
3+
titleSuffix: Azure IoT Hub
4+
description: How to use Azure IoT Hub direct methods with the .NET SDK for device management tasks including invoking a remote device reboot.
45
author: kgremban
56

7+
ms.author: kgremban
68
ms.service: iot-hub
7-
services: iot-hub
89
ms.devlang: csharp
9-
ms.topic: conceptual
10+
ms.topic: how-to
1011
ms.date: 08/20/2019
11-
ms.author: kgremban
1212
ms.custom: "mqtt, devx-track-csharp"
1313
---
1414

@@ -239,8 +239,8 @@ You're now ready to run the apps.
239239

240240
1. After that the device is connected and waiting for method invocations, right-click the **TriggerReboot** project, select **Debug**, and then select **Start new instance**.
241241

242-
You should see "Rebooting!" written in the **SimulatedManagedDevice** console and the reported properties of the device, which include the last reboot time, written in the **TriggerReboot** console.
242+
You should see **Rebooting** written in the **SimulatedManagedDevice** console and the reported properties of the device, which include the last reboot time, written in the **TriggerReboot** console.
243243

244-
![Service and device app run](./media/iot-hub-csharp-csharp-device-management-get-started/combinedrun.png)
244+
![Service and device app run](./media/iot-hub-csharp-csharp-device-management-get-started/combinedrun.png)
245245

246246
[!INCLUDE [iot-hub-dm-followup](../../includes/iot-hub-dm-followup.md)]

articles/iot-hub/iot-hub-java-java-device-management-getstarted.md renamed to articles/iot-hub/device-management-java.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
title: Get started with Azure IoT Hub device management (Java) | Microsoft Docs
3-
description: How to use Azure IoT Hub device management to initiate a remote device reboot. You use the Azure IoT device SDK for Java to implement a simulated device app that includes a direct method and the Azure IoT service SDK for Java to implement a service app that invokes the direct method.
2+
title: Device management using direct methods (Java)
3+
titleSuffix: Azure IoT Hub
4+
description: How to use Azure IoT Hub direct methods with the Java SDK for device management tasks including invoking a remote device reboot.
45
author: kgremban
56

67
ms.author: kgremban
78
ms.service: iot-hub
8-
services: iot-hub
99
ms.devlang: java
10-
ms.topic: conceptual
10+
ms.topic: how-to
1111
ms.date: 08/20/2019
1212
ms.custom: mqtt, devx-track-java
1313
---

articles/iot-hub/iot-hub-node-node-device-management-get-started.md renamed to articles/iot-hub/device-management-node.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
2-
title: Get started with Azure IoT Hub device management (Node) | Microsoft Docs
3-
description: How to use IoT Hub device management to initiate a remote device reboot. You use the Azure IoT SDK for Node.js to implement a simulated device app that includes a direct method and a service app that invokes the direct method.
2+
title: Device management using direct methods (Node.js)
3+
titleSuffix: Azure IoT Hub
4+
description: How to use Azure IoT Hub direct methods with the Node.js SDK for device management tasks including invoking a remote device reboot.
45
author: kgremban
56

67
ms.author: kgremban
78
ms.service: iot-hub
8-
services: iot-hub
9-
ms.topic: conceptual
9+
ms.devlang: nodejs
10+
ms.topic: how-to
1011
ms.date: 08/20/2019
1112
ms.custom: mqtt, devx-track-js
1213
---
@@ -43,19 +44,19 @@ In this section, you:
4344

4445
* Use the reported properties to enable device twin queries to identify devices and when they last rebooted.
4546

46-
1. Create an empty folder called **manageddevice**. In the **manageddevice** folder, create a package.json file using the following command at your command prompt. Accept all the defaults:
47+
1. Create an empty folder called **managed-device**. In the **managed-device** folder, create a package.json file using the following command at your command prompt. Accept all the defaults:
4748

4849
```cmd/sh
4950
npm init
5051
```
5152
52-
2. At your command prompt in the **manageddevice** folder, run the following command to install the **azure-iot-device** Device SDK package and **azure-iot-device-mqtt** package:
53+
2. At your command prompt in the **managed-device** folder, run the following command to install the **azure-iot-device** Device SDK package and **azure-iot-device-mqtt** package:
5354
5455
```cmd/sh
5556
npm install azure-iot-device azure-iot-device-mqtt --save
5657
```
5758
58-
3. Using a text editor, create a **dmpatterns_getstarted_device.js** file in the **manageddevice** folder.
59+
3. Using a text editor, create a **dmpatterns_getstarted_device.js** file in the **managed-device** folder.
5960
6061
4. Add the following 'require' statements at the start of the **dmpatterns_getstarted_device.js** file:
6162
@@ -143,19 +144,19 @@ In this section, you:
143144
144145
In this section, you create a Node.js console app that initiates a remote reboot on a device using a direct method. The app uses device twin queries to discover the last reboot time for that device.
145146
146-
1. Create an empty folder called **triggerrebootondevice**. In the **triggerrebootondevice** folder, create a package.json file using the following command at your command prompt. Accept all the defaults:
147+
1. Create an empty folder called **trigger-reboot-on-device**. In the **trigger-reboot-on-device** folder, create a package.json file using the following command at your command prompt. Accept all the defaults:
147148
148149
```cmd/sh
149150
npm init
150151
```
151152
152-
2. At your command prompt in the **triggerrebootondevice** folder, run the following command to install the **azure-iothub** Device SDK package and **azure-iot-device-mqtt** package:
153+
2. At your command prompt in the **trigger-reboot-on-device** folder, run the following command to install the **azure-iothub** Device SDK package and **azure-iot-device-mqtt** package:
153154
154155
```cmd/sh
155156
npm install azure-iothub --save
156157
```
157158
158-
3. Using a text editor, create a **dmpatterns_getstarted_service.js** file in the **triggerrebootondevice** folder.
159+
3. Using a text editor, create a **dmpatterns_getstarted_service.js** file in the **trigger-reboot-on-device** folder.
159160
160161
4. Add the following 'require' statements at the start of the **dmpatterns_getstarted_service.js** file:
161162
@@ -232,13 +233,13 @@ In this section, you create a Node.js console app that initiates a remote reboot
232233
233234
You're now ready to run the apps.
234235
235-
1. At the command prompt in the **manageddevice** folder, run the following command to begin listening for the reboot direct method.
236+
1. At the command prompt in the **managed-device** folder, run the following command to begin listening for the reboot direct method.
236237
237238
```cmd/sh
238239
node dmpatterns_getstarted_device.js
239240
```
240241
241-
2. At the command prompt in the **triggerrebootondevice** folder, run the following command to trigger the remote reboot and query for the device twin to find the last reboot time.
242+
2. At the command prompt in the **trigger-reboot-on-device** folder, run the following command to trigger the remote reboot and query for the device twin to find the last reboot time.
242243
243244
```cmd/sh
244245
node dmpatterns_getstarted_service.js

articles/iot-hub/iot-hub-python-python-device-management-get-started.md renamed to articles/iot-hub/device-management-python.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
title: Get started with Azure IoT Hub device management (Python) | Microsoft Docs
3-
description: How to use IoT Hub device management to initiate a remote device reboot. You use the Azure IoT SDK for Python to implement a simulated device app that includes a direct method and a service app that invokes the direct method.
2+
title: Device management using direct methods (Python)
3+
titleSuffix: Azure IoT Hub
4+
description: How to use Azure IoT Hub direct methods with the Python SDK for device management tasks including invoking a remote device reboot.
45
author: kgremban
6+
7+
ms.author: kgremban
58
ms.service: iot-hub
6-
services: iot-hub
79
ms.devlang: python
8-
ms.topic: conceptual
10+
ms.topic: how-to
911
ms.date: 12/29/2022
10-
ms.author: kgremban
1112
ms.custom: mqtt, devx-track-python, devx-track-azurecli, py-fresh-zinc
1213
---
1314

@@ -52,7 +53,7 @@ In this section, you:
5253

5354
* Use the reported properties to enable device twin queries to identify devices and when they last rebooted.
5455

55-
In Azure Cloud Shell you used above or any other environment with Python, create the device code.
56+
In Azure Cloud Shell you used previously, or any other environment with Python, create the device code.
5657

5758
1. At your command prompt, run the following command to install the **azure-iot-device** package:
5859

articles/iot-hub/iot-hub-c-c-module-twin-getstarted.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,5 +380,5 @@ int main(void)
380380

381381
To continue getting started with IoT Hub and to explore other IoT scenarios, see:
382382

383-
* [Getting started with device management](iot-hub-node-node-device-management-get-started.md)
383+
* [Getting started with device management](device-management-node.md)
384384
* [Getting started with IoT Edge](../iot-edge/quickstart-linux.md)

articles/iot-hub/iot-hub-csharp-csharp-module-twin-getstarted.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,6 @@ You can now run the apps.
171171

172172
To continue getting started with IoT Hub and to explore other IoT scenarios, see:
173173

174-
* [Getting started with device management](iot-hub-node-node-device-management-get-started.md)
174+
* [Getting started with device management](device-management-node.md)
175175

176176
* [Getting started with IoT Edge](../iot-edge/quickstart-linux.md)

articles/iot-hub/iot-hub-device-management-overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Within each of these five stages, there are several device operator requirements
7272

7373
## Device management patterns
7474

75-
IoT Hub enables the following set of device management patterns. The [device management tutorials](iot-hub-node-node-device-management-get-started.md) show you in more detail how to extend these patterns to fit your exact scenario and how to design new patterns based on these core templates.
75+
IoT Hub enables the following set of device management patterns. The [device management tutorials](device-management-node.md) show you in more detail how to extend these patterns to fit your exact scenario and how to design new patterns based on these core templates.
7676

7777
* **Reboot**: The back-end app informs the device through a direct method that it has started a reboot. The device uses the reported properties to update the reboot status of the device.
7878

@@ -112,4 +112,4 @@ For more information, see [Device Update for IoT Hub](../iot-hub-device-update/i
112112

113113
The capabilities, patterns, and code libraries that IoT Hub provides for device management, enable you to create IoT applications that fulfill enterprise IoT operator requirements within each device lifecycle stage.
114114

115-
To continue learning about the device management features in IoT Hub, see the [Get started with device management](iot-hub-node-node-device-management-get-started.md) tutorial.
115+
To continue learning about the device management features in IoT Hub, see [Get started with device management (Node.js)](device-management-node.md).

0 commit comments

Comments
 (0)