title: How do I know the password requirements of the VM running my Azure role?
body: <p>I tried to switch my Azure service from Windows Server 2008 to Windows Server 2008 R2. Now the code that creates a local user fails with</p>
  
  <blockquote>
    <p>System.DirectoryServices.AccountManagement.PasswordException
    The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements.</p>
  </blockquote>
  
  <p>Clearly R2 doesn't like the password I assign to the local user.</p>
  
  <p>How do I know what password complexity requirement exactly is violated?</p>