Need help with poweshell command

Hello I have been spending my time learning PowerShell and right now I am trying to use powershell in azure to create a new user in Azure AD but I can get past the password profile parameter it seems like it’s required. I researched the -passwordProfile command and the Microsoft docs do not really explain it well. here is my code below:

=

Here is the error I keep getting back

Eric,
Welcome to the forum. :wave:t4:

Before we proceed … please do not post images of code or error messages. That’s not helpful at all. Instead post the plain text of the code or error messages and format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.

Thanks in advance

How to format code in PowerShell.org <---- Click :point_up_2:t4: :wink:

The error message you posted is about the property mailNickname … not about password profile

Thanks ! and sorry about that I posted that before I saw the help forum on how to post code

You can still fix it. :wink:

That error message is indicating you need the mailNickName property. Add that and see if you are more successful.