How to update postgres 11 to postgres17?

Cordellia Yokum 0 Reputation points
2025-07-24T01:48:59.5966667+00:00

I am trying to upgrade my Azure Postgres flexserver from 11 to 17 but I am seeing errors in the upgrade deployment regarding password. I have check my Authentication and it appears to be correct but I would like to make sure I have the right steps.

Thanks.

<code id='' style='white-space:pre-wrap'><div>The major version upgrade failed precheck. Upgrading with password authentication mode enabled is not allowed from source version MajorVersion11. Please enable SCRAM and reset the passwords prior to retrying the upgrade.</div></code></br> (Code: MajorVersionUpgradeFailedPrecheck)
Azure Database for PostgreSQL
{count} votes

1 answer

Sort by: Most helpful
  1. Kalyani Kondavaradala 405 Reputation points Microsoft External Staff Moderator
    2025-07-24T09:33:47.8933333+00:00

    Hello Cordellia Yokum,

    Thanks for your question on Microsoft Q&A portal!

    To upgrade your Azure PostgreSQL flexible server from version 11 to 17. The error message you mentioned indicates that upgrading with password authentication enabled isn't allowed directly from version 11.

    To address this issue, you'll need to enable SCRAM authentication and reset the passwords for your users before proceeding with the upgrade.

    Here’s a step-by-step guide to help you with the process:

    • Enable SCRAM Authentication:
      • You can set the authentication method to SCRAM in your Azure PostgreSQL settings. image
    • Reset User Passwords:
      • After enabling SCRAM, you will need to reset the passwords for all users. You can do this with the following SQL command: ALTER USER your username WITH PASSWORD 'new_secure_password';
      • Ensure that each user has their password reset.
    • Retry the Upgrade:
      • Once you've enabled SCRAM and reset the passwords, you should be able to retry the upgrade.

     Please refer these Microsoft documents for more clarity on upgrades:

    hope this helps. Let me know if you have any further questions or need additional assistance.

    Also, if these answers your query, do click the "Upvote" and click "Accept the answer" of which might be beneficial to other community members reading this thread.

    Thanks,

    Kalyani


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.