Azure DevOps Server rollback consistency using VM snapshots versus SQL backups
0 reputation · 23 Sept 2022, 19:18 UTC
0 reputation · 23 Sept 2022, 19:18 UTC
A technical challenge arises when choosing between utilizing standard SQL Server database backups and virtual machine (VM) snapshots for a multi-server deployment. While SQL backups allow for point-in-time recovery across the configuration and collection databases, VM snapshots capture the application-tier state and file system simultaneously.
There is uncertainty regarding whether a snapshot-based rollback can lead to inconsistencies between the application-tier metadata and the SQL database state if the databases are hosted on a separate SQL instance.
The primary risk of using VM snapshots in a multi‑server deployment is state drift. A VM snapshot captures the application tier (IIS configuration, file system, and registry), but it does not include the data stored on a separate SQL instance.
If you restore only the application‑tier VM while leaving the databases at the upgraded schema version:
Restoring a VM snapshot generally does not require manual re‑configuration of the application tier, provided the databases are also restored to the exact same point‑in‑time. The tier uses the connection strings from the restored configuration database to re‑establish connectivity automatically.
To ensure a consistent rollback, follow these scoped steps:
Diagnostic Question: Is your SQL Server hosted on the same virtual machine as the application tier, or on a remote instance?
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.