CmdID / az / az ad / az ad user
az ad user create
Create a user. Azure CLI reference
1 example 5 options Its page in the Azure CLI reference
Examples
Create a user
az ad user create --display-name myuser --password password --user-principal-name myuser@contoso.comIdentify--display-nameobject's display name or its prefix--passwordThe password that should be assigned to the user for authentication.--user-principal-nameThe user principal name (someuser@contoso.com).Options
--force-change-password-next-sign-inMarks this user as needing to update their password the next time they authenticate.--immutable-idThis property is used to associate an on-premises Active Directory user account to their Microsoft Entra user object.--mail-nicknamemail alias.--passwordThe password that should be assigned to the user for authentication.--user-principal-nameThe user principal name (someuser@contoso.com).