Skip to content

Commit b0870b6

Browse files
author
Mark Dalton Gray
committed
add scope to the assignment command
1 parent 594943c commit b0870b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/operator-nexus/howto-set-up-defender-for-cloud-security.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ az role assignment create \
128128
--role "Security Reader" \
129129
--subscription "$SUBSCRIPTION_ID" \
130130
--assignee-object-id "$OBJECT_ID" \
131-
--assignee-principal-type ServicePrincipal
131+
--assignee-principal-type ServicePrincipal \
132+
--scope "/subscriptions/$SUBSCRIPTION_ID"
132133

133134
echo "Done. Security Reader role assignment created"
134135
```

0 commit comments

Comments
 (0)