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
These steps show how to create a simulated device on your development machine running Windows OS, run the Windows TPM simulator as the [Hardware Security Module (HSM)](https://azure.microsoft.com/blog/azure-iot-supports-new-security-hardware-to-strengthen-iot-security/) of the device, and use the code sample to connect this simulated device with the Device Provisioning Service and your IoT hub.
18
+
In this quickstart, you create a simulated IoT device on a Windows computer. The simulated device includes a TPM simulator as a Hardware Security Module (HSM). You use device sample Java code to connect this simulated device with your IoT hub using an individual enrollment with the Device Provisioning Service (DPS).
19
19
20
-
If you're unfamiliar with the process of autoprovisioning, be sure to also review [Auto-provisioning concepts](concepts-auto-provisioning.md). Also make sure you've completed the steps in [Set up IoT Hub Device Provisioning Service with the Azure portal](./quick-setup-auto-provision.md) before continuing.
20
+
## Prerequisites
21
21
22
-
The Azure IoT Device Provisioning Service supports two types of enrollments:
23
-
-[Enrollment groups](concepts-service.md#enrollment-group): Used to enroll multiple related devices.
24
-
-[Individual Enrollments](concepts-service.md#individual-enrollment): Used to enroll a single device.
25
-
26
-
This article will demonstrate individual enrollments.
22
+
- Review of [Auto-provisioning concepts](concepts-auto-provisioning.md).
23
+
- Completion of [Set up IoT Hub Device Provisioning Service with the Azure portal](./quick-setup-auto-provision.md).
24
+
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
25
+
-[Java SE Development Kit 8](https://aka.ms/azure-jdks).
26
+
-[Maven](https://maven.apache.org/install.html).
27
+
-[Git](https://git-scm.com/download/).
27
28
28
29
[!INCLUDE [IoT Device Provisioning Service basic](../../includes/iot-dps-basic.md)]
29
30
@@ -41,7 +42,7 @@ This article will demonstrate individual enrollments.
1. Run the [TPM](https://docs.microsoft.com/windows/device-security/tpm/trusted-platform-module-overview) simulator. Click **Allow access** to allow changes to _Windows Firewall_ settings. It listens over a socket on ports 2321 and 2322. Do not close this window; you need to keep this simulator running until the end of this quickstart guide.
45
+
1. Run the [TPM](https://docs.microsoft.com/windows/device-security/tpm/trusted-platform-module-overview) simulator to be the [HSM](https://azure.microsoft.com/blog/azure-iot-supports-new-security-hardware-to-strengthen-iot-security/) for the simulated device. Click **Allow access** to allow changes to _Windows Firewall_ settings. It listens over a socket on ports 2321 and 2322. Do not close this window; you need to keep this simulator running until the end of this quickstart guide.
@@ -90,6 +91,13 @@ This article will demonstrate individual enrollments.
90
91
91
92
## Create a device enrollment entry
92
93
94
+
The Azure IoT Device Provisioning Service supports two types of enrollments:
95
+
96
+
- [Enrollment groups](concepts-service.md#enrollment-group): Used to enroll multiple related devices.
97
+
- [Individual enrollments](concepts-service.md#individual-enrollment): Used to enroll a single device.
98
+
99
+
This article demonstrates individual enrollments.
100
+
93
101
1. Sign in to the Azure portal, select the **All resources** button on the left-hand menu and open your Device Provisioning service.
94
102
95
103
1. From the Device Provisioning Service menu, select **Manage enrollments**. Select **Individual Enrollments** tab and select the **Add individual enrollment** button at the top.
These steps show how to create a simulated device on your development machine running Windows OS, run the Windows TPM simulator as the [Hardware Security Module (HSM)](https://azure.microsoft.com/blog/azure-iot-supports-new-security-hardware-to-strengthen-iot-security/) of the device, and use the code sample to connect this simulated device with the Device Provisioning Service and your IoT hub.
17
+
In this quickstart, you create a simulated IoT device on a Windows computer. The simulated device includes a TPM simulator as a Hardware Security Module (HSM). You use device sample Node.js code to connect this simulated device with your IoT hub using an individual enrollment with the Device Provisioning Service (DPS).
18
18
19
-
If you're unfamiliar with the process of autoprovisioning, be sure to also review [Auto-provisioning concepts](concepts-auto-provisioning.md). Also make sure you've completed the steps in [Set up IoT Hub Device Provisioning Service with the Azure portal](./quick-setup-auto-provision.md) before continuing.
19
+
## Prerequisites
20
20
21
-
The Azure IoT Device Provisioning Service supports two types of enrollments:
22
-
-[Enrollment groups](concepts-service.md#enrollment-group): Used to enroll multiple related devices.
23
-
-[Individual Enrollments](concepts-service.md#individual-enrollment): Used to enroll a single device.
24
-
25
-
This article will demonstrate individual enrollments.
21
+
- Review of [Auto-provisioning concepts](concepts-auto-provisioning.md).
22
+
-Completion of [Set up IoT Hub Device Provisioning Service with the Azure portal](./quick-setup-auto-provision.md).
23
+
-An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
24
+
-[Node.js v4.0+](https://nodejs.org).
25
+
-[Git](https://git-scm.com/download/).
26
26
27
27
[!INCLUDE [IoT Device Provisioning Service basic](../../includes/iot-dps-basic.md)]
28
28
@@ -41,7 +41,7 @@ This article will demonstrate individual enrollments.
1. Navigate to the GitHub root folder and run the [TPM](https://docs.microsoft.com/windows/device-security/tpm/trusted-platform-module-overview) simulator. It listens over a socket on ports 2321 and 2322. Do not close this command window; you need to keep this simulator running until the end of this quickstart guide:
44
+
1. Navigate to the GitHub root folder and run the [TPM](https://docs.microsoft.com/windows/device-security/tpm/trusted-platform-module-overview) simulator to be the [HSM](https://azure.microsoft.com/blog/azure-iot-supports-new-security-hardware-to-strengthen-iot-security/) for the simulated device. It listens over a socket on ports 2321 and 2322. Do not close this command window; you need to keep this simulator running until the end of this quickstart guide:
45
45
46
46
```cmd/sh
47
47
.\azure-utpm-c\tools\tpm_simulator\Simulator.exe
@@ -130,6 +130,13 @@ This article will demonstrate individual enrollments.
130
130
131
131
## Create a device entry
132
132
133
+
The Azure IoT Device Provisioning Service supports two types of enrollments:
134
+
135
+
- [Enrollment groups](concepts-service.md#enrollment-group): Used to enroll multiple related devices.
136
+
- [Individual enrollments](concepts-service.md#individual-enrollment): Used to enroll a single device.
137
+
138
+
This article demonstrates individual enrollments.
139
+
133
140
1. Sign in to the Azure portal, select the **All resources** button on the left-hand menu and open your Device Provisioning service.
134
141
135
142
1. From the Device Provisioning Service menu, select **Manage enrollments**. Select **Individual Enrollments** tab and select the **Add individual enrollment** button at the top.
These steps show how to create a simulated device on your development machine running Windows OS, run the Windows TPM simulator as the [Hardware Security Module (HSM)](https://azure.microsoft.com/blog/azure-iot-supports-new-security-hardware-to-strengthen-iot-security/) of the device, and use the Python code sample to connect this simulated device with the Device Provisioning Service and your IoT hub.
18
+
In this quickstart, you create a simulated IoT device on a Windows computer. The simulated device includes a TPM simulator as a Hardware Security Module (HSM). You use device sample Python code to connect this simulated device with your IoT hub using an individual enrollment with the Device Provisioning Service (DPS).
19
19
20
-
> [!IMPORTANT]
21
-
> This article only applies to the deprecated V1 Python SDK. Device and service clients for the Iot Hub Device Provisioning Service are not yet available in V2. The team is currently hard at work to bring V2 to feature parity.
22
-
23
-
If you're unfamiliar with the process of autoprovisioning, be sure to also review [Auto-provisioning concepts](concepts-auto-provisioning.md). Also make sure you've completed the steps in [Set up IoT Hub Device Provisioning Service with the Azure portal](./quick-setup-auto-provision.md) before continuing.
20
+
## Prerequisites
24
21
25
-
The Azure IoT Device Provisioning Service supports two types of enrollments:
26
-
-[Enrollment groups](concepts-service.md#enrollment-group): Used to enroll multiple related devices.
27
-
-[Individual Enrollments](concepts-service.md#individual-enrollment): Used to enroll a single device.
22
+
- Review of [Auto-provisioning concepts](concepts-auto-provisioning.md).
23
+
- Completion of [Set up IoT Hub Device Provisioning Service with the Azure portal](./quick-setup-auto-provision.md).
24
+
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
25
+
-[Visual Studio 2015+](https://visualstudio.microsoft.com/vs/) with Desktop development with C++.
This article will demonstrate individual enrollments.
29
+
> [!IMPORTANT]
30
+
> This article only applies to the deprecated V1 Python SDK. Device and service clients for the Iot Hub Device Provisioning Service are not yet available in V2. The team is currently hard at work to bring V2 to feature parity.
30
31
31
32
[!INCLUDE [IoT Device Provisioning Service basic](../../includes/iot-dps-basic.md)]
32
33
@@ -58,7 +59,7 @@ This article will demonstrate individual enrollments.
1. In a separate command prompt, navigate to the TPM simulator folder and run the [TPM](https://docs.microsoft.com/windows/device-security/tpm/trusted-platform-module-overview) simulator. Click **Allow Access**. It listens over a socket on ports 2321 and 2322. Do not close this command window; you will need to keep this simulator running until the end of this quickstart guide.
62
+
1. In a separate command prompt, navigate to the TPM simulator folder and run the [TPM](https://docs.microsoft.com/windows/device-security/tpm/trusted-platform-module-overview) simulator to be the [HSM](https://azure.microsoft.com/blog/azure-iot-supports-new-security-hardware-to-strengthen-iot-security/) for the simulated device. Click **Allow Access**. It listens over a socket on ports 2321 and 2322. Do not close this command window; you will need to keep this simulator running until the end of this quickstart guide.
@@ -69,6 +70,13 @@ This article will demonstrate individual enrollments.
69
70
70
71
## Create a device enrollment entry
71
72
73
+
The Azure IoT Device Provisioning Service supports two types of enrollments:
74
+
75
+
- [Enrollment groups](concepts-service.md#enrollment-group): Used to enroll multiple related devices.
76
+
- [Individual enrollments](concepts-service.md#individual-enrollment): Used to enroll a single device.
77
+
78
+
This article demonstrates individual enrollments.
79
+
72
80
1. Open the solution generated in the *cmake* folder named `azure_iot_sdks.sln`, and build it in Visual Studio.
73
81
74
82
1. Right-click the **tpm_device_provision** project and select **Set as Startup Project**. Run the solution. The output window displays the **_Endorsement key_** and the **_Registration ID_** needed for device enrollment. Note down these values.
These steps show how to simulate an X.509 device on your development machine running Windows OS, and use a code sample to connect this simulateddevice with the Device Provisioning Service and your IoT hub.
If you're unfamiliar with the process of autoprovisioning, be sure to also review [Auto-provisioning concepts](concepts-auto-provisioning.md). Also make sure you've completed the steps in [Set up IoT Hub Device Provisioning Service with the Azure portal](./quick-setup-auto-provision.md) before continuing.
18
+
In this quickstart, you create a simulated X.509 device on a Windows computer. You use device sample Java code to connect this simulated device with your IoT hub using an individual enrollment with the Device Provisioning Service (DPS).
20
19
21
-
The Azure IoT Device Provisioning Service supports two types of enrollments:
22
-
-[Enrollment groups](concepts-service.md#enrollment-group): Used to enroll multiple related devices.
23
-
-[Individual Enrollments](concepts-service.md#individual-enrollment): Used to enroll a single device.
20
+
## Prerequisites
24
21
25
-
This article will demonstrate individual enrollments.
22
+
- Review of [Auto-provisioning concepts](concepts-auto-provisioning.md).
23
+
- Completion of [Set up IoT Hub Device Provisioning Service with the Azure portal](./quick-setup-auto-provision.md).
24
+
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
25
+
-[Java SE Development Kit 8](https://aka.ms/azure-jdks).
26
+
-[Maven](https://maven.apache.org/install.html).
27
+
-[Git](https://git-scm.com/download/).
26
28
27
29
## Prepare the environment
28
30
@@ -59,6 +61,12 @@ In this section you, will use a self-signed X.509 certificate, it is important t
59
61
60
62
You will use sample code from the [Azure IoT SDK for Java](https://github.com/Azure/azure-iot-sdk-java.git) to create the certificate to be used with the individual enrollment entry for the simulated device.
61
63
64
+
The Azure IoT Device Provisioning Service supports two types of enrollments:
65
+
66
+
- [Enrollment groups](concepts-service.md#enrollment-group): Used to enroll multiple related devices.
67
+
- [Individual enrollments](concepts-service.md#individual-enrollment): Used to enroll a single device.
68
+
69
+
This article demonstrates individual enrollments.
62
70
63
71
1. Using the command prompt from previous steps, navigate to the `target` folder, then execute the .jar file created in the previous step.
These steps show how to create an enrollment entry in the Device Provisioning Service, simulate an X.509 device on your development machine, connect the simulateddevice with the Device Provisioning Service, and register the device on your IoT hub using the [Azure IoT Hub Node.js Device SDK](https://github.com/Azure/azure-iot-sdk-node).
If you're unfamiliar with the process of autoprovisioning, be sure to also review [Auto-provisioning concepts](concepts-auto-provisioning.md). Also make sure you've completed the steps in [Set up IoT Hub Device Provisioning Service with the Azure portal](./quick-setup-auto-provision.md) before continuing.
18
+
In this quickstart, you create a simulated X.509 device on a Windows computer. You use device sample Node.js code to connect this simulated device with your IoT hub using an individual enrollment with the Device Provisioning Service (DPS).
20
19
21
-
The Azure IoT Device Provisioning Service supports two types of enrollments:
22
-
-[Enrollment groups](concepts-service.md#enrollment-group): Used to enroll multiple related devices.
23
-
-[Individual Enrollments](concepts-service.md#individual-enrollment): Used to enroll a single device.
20
+
## Prerequisites
24
21
25
-
This article will demonstrate individual enrollments.
22
+
- Review of [Auto-provisioning concepts](concepts-auto-provisioning.md).
23
+
- Completion of [Set up IoT Hub Device Provisioning Service with the Azure portal](./quick-setup-auto-provision.md).
24
+
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
25
+
-[Node.js v4.0+](https://nodejs.org).
26
+
-[Git](https://git-scm.com/download/).
27
+
-[OpenSSL](https://www.openssl.org/).
26
28
27
29
[!INCLUDE [IoT Device Provisioning Service basic](../../includes/iot-dps-basic.md)]
28
30
@@ -49,6 +51,12 @@ In this section you, will use a self-signed X.509 certificate, it is important t
49
51
50
52
You will use sample code from the [Azure IoT SDK for Node.js](https://github.com/Azure/azure-iot-sdk-node.git) to create the certificate to be used with the individual enrollment entry for the simulated device.
51
53
54
+
The Azure IoT Device Provisioning Service supports two types of enrollments:
55
+
56
+
-[Enrollment groups](concepts-service.md#enrollment-group): Used to enroll multiple related devices.
57
+
-[Individual enrollments](concepts-service.md#individual-enrollment): Used to enroll a single device.
58
+
59
+
This article demonstrates individual enrollments.
52
60
53
61
1. Open a command prompt. Clone the GitHub repo for the code samples:
0 commit comments