Skip to content

Commit 22bcef6

Browse files
authored
Fixed command to verify service principle role
when creating the roles we are scoping to the resource group, not the subscription. The original command only got the roles for the subscription, so we would never see the roles we just created. Added the -scope parameter to the command so that we can confirm the roles are created. az role assignment list --scope subscriptions/<SubscriptionID>/resourceGroups/<resourcegroup> -o table
1 parent dee51b7 commit 22bcef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/azure-arc/data/upload-metrics-and-logs-to-azure-monitor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Example output:
160160
## Verify service principal role
161161

162162
```azurecli
163-
az role assignment list -o table
163+
az role assignment list --scope subscriptions/<SubscriptionID>/resourceGroups/<resourcegroup> -o table
164164
```
165165

166166
With the service principal assigned to the appropriate role, you can proceed to upload metrics, or user data.

0 commit comments

Comments
 (0)