Update LAB_01-Manage_Entra_ID_Identities.md

This commit is contained in:
staleycyn 2024-02-03 06:34:21 -08:00 committed by GitHub
parent e3d541cf73
commit aa1fc183c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -183,18 +183,18 @@ In this task, you use Azure PowerShell to create a group account and add a membe
1. Azure PowerShell uses a *Verb*-*Noun* format for commands. For example, the command to create a new group account is **New-AzureADGroup**. To view how to use a command, run the Get-Help command. 1. Azure PowerShell uses a *Verb*-*Noun* format for commands. For example, the command to create a new group account is **New-AzureADGroup**. To view how to use a command, run the Get-Help command.
```powershell ```powershell
Get-Help New-AzureADGroup -detailed Get-Help New-AzureADGroup -detailed
``` ```
1. Using the example in the Help, try these commands. Notice you must first connect to Azure AD. Notice that the commands starting with a dollar sign ($) are creating variables. 1. Using the example in the Help, try these commands. Notice you must first connect to Azure AD. Notice that the commands starting with a dollar sign ($) are creating variables.
```powershell ```powershell
$displayName = "MyPSgroup" $displayName = "MyPSgroup"
$mailNickName = "MyPSgroup" $mailNickName = "MyPSgroup"
Connect-AzureAD Connect-AzureAD
New-AzureADGroup -DisplayName $displayName -MailEnabled $false -SecurityEnabled $true -MailNickName $mailNickName New-AzureADGroup -DisplayName $displayName -MailEnabled $false -SecurityEnabled $true -MailNickName $mailNickName
``` ```
1. Use **Get-AzureADGroup** to confirm your group was created. Make note of the **DisplayName**, you will need it a future step. 1. Use **Get-AzureADGroup** to confirm your group was created. Make note of the **DisplayName**, you will need it a future step.