Creating Users

Tags
Azure Active Directory
Created Time
Jun 26, 2022 12:58 AM

Objective

Create and configure Azure AD Users

Process

Portal

username
buitest1
Name
Bui Test1
Initial Password
Passw0rd
block signin
yes
Click on + New User
notion image
Fill in user information

Azure CLI

az ad user create --display-name --password --user-principal-name [--force-change-password-next-sign-in {false, true}] [--immutable-id] [--mail-nickname]
username
buicli
Name
Bui TestCLI
Initial Password
Passw0rd
az ad user create --display-name buicli --password Passw0rd --user-principal-name buicli@builab.ca
Currently can not add first and last name

PowerShell

username
buiPS
Name
Bui TestPS
Initial Password
Passw0rd
Block Signin
Yes
Connect-AzureAD
Run before running other cmdlets
$PasswordProfile = New-Object -TypeName Microsoft.Open.AzureAD.Model.PasswordProfile $PasswordProfile.Password = "Passw0rd" New-AzureADUser -DisplayName "buiPS" -PasswordProfile $PasswordProfile -UserPrincipalName "buiPS@builab.ca" -AccountEnabled $False -MailNickName "buiPS"
notion image

Conclusion

Created a user manually, with azure CLI, and with PowerShell
Ā 
Ā 
Ā