Azure VM provision fails with error 'The Admin password specified is not allowed'


When attempting to provision a Virtual Machine from Azure, provisioning fails with an error similar to following example:

Failed to execute API - Failed with status code and message: 400: { "error": { "code": "InvalidParameter", "target": "adminPassword", "message": "The Admin password specified is not allowed." } } (script_include:CloudRESTAPIInvoker; line 101)


Check the credential used in your image template of your OS Profile:

Azure VM password requirements at this writing are:

Passwords must be 12 - 123 characters in length and meet three out of the following four complexity requirements:

  • Lowercase characters
  • Uppercase characters
  • Digit
  • Special character (Regex match [\W_])

For More Information

See the Microsoft Azure documentation topic Frequently asked questions about Windows Virtual Machines.

Article Information

Last Updated:2017-12-20 23:10:25
Screen Shot 2017-12-21 at 4.19.37 PM.pngScreen Shot 2017-12-21 at 4.21.28 PM.png