Skip to content

Commit 977228a

Browse files
committed
Clarify parameter names
1 parent ea32c24 commit 977228a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/iot-dps/tutorial-automation-github-actions.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,18 @@ Rather than providing your personal access credentials, we'll create a service p
6161

6262
1. Copy the following items from the output of the service principal creation command to use in the next section:
6363

64-
* The generated password for the service principal. You won't be able to access the password again.
65-
* The *clientId* for the service principal.
66-
* The *objectId* for the service principal.
64+
* The *clientId*.
65+
* The *clientSecret*. This is a generated password for the service principal that you won't be able to access again.
66+
* The *tenantId*.
6767

68-
1. Use the [az role assignment create](/cli/azure/role/assignment#az-role-assignment-create) command to assign two more access roles to the service principal: *Device Provisioning Service Data Contributor* and *IoT Hub Data Contributor*. Replace `<SP_OBJECT_ID>` with the *objectId* value that you copied from the previous command's output.
68+
1. Use the [az role assignment create](/cli/azure/role/assignment#az-role-assignment-create) command to assign two more access roles to the service principal: *Device Provisioning Service Data Contributor* and *IoT Hub Data Contributor*. Replace `<SP_CLIENT_ID>` with the *clientId* value that you copied from the previous command's output.
6969

7070
```azurecli
71-
az role assignment create --assignee "<SP_OBJECT_ID>" --role "Device Provisioning Service Data Contributor" --resource-group "<RESOURCE_GROUP_NAME>"
71+
az role assignment create --assignee "<SP_CLIENT_ID>" --role "Device Provisioning Service Data Contributor" --resource-group "<RESOURCE_GROUP_NAME>"
7272
```
7373

7474
```azurecli
75-
az role assignment create --assignee "<SP_OBJECT_ID>" --role "IoT Hub Data Contributor" --resource-group "<RESOURCE_GROUP_NAME>"
75+
az role assignment create --assignee "<SP_CLIENT_ID>" --role "IoT Hub Data Contributor" --resource-group "<RESOURCE_GROUP_NAME>"
7676
```
7777

7878
### Save service principal credentials as secrets
@@ -93,14 +93,14 @@ Rather than providing your personal access credentials, we'll create a service p
9393
1. Create a secret for your service principal password.
9494

9595
* **Name**: `SECRET`
96-
* **Secret**: Paste the password that you copied from the output of the service principal creation command.
96+
* **Secret**: Paste the *clientSecret* that you copied from the output of the service principal creation command.
9797

9898
1. Select **Add secret**, then select **New repository secret** to add the final secret.
9999

100100
1. Create a secret for your Azure tenant.
101101

102102
* **Name**: `TENANT`
103-
* **Secret**: Provide your Azure tenant. The value of this argument can either be an .onmicrosoft.com domain or the Azure object ID for the tenant.
103+
* **Secret**: Paste the *tenantId* that you copied from the output of the service principal creation command.
104104

105105
1. Select **Add secret**.
106106

0 commit comments

Comments
 (0)