I completed setting up SharePoint 2019 using Azure SQL MI, as you would know MI does not accept service account and have to connect to SharePoint using a local sql account. Now the issue I'm facing is the sql account expired, and when I update the pw in sql it takes central administration down. So I need to find a way to update the password in SharePoint too. Can you guys help me?

1 Answer 1


Use following powershell to update SharePoint service account password:

Set-SPManagedAccount -identity "AzureAD\SA_ManagedAccount" -NewPassword (ConvertTo-Securestring "password-2" -AsPlainText -Force) –SetNewPassword

More information:



  • Hi Julie, The sql account is not a managed account, thus not able to change it thru the script or under managed accounts. As you know you can connect to SQL MI only thru a local sql account. The MS documentation does not mention anything about how we can change the sql account password. I wanted to change the sql account password in the SharePoint server.
    – dkorra
    Oct 5, 2020 at 15:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.