Azure DevOps Server application tier and SQL Server collection database upgrade interoperability
0 reputation · 03 Nov 2021, 19:02 UTC
0 reputation · 03 Nov 2021, 19:02 UTC
Determine whether Azure DevOps Server remains supported when an in-place upgrade finishes for some collection databases but fails for others while the application tier binaries are already at the new version.
Azure DevOps Server upgrades modify the configuration database and each collection database in place. Microsoft documents no supported downgrade or rollback script after a failed upgrade, and the standard recovery path restores the configuration database and all collection databases together from pre-upgrade backups. It is unclear whether a mixed schema state across collections is unsupported by design or simply untested. Behavior may differ between Azure DevOps Server 2019, 2020, and 2022, so the version boundary needs clarification.
37775 reputation · 03 Nov 2021, 22:28 UTC
The upgrade wizard treats the configuration database and all collection databases as one atomic upgrade unit. After the application tier binaries are at the new build, the tier validates schema compatibility at startup. A collection whose schema version does not match the expected version for that build is marked offline and reports schema mismatch errors. There is no supported configuration flag, compatibility mode, downgrade script, rollback script, or per-collection resume path.
Assumption: this covers in-place upgrades on the same server and build. Uncertainty: Microsoft does not publish a granular mixed-schema support matrix; treat the state as unsupported by design, not merely untested. Verify against the official upgrade and rollback documentation for your exact version before acting.
Do not manually run collection upgrade scripts from the Tools directory against individual databases after a partial failure. That can desynchronize the configuration database and create an unrecoverable state.
Do you have pre-upgrade backups of both the configuration database and every collection database, taken at the same point in time? If any database is missing or the backups are from different times, self-service restore to a consistent state is not possible; engage Microsoft Support.
Compare the application tier build number from Help > About Azure DevOps Server with the SchemaVersion column in tbl_Database for the configuration database and each collection database. Review the upgrade wizard log in the Server Logs Upgrade folder under ProgramData and the JobAgent log for schema mismatch errors. A read-only check per collection database is:
SELECT Name, SchemaVersion FROM tbl_Database;Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.