Skip to main content

PasswordTooLong: The supplied password is too long

Azure rejected the password value it received. The actual password might be too long, or the deployment might be passing a converted representation instead of the value the parameter expects.

What to check​

  1. Check the resource's password length limits without printing or logging the password.
  2. Verify how your deployment supplies the value. Keep the template parameter typed as secureString where applicable, but don't serialise a secure string object as the password value. Use your existing secret storage and injection mechanism.

Official reference​