Merge pull request #663 from ppedvStefanO/master

LAB_02a Correction of Cleanup Tasks.
This commit is contained in:
staleycyn 2023-01-17 08:11:34 -08:00 committed by GitHub
commit acf2c7fd53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
```