Skip to content

Commit 2c41a92

Browse files
committed
New lines to powershell example
1 parent 8aeae0a commit 2c41a92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

articles/role-based-access-control/role-assignments-remove.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ PS C:\> Remove-AzRoleAssignment -SignInName [email protected] `
7878
Removes the [User Access Administrator](built-in-roles.md#user-access-administrator) role with ID 18d7d88d-d35e-4fb5-a5c3-7773c20a72d9 from the principal with ID 33333333-3333-3333-3333-333333333333 at subscription scope with ID 00000000-0000-0000-0000-000000000000.
7979

8080
```azurepowershell
81-
PS C:\> Remove-AzRoleAssignment -ObjectId 33333333-3333-3333-3333-333333333333 -Scope /subscriptions/00000000-0000-0000-0000-000000000000 -RoleDefinitionId 18d7d88d-d35e-4fb5-a5c3-7773c20a72d9
81+
PS C:\> Remove-AzRoleAssignment -ObjectId 33333333-3333-3333-3333-333333333333 `
82+
-RoleDefinitionId 18d7d88d-d35e-4fb5-a5c3-7773c20a72d9 `
83+
-Scope /subscriptions/00000000-0000-0000-0000-000000000000
8284
```
8385

8486
If you get the error message: "The provided information does not map to a role assignment", make sure that you also specify the `-Scope` or `-ResourceGroupName` parameters. For more information, see [Troubleshoot Azure RBAC](troubleshooting.md#symptom---role-assignments-with-identity-not-found).

0 commit comments

Comments
 (0)