Inconsistent password policy when updating VM password

There are at least two ways to update your virtual machine’s password. One is using Azure Portal and the other one is going through your virtual machine and run PowerShell or Azure CLI to update.

The only thing that you might get surprised is inconsistent password policy between Azure Portal and inside your Azure CLI.

If you reset your password policy in Azure Portal, your password must meet password complexity policy. The easy-to-guest one like “123456” is NOT allowed.

However, if you go to your virtual machine, for example my RHEL and perform an Azure CLI to reset/update the password, the password complexity policy seems to have gone somewhere else

The RUNNING output takes pretty long but the password change is in fact effective. You can just disconnect your session and reconnect with the newly updated password.

Happy Azure Password Policy!

Comments

  1. Khiem Rau
    May 31, 2018 — 12:29 am

    Good finding!

    • Thuan Soldier
      June 2, 2018 — 9:04 am

      Thank you. Glad it is helpful to you!

Leave a Reply

© 2018 The Soldier of Fortune.