How to set user's password expiry in Azure Active Directory

Martin Brown 11 Reputation points
2021-01-17T13:51:55.307+00:00

I'm trying to deploy a database using Azure DevOps SqlAzureDacpacDeployment@1 task. It is failing because the user account it is trying to use has an expired password. I set up a user account in Azure Active Directory specifically for this and I can see in the log that login attempts have been rejected due to the expired password.

I hunted all around the Azure Active Directory section of portal.azure.com, but can't seem to see anywhere to set the password expiration for this user or any way to set the expiration policy for all users. The account I'm doing this under has the global administrator role. The only docs I can see about this are referring to Office 365 admin portal or using PowerShell cmdlets.

Can anyone point me to where these setting are in the UI please?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,324 questions
{count} vote

2 answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 14,016 Reputation points MVP
    2021-01-17T14:38:07.347+00:00

    Hi @Martin Brown

    Thank you for posting in Q & A

    Yes, you can Set the password expiration policy for your organization

    Please don’t forget to Accept the answer and up-vote wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

  2. Cristian SPIRIDON 4,471 Reputation points
    2021-01-17T14:48:29.097+00:00

    If you want to change password expiration policy you need to go to admin.microsoft.com and then to Users\Security and Privacy.

    More info in following link:
    https://learn.microsoft.com/en-us/microsoft-365/admin/manage/set-password-expiration-policy?view=o365-worldwide

    Hope this helps.

    0 comments No comments