How To Create New Azure Active Directory User Using PowerShell

PowerShell’s AzureAD Module provides access to the New-AzureADUser cmdlet for Azure Active Directory user creation.

The demonstration begins by generating the list of users currently in Azure Active Directory, using Get-AzureADuser. Generating the user list establishes a baseline for later comparison, but more importantly allows you to verify your connect to Azure Active Directory.

User creation begins with the creation of a PasswordProfile for the new user. We then review the required parameters to create a new user, and assemble those parameters using splatting. These pieces are assembled to all the creation of a user with the New-AzureADUser cmdlet. Finally, we verify creation of our sample user with the Get-AzureADUser cmdlet.

Prerequisites include: PowerShell AzureAD Module Azure AD Subscription