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
In this quickstart, you create a simulated device on your Windows machine. The simulated device is configured to use X.509 certificate attestation for authentication. After you configure your device, you then provision it to your IoT hub using the Azure IoT Hub Device Provisioning Service.
20
20
21
-
If you're unfamiliar with the process of provisioning, review the [provisioning](about-iot-dps.md#provisioning-process) overview. Also make sure that you complete the steps in [Set up IoT Hub Device Provisioning Service with the Azure portal](./quick-setup-auto-provision.md) before continuing.
21
+
If you're unfamiliar with the process of provisioning, review the [provisioning](about-iot-dps.md#provisioning-process) overview. Also make sure that you complete the steps in [Quickstart: Set up IoT Hub Device Provisioning Service with the Azure portal](./quick-setup-auto-provision.md) before continuing.
22
22
23
23
This quickstart demonstrates a solution for a Windows-based workstation. However, you can also perform the procedures on Linux. For a Linux example, see [Tutorial: Provision for geo latency](how-to-provision-multitenant.md).
24
24
25
25
## Prerequisites
26
26
27
27
* If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio) before you begin.
28
28
29
-
* Complete the steps in [Set up IoT Hub Device Provisioning Service with the Azure portal](./quick-setup-auto-provision.md).
29
+
* Complete the steps in [Quickstart: Set up IoT Hub Device Provisioning Service with the Azure portal](./quick-setup-auto-provision.md).
30
30
31
31
::: zone pivot="programming-language-ansi-c"
32
32
@@ -37,7 +37,7 @@ The following prerequisites are for a Windows development environment. For Linux
37
37
* Install the latest [CMake build system](https://cmake.org/download/). Make sure you check the option that adds the CMake executable to your path.
38
38
39
39
>[!IMPORTANT]
40
-
>Confirm that the Visual Studio prerequisites (Visual Studio and the 'Desktop development with C++' workload) are installed on your machine, **before** starting the `CMake` installation. Once the prerequisites are in place, and the download is verified, install the CMake build system. Also, be aware that older versions of the CMake build system fail to generate the solution file used in this article. Make sure to use the latest version of CMake.
40
+
>Confirm that the Visual Studio prerequisites (Visual Studio and the 'Desktop development with C++' workload) are installed on your machine, **before** starting the `CMake` installation. Once the prerequisites are in place, and the download is verified, install the CMake build system. Also, older versions of the CMake build system fail to generate the solution file used in this article. Make sure to use the latest version of CMake.
41
41
42
42
::: zone-end
43
43
@@ -84,7 +84,7 @@ The following prerequisites are for a Windows development environment. For Linux
84
84
* Make sure [OpenSSL](https://www.openssl.org/) is installed on your machine. On Windows, your installation of Git includes an installation of OpenSSL. You can access OpenSSL from the Git Bash prompt. To verify that OpenSSL is installed, open a Git Bash prompt and enter `openssl version`.
85
85
86
86
>[!NOTE]
87
-
> Unless you're familiar with OpenSSL and already have it installed on your Windows machine, we recommend using OpenSSL from the Git Bash prompt. Alternatively, you can choose to download the source code and build OpenSSL. To learn more, see the [OpenSSL Downloads](https://www.openssl.org/source/) page. Or, you can download OpenSSL pre-built from a third-party. To learn more, see the [OpenSSL wiki](https://wiki.openssl.org/index.php/Binaries). Microsoft makes no guarantees about the validity of packages downloaded from third-parties. If you do choose to build or download OpenSSL make sure that the OpenSSL binary is accessible in your path and that the `OPENSSL_CNF` environment variable is set to the path of your *openssl.cnf* file.
87
+
> Unless you're familiar with OpenSSL and it's already installed on your Windows machine, we recommend using OpenSSL from the Git Bash prompt. Alternatively, you can choose to download the source code and build OpenSSL. To learn more, see the [OpenSSL Downloads](https://www.openssl.org/source/) page. Or, you can download OpenSSL prebuilt from a non-Microsoft provider. To learn more, see the [OpenSSL wiki](https://wiki.openssl.org/index.php/Binaries). Microsoft makes no guarantees about the validity of packages downloaded from non-Microsoft providers. If you do choose to build or download OpenSSL make sure that the OpenSSL binary is accessible in your path and that the `OPENSSL_CNF` environment variable is set to the path of your *openssl.cnf* file.
88
88
89
89
* Open both a Windows command prompt and a Git Bash prompt.
90
90
@@ -138,7 +138,7 @@ In this section, you prepare a development environment that's used to build the
138
138
---
139
139
140
140
>[!TIP]
141
-
>If `cmake` doesn't find your C++ compiler, you may get build errors while running the above command. If that happens, try running the command in the [Visual Studio command prompt](/dotnet/framework/tools/developer-command-prompt-for-vs).
141
+
>If `cmake` doesn't find your C++ compiler, you might encounter build errors while running the previous command. If that happens, try running the command in the [Visual Studio Developer Command Prompt](/dotnet/framework/tools/developer-command-prompt-for-vs).
142
142
143
143
7. When the build succeeds, the last few output lines look similar to the following output:
144
144
@@ -159,7 +159,7 @@ In this section, you prepare a development environment that's used to build the
159
159
160
160
::: zone pivot="programming-language-csharp"
161
161
162
-
In your Windows command prompt, clone the [Azure IoT SDK for C#](https://github.com/Azure/azure-iot-sdk-csharp) GitHub repository using the following command:
162
+
In your Windows command prompt, clone the [Azure IoT SDK for .NET](https://github.com/Azure/azure-iot-sdk-csharp) GitHub repository using the following command:
In your Windows command prompt, clone the [Azure IoT SDK for Node.js](https://github.com/Azure/azure-iot-sdk-node) GitHub repository using the following command:
172
+
In your Windows command prompt, clone the [Azure IoT Node.js SDK](https://github.com/Azure/azure-iot-sdk-node) GitHub repository using the following command:
In your Windows command prompt, clone the [Azure IoT Device SDK for Python](https://github.com/Azure/azure-iot-sdk-python/tree/v2) GitHub repository using the following command:
182
+
In your Windows command prompt, clone the [Azure IoT Python SDK](https://github.com/Azure/azure-iot-sdk-python/tree/v2) GitHub repository using the following command:
1. In your Windows command prompt, clone the [Azure IoT Samples for Java](https://github.com/Azure/azure-iot-sdk-java) GitHub repository using the following command:
195
+
1. In your Windows command prompt, clone the [Azure IoT SDKs for Java](https://github.com/Azure/azure-iot-sdk-java) GitHub repository using the following command:
@@ -213,8 +213,8 @@ In this section, you use OpenSSL to create a self-signed X.509 certificate and a
213
213
214
214
> [!CAUTION]
215
215
> Use certificates created with OpenSSL in this quickstart for development testing only.
216
-
> Do not use these certificates in production.
217
-
> These certificates expire after 30 days and may contain hard-coded passwords, such as *1234*.
216
+
> Don't use these certificates in production.
217
+
> These certificates expire after 30 days and might contain hard-coded passwords, such as *1234*.
218
218
> To learn about obtaining certificates suitable for use in production, see [How to get an X.509 CA certificate](../iot-hub/iot-hub-x509ca-overview.md#get-an-x509-ca-certificate) in the Azure IoT Hub documentation.
219
219
>
220
220
@@ -461,7 +461,7 @@ In this section, you use your Git Bash prompt and the Visual Studio IDE.
461
461
462
462
In this section, you update the sample code with your Device Provisioning Service instance information.
463
463
464
-
1. In the Azure portal, select the **Overview** tab for your Device Provisioning Service.
464
+
1. In the Azure portal, select the **Overview** tab from the resource menu for your Device Provisioning Service instance.
465
465
466
466
1. Copy the **ID Scope** value.
467
467
@@ -575,7 +575,7 @@ To update the custom HSM stub code to simulate the identity of the device with I
575
575
576
576
In this section, you use your Windows command prompt.
577
577
578
-
1. In the Azure portal, selectthe**Overview** tab for your Device Provisioning Service.
578
+
1. In the Azure portal, selectthe**Overview** tab from the resource menu for your Device Provisioning Service instance.
579
579
580
580
2. Copy the **ID Scope** value.
581
581
@@ -592,7 +592,7 @@ In this section, you use your Windows command prompt.
592
592
If you want to pass the certificate and password as a parameter, you can use the following format.
593
593
594
594
>[!NOTE]
595
-
>Additional parameters can be passed along while running the application to change the TransportType (-t) and the GlobalDeviceEndpoint (-g).
595
+
>Extra parameters can be passed along while running the application to change the TransportType (-t) and the GlobalDeviceEndpoint (-g).
596
596
597
597
```cmd
598
598
dotnet run -- -s 0ne00000A0A -c certificate.pfx -p 1234
@@ -623,7 +623,7 @@ In this section, you use your Windows command prompt.
623
623
624
624
In this section, you use your Windows command prompt.
625
625
626
-
1. In the Azure portal, selectthe**Overview** tab for your Device Provisioning Service.
626
+
1. In the Azure portal, selectthe**Overview** tab from the resource menu for your Device Provisioning Service instance.
627
627
628
628
1. Copy the **ID Scope** value.
629
629
@@ -688,7 +688,7 @@ In this section, you use your Windows command prompt.
688
688
689
689
In this section, you use your Windows command prompt.
690
690
691
-
1. In the Azure portal, selectthe**Overview** tab for your Device Provisioning Service.
691
+
1. In the Azure portal, selectthe**Overview** tab from the resource menu for your Device Provisioning Service instance.
692
692
693
693
1. Copy the **ID Scope** and **Global device endpoint** values.
694
694
@@ -711,7 +711,7 @@ In this section, you use your Windows command prompt.
711
711
|`X509_KEY_FILE`| The path to your device certificate private key file. |
712
712
|`PASS_PHRASE`| The pass phrase you used to encrypt the certificate and private key file (`1234`). |
713
713
714
-
1. Add the environment variables for the global device endpoint and ID Scope.
714
+
1. Add the environment variables for the global device endpoint and ID scope.
715
715
716
716
```cmd
717
717
set PROVISIONING_HOST=global.azure-devices-provisioning.net
@@ -773,7 +773,7 @@ In this section, you use your Windows command prompt.
773
773
774
774
In this section, you use both your Windows command prompt and your Git Bash prompt.
775
775
776
-
1. In the Azure portal, select the **Overview** tab for your Device Provisioning Service.
776
+
1. In the Azure portal, select the **Overview** tab from the resource menu for your Device Provisioning Service instance.
777
777
778
778
1. Copy the **ID Scope** and **Global device endpoint** values.
779
779
@@ -785,7 +785,7 @@ In this section, you use both your Windows command prompt and your Git Bash prom
785
785
cd .\azure-iot-sdk-java\provisioning\provisioning-device-client-samples\provisioning-X509-sample
786
786
```
787
787
788
-
1. Enter the provisioning service and X.509 identity information in the sample code. This information is used during provisioning, for attestation of the simulated device, prior to device registration.
788
+
1. Enter the provisioning service and X.509 identity information in the sample code. This information is used during provisioning, for attestation of the simulated device, before device registration.
789
789
790
790
1. Open the file `.\src\main\java\samples\com\microsoft\azure\sdk\iot\ProvisioningX509Sample.java` in your favorite editor.
791
791
@@ -899,9 +899,9 @@ In this section, you use both your Windows command prompt and your Git Bash prom
899
899
900
900
To see which IoT hub your device was provisioned to, examine the registration details of the individual enrollment you created previously:
901
901
902
-
1. In Azure portal, go to your Device Provisioning Service.
902
+
1. In Azure portal, navigate to your Device Provisioning Service instance.
903
903
904
-
1. In the **Settings** menu, select **Manage enrollments**.
904
+
1. In the resource menu, under **Settings**, select **Manage enrollments**.
905
905
906
906
1. Select **Individual Enrollments**. The X.509 enrollment entry that you created previously, *my-x509-device*, should appear in the list.
907
907
@@ -911,7 +911,7 @@ To verify the device in your IoT hub:
911
911
912
912
1. In Azure portal, go to the IoT hub that your device was assigned to.
913
913
914
-
1. In the **Device management** menu, select **Devices**.
914
+
1. In the resource menu, under **Device management**, select **Devices**.
915
915
916
916
1. If your device was provisioned successfully, its device ID, *my-x509-device*, should appear in the list, with **Status** set as *enabled*. If you don't see your device, select**Refresh**.
917
917
@@ -934,9 +934,9 @@ If you plan to continue working on and exploring the device client sample, don't
934
934
935
935
2. From the left-hand menu in the Azure portal, select**All resources**.
936
936
937
-
3. Select your Device Provisioning Service.
937
+
3. Select your Device Provisioning Service instance.
938
938
939
-
4. In the **Settings** menu, select**Manage enrollments**.
939
+
4. In the resource menu, under **Settings**, select**Manage enrollments**.
940
940
941
941
5. Select the **Individual enrollments** tab.
942
942
@@ -950,7 +950,7 @@ If you plan to continue working on and exploring the device client sample, don't
950
950
951
951
2. Select your IoT hub.
952
952
953
-
3. In the **Device management** menu, select**Devices**.
953
+
3. In the resource menu, under **Device management**, select**Devices**.
954
954
955
955
4. Select the check box next to the device ID of the device you registered in this quickstart.
956
956
@@ -961,4 +961,4 @@ If you plan to continue working on and exploring the device client sample, don't
961
961
In this quickstart, you provisioned a single device to your IoT hub using an individual enrollment. Next, learn how to provision multiple devices across multiple hubs.
962
962
963
963
> [!div class="nextstepaction"]
964
-
> [Tutorial: Manage IoT hub assignment with custom allocation policies](tutorial-custom-allocation-policies.md)
964
+
> [Tutorial: Use custom allocation policies with Device Provisioning Service (DPS)](tutorial-custom-allocation-policies.md)
0 commit comments