mirror of
https://github.com/MicrosoftLearning/AZ-104-MicrosoftAzureAdministrator.git
synced 2026-02-06 16:49:09 +00:00
Merge pull request #663 from ppedvStefanO/master
LAB_02a Correction of Cleanup Tasks.
This commit is contained in:
commit
acf2c7fd53
@ -185,7 +185,7 @@ In this task, you will create an Azure Active Directory user, assign the RBAC ro
|
|||||||
|
|
||||||
```powershell
|
```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
|
Remove-AzRoleAssignment -ObjectId '[object_ID]' -RoleDefinitionName 'Support Request Contributor (Custom)' -Scope $scope
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user