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
Copy file name to clipboardExpand all lines: articles/iot-dps/tutorial-automation-github-actions.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,18 +61,18 @@ Rather than providing your personal access credentials, we'll create a service p
61
61
62
62
1. Copy the following items from the output of the service principal creation command to use in the next section:
63
63
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*.
67
67
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.
69
69
70
70
```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>"
72
72
```
73
73
74
74
```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>"
76
76
```
77
77
78
78
### Save service principal credentials as secrets
@@ -93,14 +93,14 @@ Rather than providing your personal access credentials, we'll create a service p
93
93
1. Create a secret for your service principal password.
94
94
95
95
***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.
97
97
98
98
1. Select **Add secret**, then select **New repository secret** to add the final secret.
99
99
100
100
1. Create a secret for your Azure tenant.
101
101
102
102
***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.
0 commit comments