When you use PowerShell to create VM in Azure and join the vm into the specific domain. You may end up getting the following error:
This error normanlly occurred parameters missing or wrong parameter within command
Because of the Azure stuff getting update real fast in the real world, therefore the documentation may lag as well. The following script is the one I’ve test and work recently.
Make sure that you have AdminUserName parameter even though you may not need it.