Skip to content

Commit 4389ff1

Browse files
Merge pull request #213961 from schoims/main
Update Parameter in iot-dps
2 parents 79a4d29 + 80d1bf5 commit 4389ff1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

articles/iot-dps/quick-create-simulated-device-symm-key.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -375,10 +375,9 @@ To update and run the provisioning sample with your device information:
375375
376376
| Parameter | Required | Description |
377377
| :-------------------------------- | :------- | :-------------- |
378-
| `--s` or `--IdScope` | True | The ID Scope of the DPS instance |
379-
| `--i` or `--Id` | True | The registration ID when using individual enrollment, or the desired device ID when using group enrollment. The registration ID is a case-insensitive string (up to 128 characters long) of alphanumeric characters plus the special characters: `'-'`, `'.'`, `'_'`, `':'`. The last character must be alphanumeric or dash (`'-'`). The device ID must comply with the [Device ID string requirements](../iot-hub/iot-hub-devguide-identity-registry.md#device-identity-properties). |
380-
| `--p` or `--PrimaryKey` | True | The primary key of the individual or group enrollment. |
381-
| `--e` or `--EnrollmentType` | False | The type of enrollment: `Individual` or `Group`. Defaults to `Individual` |
378+
| `--i` or `--IdScope` | True | The ID Scope of the DPS instance |
379+
| `--r` or `--RegistrationId` | True | The registration ID is a case-insensitive string (up to 128 characters long) of alphanumeric characters plus the special characters: `'-'`, `'.'`, `'_'`, `':'`. The last character must be alphanumeric or dash (`'-'`). |
380+
| `--p` or `--PrimaryKey` | True | The primary key of the individual enrollment or the derived device key of the group enrollment. See the [ComputeDerivedSymmetricKeySample](https://github.com/Azure/azure-iot-sdk-csharp/tree/main/provisioning/device/samples/Getting%20Started/ComputeDerivedSymmetricKeySample) for how to generate the derived key. |
382381
| `--g` or `--GlobalDeviceEndpoint` | False | The global endpoint for devices to connect to. Defaults to `global.azure-devices-provisioning.net` |
383382
| `--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`.|
384383
@@ -391,13 +390,13 @@ To update and run the provisioning sample with your device information:
391390
* Replace `<primarykey>` with the **Primary Key** that you copied from the device enrollment.
392391
393392
```cmd
394-
dotnet run --s <id-scope> --i <registration-id> --p <primarykey>
393+
dotnet run --i <id-scope> --r <registration-id> --p <primarykey>
395394
```
396395
397396
7. You should now see something similar to the following output. A "TestMessage" string is sent to the hub as a test message.
398397
399398
```output
400-
D:\azure-iot-sdk-csharp\provisioning\device\samples\How To\SymmetricKeySample>dotnet run --s 0ne00000A0A --i symm-key-csharp-device-01 --p sbDDeEzRuEuGKag+kQKV+T1QGakRtHpsERLP0yPjwR93TrpEgEh/Y07CXstfha6dhIPWvdD1nRxK5T0KGKA+nQ==
399+
D:\azure-iot-sdk-csharp\provisioning\device\samples\How To\SymmetricKeySample>dotnet run --i 0ne00000A0A --r symm-key-csharp-device-01 --p sbDDeEzRuEuGKag+kQKV+T1QGakRtHpsERLP0yPjwR93TrpEgEh/Y07CXstfha6dhIPWvdD1nRxK5T0KGKA+nQ==
401400
402401
Initializing the device provisioning client...
403402
Initialized for registration Id symm-key-csharp-device-01.

0 commit comments

Comments
 (0)