mirror of
https://github.com/MicrosoftLearning/AZ-104-MicrosoftAzureAdministrator.git
synced 2026-02-05 16:19:08 +00:00
LAB_02a Correction of Cleanup Tasks.
This commit is contained in:
parent
b8fc5117c0
commit
b581194feb
@ -185,7 +185,7 @@ In this task, you will create an Azure Active Directory user, assign the RBAC ro
|
||||
|
||||
```powershell
|
||||
|
||||
$scope = (Get-AzRoleDefinition -Name 'Support Request Contributor (Custom)').AssignableScopes | Where-Object {$_ -like 'managementgroup'}
|
||||
$scope = (Get-AzRoleDefinition -Name 'Support Request Contributor (Custom)').AssignableScopes | Where-Object {$_ -like '*managementgroup*'}
|
||||
|
||||
Remove-AzRoleAssignment -ObjectId '[object_ID]' -RoleDefinitionName 'Support Request Contributor (Custom)' -Scope $scope
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user