An Azure service designed to help simplify, guide, and automate database migrations to Azure.
Hi @Julia
Based on the behavior you're seeing, the upgrade precheck is likely detecting at least one login role that still has an MD5 password hash. For PostgreSQL 11 major version upgrades, Azure Database for PostgreSQL Flexible Server requires SCRAM authentication to be enabled and login-role passwords to be reset before the upgrade can proceed.
Since the replication role returns:
permission denied to alter restricted role 'replication'
it appears that the role is being treated as a restricted/service-managed role. In that case, there is no documented SQL, Azure CLI, or REST API method available to customers to modify, drop, or reset the password for that role.
As a first step, I'd recommend verifying whether any other login roles still have MD5 password hashes. If the replication role is the only remaining role identified, this would suggest a service-side upgrade blocker rather than a customer-configurable issue.
At that point, the best course of action would be to open an Azure Support request and provide the full Major Version Upgrade precheck output. The support team can confirm whether the role is a migration artifact and, if necessary, engage the PostgreSQL engineering team for backend remediation.
Relevant documentation:
- Major Version Upgrade considerations and SCRAM requirement: https://learn.microsoft.com/azure/postgresql/flexible-server/concepts-major-version-upgrade
- Access control and restricted role management: https://learn.microsoft.com/azure/postgresql/flexible-server/security-access-control
- Major Version Upgrade logs: https://learn.microsoft.com/azure/postgresql/flexible-server/concepts-major-version-upgrade#major-version-upgrade-logs
If possible, could you also share the complete precheck log output and confirm whether the replication role is the only role still reported with an MD5 password?