LAB_02a Correction of Cleanup Tasks.

This commit is contained in:
Stefan Ober 2023-01-17 10:42:56 +01:00
parent b8fc5117c0
commit b581194feb

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