mirror of
https://github.com/MicrosoftLearning/AZ-104-MicrosoftAzureAdministrator.git
synced 2026-02-11 19:37:04 +00:00
Update 01 - Administer Identity.md
This commit is contained in:
parent
5a2da7d2ed
commit
6554b26c47
@ -68,22 +68,30 @@ Active Directory blade will be available.
|
|||||||
|
|
||||||
1. Create a new group called Developers.
|
1. Create a new group called Developers.
|
||||||
|
|
||||||
> **New-AzADGroup -DisplayName Developers -MailNickname Developers**
|
```powershell
|
||||||
|
New-AzADGroup -DisplayName Developers -MailNickname Developers
|
||||||
|
```
|
||||||
2. Retrieve the Developers group ObjectId.
|
2. Retrieve the Developers group ObjectId.
|
||||||
|
|
||||||
> **Get-AzADGroup**
|
```powershell
|
||||||
|
Get-AzADGroup
|
||||||
|
```
|
||||||
3. Retrieve the user ObjectId for the member to add.
|
3. Retrieve the user ObjectId for the member to add.
|
||||||
|
|
||||||
> **Get-AzADUser**
|
```powershell
|
||||||
|
Get-AzADUser
|
||||||
|
```
|
||||||
|
|
||||||
4. Add the user to the group. Replace groupObjectId and userObjectId.
|
4. Add the user to the group. Replace groupObjectId and userObjectId.
|
||||||
|
|
||||||
> **Add-AzADGroupMember -MemberUserPrincipalName
|
```powershell
|
||||||
> \"\"myemail@domain.com\"\" -TargetGroupDisplayName
|
Add-AzADGroupMember -MemberUserPrincipalName
|
||||||
> \"\"MyGroupDisplayName\"\"**
|
\"\"myemail@domain.com\"\" -TargetGroupDisplayName
|
||||||
|
\"\"MyGroupDisplayName\"\"
|
||||||
|
```
|
||||||
|
|
||||||
5. Verify the members of the group. Replace groupObjectId.
|
5. Verify the members of the group. Replace groupObjectId.
|
||||||
|
|
||||||
> **Get-AzADGroupMember -GroupDisplayName \"MyGroupDisplayName\"**
|
```powershell
|
||||||
|
Get-AzADGroupMember -GroupDisplayName "MyGroupDisplayName"
|
||||||
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user