When upgrading to PostgreSQL 17, the following extensions are not supported and must be removed before upgrade. You may re-enable them only if supported on the target version: age, azure_ai, hll, pg_diskann, pgrouting.
Its documented here: https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-major-version-upgrade#extension-limitations
Please let me know if this helps and If you still have questions, please let us know what is needed in the comments so this question can be answered.