Entra ID can be seen as the cloud directory for Microsoft cloud services such as Microsoft Azure, Microsoft 365. It also handles identity management. Here I'll show how to create user accounts with PowerShell and from the Microsoft Entra admin center web interface.
Open a web browser and enter https://entra.microsoft.com in the address bar.
PS C:\> Install-Module Microsoft.Graph -Scope CurrentUser
PS C:\> PowerShell.exe -ExecutionPolicy RemoteSigned
PS C:\> Import-Module Microsoft.Graph.Authentication
PS C:\> Update-Module Microsoft.Graph
PS C:\> Connect-MgGraph
PS C:\> $PWProfile = @{
Password = "A1TimePass!";
ForceChangePasswordNextSignIn = $true
}
PS C:\> New-MgUser `
-DisplayName "Eric Cartman" `
-GivenName "Eric" -Surname "Cartman" `
-MailNickname "e.cartman" `
-UsageLocation "US" `
-UserPrincipalName "e.cartman@std.rocks" `
-PasswordProfile $PWProfile -AccountEnabled `
-Department "fourth grade" -JobTitle "fatass" -CompanyName "Schoooool"
Contact :