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
# Quickstart: Provision a simulated symmetric key device
18
18
19
-
In this quickstart, you create a simulated device on your Windows machine. The simulated device is configured to use the [symmetric key attestation](concepts-symmetric-key-attestation.md) mechanism for authentication. After you've configured your device, you then provision it to your IoT hub using the Azure IoT Hub Device Provisioning Service.
19
+
In this quickstart, you create a simulated device on your Windows machine. The simulated device is configured to use the [symmetric key attestation](concepts-symmetric-key-attestation.md) mechanism 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
21
If you're unfamiliar with the process of provisioning, review the [provisioning](about-iot-dps.md#provisioning-process) overview.
22
22
@@ -109,7 +109,7 @@ In this section, you prepare a development environment that's used to build the
109
109
```
110
110
111
111
>[!TIP]
112
-
>If `cmake` does not 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).
112
+
>If `cmake` does not find your C++ compiler, you may get build errors while running the previous command. If that happens, try running the command in the [Visual Studio command prompt](/dotnet/framework/tools/developer-command-prompt-for-vs).
113
113
114
114
8. When the build completes successfully, the last few output lines look similar to the following output:
115
115
@@ -312,7 +312,7 @@ The sample provisioning code accomplishes the following tasks:
312
312
313
313
2. Assigns the device to the IoT hub already linked to your Device Provisioning Service instance.
314
314
315
-
3. Sends a test telemetry message to the IoT hub.
315
+
3. Sends a test message to the IoT hub.
316
316
317
317
To update and run the provisioning sample with your device information:
318
318
@@ -338,7 +338,7 @@ To update and run the provisioning sample with your device information:
338
338
| `--g` or `--GlobalDeviceEndpoint` | False | The global endpoint for devices to connect to. Defaults to `global.azure-devices-provisioning.net` |
339
339
| `--t` or `--TransportType` | False | The transport to use to communicate with the device provisioning instance. Defaults to `Mqtt`. Possible values include `Mqtt`, `Mqtt_WebSocket_Only`, `Mqtt_Tcp_Only`, `Amqp`, `Amqp_WebSocket_Only`, `Amqp_Tcp_only`, and `Http1`.|
340
340
341
-
5. In the *SymmetricKeySample* folder, open *ProvisioningDeviceClientSample.cs* in a text editor. This file shows how the [SecurityProviderSymmetricKey](/dotnet/api/microsoft.azure.devices.shared.securityprovidersymmetrickey?view=azure-dotnet&preserve-view=true) class is used along with the [ProvisioningDeviceClient](/dotnet/api/microsoft.azure.devices.provisioning.client.provisioningdeviceclient?view=azure-dotnet&preserve-view=true) class to provision your simulated symmetric key device. Review the code in this file. No changes are needed.
341
+
5. In the *SymmetricKeySample* folder, open *ProvisioningDeviceClientSample.cs* in a text editor. This file shows how the [SecurityProviderSymmetricKey](/dotnet/api/microsoft.azure.devices.shared.securityprovidersymmetrickey?view=azure-dotnet&preserve-view=true) class is used along with the [ProvisioningDeviceClient](/dotnet/api/microsoft.azure.devices.provisioning.client.provisioningdeviceclient?view=azure-dotnet&preserve-view=true) class to provision your simulated symmetric key device. Review the code in this file. No changes are needed.
342
342
343
343
6. Build and run the sample code using the following command:
344
344
@@ -381,7 +381,7 @@ The sample provisioning code accomplishes the following tasks, in order:
381
381
382
382
2. Assigns the device to the IoT hub already linked to your Device Provisioning Service instance.
383
383
384
-
3. Sends a test telemetry message to the IoT hub.
384
+
3. Sends a test message to the IoT hub.
385
385
386
386
To update and run the provisioning sample with your device information:
387
387
@@ -403,9 +403,9 @@ To update and run the provisioning sample with your device information:
You may comment out this code, as it's not needed with for this quickstart. A custom payload would be required you wanted to use a custom allocation function to assign your device to an IoT hub. For more information, see [Tutorial: Use custom allocation policies](tutorial-custom-allocation-policies.md).
406
+
You can comment out this payload codefor this quickstart. A custom payload would be required if you wanted to use a custom allocation function to assign your device to an IoT hub. For more information, see [Tutorial: Use custom allocation policies](tutorial-custom-allocation-policies.md).
407
407
408
-
The `provisioningClient.register()` method attempts the registration of your device.
408
+
The `provisioningClient.register()` method attempts the registration of your device.
409
409
410
410
No further changes are needed.
411
411
@@ -469,7 +469,7 @@ The sample provisioning code accomplishes the following tasks, in order:
469
469
470
470
2. Assigns the device to the IoT hub already linked to your Device Provisioning Service instance.
471
471
472
-
3. Sends a test telemetry message to the IoT hub.
472
+
3. Sends a test message to the IoT hub.
473
473
474
474
To update and run the provisioning sample with your device information:
475
475
@@ -568,7 +568,7 @@ The sample provisioning code accomplishes the following tasks, in order:
568
568
569
569
2. Assigns the device to the IoT hub already linked to your Device Provisioning Service instance.
570
570
571
-
3. Sends a test telemetry message to the IoT hub.
571
+
3. Sends a test message to the IoT hub.
572
572
573
573
To update and run the provisioning sample with your device information:
::: zone pivot="programming-language-csharp, programming-language-ansi-c, programming-language-nodejs, programming-language-java"
19
-
In this quickstart, you'll create a simulated device on your Windows machine. The simulated device will be configured to use a [Trusted Platform Module (TPM) attestation](concepts-tpm-attestation.md) mechanism for authentication. After you've configured your device, you'll provision it to your IoT hub using the Azure IoT Hub Device Provisioning Service. Sample code will then be used to help enroll the device with a Device Provisioning Service instance.
19
+
In this quickstart, you'll create a simulated device on your Windows machine. The simulated device will be configured to use a [Trusted Platform Module (TPM) attestation](concepts-tpm-attestation.md) mechanism for authentication. After you configure your device, you'll provision it to your IoT hub using the Azure IoT Hub Device Provisioning Service. Sample code will then be used to help enroll the device with a Device Provisioning Service instance.
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 you've completed 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 [Set up IoT Hub Device Provisioning Service with the Azure portal](./quick-setup-auto-provision.md) before continuing.
22
22
23
23
The Azure IoT Device Provisioning Service supports two types of enrollments:
24
24
@@ -377,7 +377,7 @@ In this section, you'll build and execute a sample that reads the endorsement ke
5. When the program begins running, it will display the *_Endorsement key_* and *_Registration ID_*. Copy these values for the next section. Make sure to leave the program running.
380
+
5. When the program begins running, it will display the *_Endorsement key_* and *_Registration ID_*. Copy these values for the next section. Make sure to leave the program running.
381
381
382
382
::: zone-end
383
383
@@ -640,34 +640,9 @@ In this section, you'll configure sample code to use the [Advanced Message Queui
640
640
641
641
4. In the **Device management** section, select**Devices**.
642
642
643
-
:::zone-end
644
-
:::zone pivot="programming-language-ansi-c"
645
643
5. If your device was provisioned successfully, the device ID should appear in the list, with **Status**set as *enabled*. If you don't see your device, select **Refresh** at the top of the page.
646
644
647
-

648
-
649
-
:::zone-end
650
-
651
-
:::zone pivot="programming-language-csharp"
652
-
5. If your device was provisioned successfully, the device ID should appear in the list, with **Status** set as *enabled*. If you don't see your device, select**Refresh** at the top of the page.
653
-
654
-

655
-
656
-
::: zone-end
657
-
658
-
::: zone pivot="programming-language-nodejs"
659
-
5. If your device was provisioned successfully, the device ID should appear in the list, with **Status**set as *enabled*. If you don't see your device, select **Refresh** at the top of the page.
660
-
661
-

662
-
663
-
::: zone-end
664
-
665
-
::: zone pivot="programming-language-java"
666
-
5. If your device was provisioned successfully, the device ID should appear in the list, with **Status** set as *enabled*. If you don't see your device, select**Refresh** at the top of the page.
667
-
668
-

669
-
670
-
::: zone-end
645
+

671
646
672
647
> [!NOTE]
673
648
> If you changed the *initial device twin state* from the default value in the enrollment entry for your device, it can pull the desired twin state from the hub and act accordingly. For more information, see [Understand and use device twins in IoT Hub](../iot-hub/iot-hub-devguide-device-twins.md).
# Quickstart: Provision an X.509 certificate simulated device
18
18
19
-
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've configured your device, you then provision it to your IoT hub using the Azure IoT Hub Device Provisioning Service.
19
+
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 you've completed 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 [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
@@ -366,7 +366,7 @@ The C# sample code is set up to use X.509 certificates that are stored in a pass
You don't need the Git Bash prompt forthe rest of this quickstart. However, you may want to keep it open to check your certificate if you have problemsin later steps.
369
+
You don't need the Git Bash prompt forthe rest of this quickstart. However, you might want to keep it open to check your certificate if you have problemsin later steps.
370
370
371
371
::: zone-end
372
372
@@ -397,7 +397,7 @@ You don't need the Git Bash prompt for the rest of this quickstart. However, you
You don't need the Git Bash prompt forthe rest of this quickstart. However, you may want to keep it open to check your certificate if you have problemsin later steps.
400
+
You don't need the Git Bash prompt forthe rest of this quickstart. However, you might want to keep it open to check your certificate if you have problemsin later steps.
401
401
402
402
::: zone-end
403
403
@@ -410,7 +410,7 @@ You don't need the Git Bash prompt for the rest of this quickstart. However, you
You don't need the Git Bash prompt for the rest of this quickstart. However, you may want to keep it open to check your certificate if you have problems in later steps.
413
+
You don't need the Git Bash prompt for the rest of this quickstart. However, you might want to keep it open to check your certificate if you have problems in later steps.
414
414
415
415
::: zone-end
416
416
::: zone pivot="programming-language-java"
@@ -598,7 +598,7 @@ In this section, you use your Windows command prompt.
598
598
dotnet run -- -s 0ne00000A0A -c certificate.pfx -p 1234
599
599
```
600
600
601
-
5. The device connects to DPS and is assigned to an IoT hub. Then, the device sends a telemetry message to the IoT hub.
601
+
5. The device connects to DPS and is assigned to an IoT hub. Then, the device sends a message to the IoT hub.
602
602
603
603
```output
604
604
Loading the certificate...
@@ -845,7 +845,7 @@ In this section, you use both your Windows command prompt and your Git Bash prom
845
845
cd target
846
846
```
847
847
848
-
1. The build outputs .jar file in the `target` folder with the following file format: `provisioning-x509-sample-{version}-with-deps.jar`; for example: `provisioning-x509-sample-1.8.1-with-deps.jar`. Execute the .jar file. You may need to replace the version in the following command.
848
+
1. The build outputs .jar file in the `target` folder with the following file format: `provisioning-x509-sample-{version}-with-deps.jar`; for example: `provisioning-x509-sample-1.8.1-with-deps.jar`. Execute the .jar file. You might need to replace the version in the following command.
0 commit comments