Skip to content

Commit 2b40301

Browse files
committed
Fix links to deleted include
1 parent 7799190 commit 2b40301

File tree

4 files changed

+20
-96
lines changed

4 files changed

+20
-96
lines changed

articles/iot-hub/tutorial-connectivity.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ In this tutorial, you learn how to:
3838
* When you're prompted, install Azure CLI extensions on first use. For more information about extensions, see [Use extensions with the Azure CLI](/cli/azure/azure-cli-extensions-overview).
3939
* Run [az version](/cli/azure/reference-index?#az-version) to find the version and dependent libraries that are installed. To upgrade to the latest version, run [az upgrade](/cli/azure/reference-index?#az-upgrade).
4040

41+
[!INCLUDE [iot-hub-cli-version-info](iot-hub-cli-version-info.md)]
42+
4143
* The sample application that you run in this tutorial uses Node.js. You need Node.js v10.x.x or later on your development machine.
4244

4345
* You can download Node.js for multiple platforms from [nodejs.org](https://nodejs.org).
@@ -51,7 +53,9 @@ In this tutorial, you learn how to:
5153
5254
* Make sure that port 8883 is open in your firewall. The device sample in this tutorial 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).
5355
54-
[!INCLUDE [iot-hub-create-hub-quickstart](../../includes/iot-hub-create-hub-quickstart.md)]
56+
## Create an IoT hub
57+
58+
[!INCLUDE [iot-hub-include-create-hub-cli](iot-hub-include-create-hub-cli.md)]
5559
5660
## Check device authentication
5761

includes/quickstart-control-device-java.md

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: iot-hub
66
ms.devlang: java
77
ms.topic: include
88
ms.custom: [mvc, seo-java-august2019, seo-java-september2019, mqtt, devx-track-java, devx-track-azurecli]
9-
ms.date: 03/10/2022
9+
ms.date: 01/31/2023
1010
---
1111

1212
This quickstart uses two Java applications:
@@ -42,41 +42,13 @@ This quickstart uses two Java applications:
4242
4343
[!INCLUDE [iot-hub-cli-version-info](iot-hub-cli-version-info.md)]
4444
45-
[!INCLUDE [iot-hub-include-create-hub](iot-hub-include-create-hub-quickstart.md)]
45+
## Create an IoT hub
4646
47-
## Register a device
48-
49-
A device must be registered with your IoT hub before it can connect. In this quickstart, you use the Azure Cloud Shell to create a device identity.
50-
51-
If you already have a device registered in your IoT hub, you can skip this section.
52-
53-
1. Run the [az iot hub device-identity create](/cli/azure/iot/hub/device-identity#az-iot-hub-device-identity-create) command in Azure Cloud Shell to create the device identity.
54-
55-
**YourIoTHubName**: Replace this placeholder below with the name you chose for your IoT hub.
56-
57-
**MyJavaDevice**: This is the name of the device you're registering. It's recommended to use **MyJavaDevice** as shown. If you choose a different name for your device, you also need to use that name throughout this article, and update the device name in the sample applications before you run them.
58-
59-
```azurecli-interactive
60-
az iot hub device-identity create \
61-
--hub-name {YourIoTHubName} --device-id MyJavaDevice
62-
```
63-
64-
2. Run the [az iot hub device-identity connection-string show](/cli/azure/iot/hub/device-identity/connection-string#az-iot-hub-device-identity-connection-string-show) command in Azure Cloud Shell to get the _device connection string_ for the device you just registered:
47+
[!INCLUDE [iot-hub-include-create-hub-cli](iot-hub-include-create-hub-cli.md)]
6548
66-
**YourIoTHubName**: Replace this placeholder below with the name you choose for your IoT hub.
67-
68-
```azurecli-interactive
69-
az iot hub device-identity connection-string show\
70-
--hub-name {YourIoTHubName} \
71-
--device-id MyJavaDevice \
72-
--output table
73-
```
74-
75-
Make a note of the device connection string, which looks like:
76-
77-
`HostName={YourIoTHubName}.azure-devices.net;DeviceId=MyNodeDevice;SharedAccessKey={YourSharedAccessKey}`
49+
## Register a device
7850
79-
You use this value later in the quickstart.
51+
[!INCLUDE [iot-hub-include-create-device-cli](iot-hub-include-create-device-cli.md)]
8052
8153
## Retrieve the service connection string
8254

includes/quickstart-control-device-node.md

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: iot-hub
66
ms.devlang: nodejs
77
ms.topic: include
88
ms.custom: [mvc, seo-javascript-september2019, seo-javascript-october2019, mqtt, 'Role: Cloud Development', devx-track-js, devx-track-azurecli]
9-
ms.date: 03/09/2022
9+
ms.date: 01/31/2023
1010
---
1111

1212
This quickstart uses two Node.js applications:
@@ -34,41 +34,13 @@ This quickstart uses two Node.js applications:
3434
3535
[!INCLUDE [iot-hub-cli-version-info](iot-hub-cli-version-info.md)]
3636
37-
[!INCLUDE [iot-hub-include-create-hub](iot-hub-include-create-hub-quickstart.md)]
37+
## Create an IoT hub
3838
39-
## Register a device
40-
41-
A device must be registered with your IoT hub before it can connect. In this quickstart, you use Azure CLI to create a device identity.
42-
43-
If you already have a device registered in your IoT hub, you can skip this section.
44-
45-
1. Run the [az iot hub device-identity create](/cli/azure/iot/hub/device-identity#az-iot-hub-device-identity-create) command in Azure Cloud Shell to create the device identity.
46-
47-
**YourIoTHubName**: Replace this placeholder below with the name you chose for your IoT hub.
48-
49-
**MyNodeDevice**: This is the name of the device you're registering. It's recommended to use **MyNodeDevice** as shown. If you choose a different name for your device, you also need to use that name throughout this article, and update the device name in the sample applications before you run them.
50-
51-
```azurecli-interactive
52-
az iot hub device-identity create \
53-
--hub-name {YourIoTHubName} --device-id MyNodeDevice
54-
```
55-
56-
2. Run the [az iot hub device-identity connection-string show](/cli/azure/iot/hub/device-identity/connection-string#az-iot-hub-device-identity-connection-string-show) command in Azure Cloud Shell to get the _device connection string_ for the device you just registered:
39+
[!INCLUDE [iot-hub-include-create-hub-cli](iot-hub-include-create-hub-cli.md)]
5740
58-
**YourIoTHubName**: Replace this placeholder below with the name you chose for your IoT hub.
59-
60-
```azurecli-interactive
61-
az iot hub device-identity connection-string show \
62-
--hub-name {YourIoTHubName} \
63-
--device-id MyNodeDevice \
64-
--output table
65-
```
66-
67-
Make a note of the device connection string, which looks like:
68-
69-
`HostName={YourIoTHubName}.azure-devices.net;DeviceId=MyNodeDevice;SharedAccessKey={YourSharedAccessKey}`
41+
## Register a device
7042
71-
You use this value later in the quickstart.
43+
[!INCLUDE [iot-hub-include-create-device-cli](iot-hub-include-create-device-cli.md)]
7244
7345
## Retrieve the service connection string
7446

includes/quickstart-control-device-python.md

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: iot-hub
66
ms.devlang: python
77
ms.topic: include
88
ms.custom: [mvc, mqtt, devx-track-python, devx-track-azurecli]
9-
ms.date: 03/10/2022
9+
ms.date: 01/31/2023
1010
---
1111

1212
This quickstart uses two Python applications:
@@ -28,37 +28,13 @@ This quickstart uses two Python applications:
2828

2929
[!INCLUDE [iot-hub-cli-version-info](iot-hub-cli-version-info.md)]
3030

31-
[!INCLUDE [iot-hub-include-create-hub](iot-hub-include-create-hub-quickstart.md)]
31+
## Create an IoT hub
3232

33-
## Register a device
34-
35-
A device must be registered with your IoT hub before it can connect. In this quickstart, you use the Azure Cloud Shell to register a simulated device.
36-
37-
If you already have a device registered in your IoT hub, you can skip this section.
38-
39-
1. Run the [az iot hub device-identity create](/cli/azure/iot/hub/device-identity#az-iot-hub-device-identity-create) command in Azure Cloud Shell to create the device identity.
40-
41-
**YourIoTHubName**: Replace this placeholder below with the name you chose for your IoT hub.
42-
43-
**MyPythonDevice**: This is the name of the device you're registering. It's recommended to use **MyPythonDevice** as shown. If you choose a different name for your device, you also need to use that name throughout this article, and update the device name in the sample applications before you run them.
44-
45-
```azurecli-interactive
46-
az iot hub device-identity create --hub-name {YourIoTHubName} --device-id MyPythonDevice
47-
```
48-
49-
2. Run the [az iot hub device-identity connection-string show](/cli/azure/iot/hub/device-identity/connection-string#az-iot-hub-device-identity-connection-string-show) command in Azure Cloud Shell to get the _device connection string_ for the device you just registered:
33+
[!INCLUDE [iot-hub-include-create-hub-cli](iot-hub-include-create-hub-cli.md)]
5034

51-
**YourIoTHubName**: Replace this placeholder below with the name you chose for your IoT hub.
52-
53-
```azurecli-interactive
54-
az iot hub device-identity connection-string show --hub-name {YourIoTHubName} --device-id MyPythonDevice --output table
55-
```
56-
57-
Make a note of the device connection string, which looks like:
58-
59-
`HostName={YourIoTHubName}.azure-devices.net;DeviceId=MyNodeDevice;SharedAccessKey={YourSharedAccessKey}`
35+
## Register a device
6036

61-
You use this value later in the quickstart.
37+
[!INCLUDE [iot-hub-include-create-device-cli](iot-hub-include-create-device-cli.md)]
6238

6339
## Retrieve the service connection string
6440

0 commit comments

Comments
 (0)