Skip to content

Commit 6561a73

Browse files
Merge pull request #250837 from OWinfreyATL/owinfreyATL-PrepareAccountsUpdates
Prepare tutorial accounts PowerShell
2 parents 50a93ed + 926b537 commit 6561a73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/active-directory/governance/tutorial-prepare-user-accounts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ $Department = "Sales"
146146
$UPN_manager = "bsimon@<your tenant name here>"
147147

148148
Install-Module -Name AzureAD
149-
Connect-AzureAD -Confirm
149+
Connect-MgGraph -Confirm
150150

151151
$PasswordProfile = New-Object -TypeName Microsoft.Open.AzureAD.Model.PasswordProfile
152152
$PasswordProfile.Password = "<Password>"
153-
New-AzureADUser -DisplayName $Displayname_manager -PasswordProfile $PasswordProfile -UserPrincipalName $UPN_manager -AccountEnabled $true -MailNickName $Name_manager -Department $Department
154-
New-AzureADUser -DisplayName $Displayname_employee -PasswordProfile $PasswordProfile -UserPrincipalName $UPN_employee -AccountEnabled $true -MailNickName $Name_employee -Department $Department
153+
New-MgUser -DisplayName $Displayname_manager -PasswordProfile $PasswordProfile -UserPrincipalName $UPN_manager -AccountEnabled $true -MailNickName $Name_manager -Department $Department
154+
New-MgUser -DisplayName $Displayname_employee -PasswordProfile $PasswordProfile -UserPrincipalName $UPN_employee -AccountEnabled $true -MailNickName $Name_employee -Department $Department
155155
```
156156

157157
Once your user(s) has been successfully created in Microsoft Entra ID, you may proceed to follow the Lifecycle workflow tutorials for your workflow creation.

0 commit comments

Comments
 (0)