Quick Notes172 words

Deployments including database tasks — quick notes

Database deployments — quick notes

PrincipleDetail
Core ruleSchema must be compatible with old and new app versions during rollout
Breaking change patternExpand → Migrate → Contract
ExpandAdd new column; old code unaffected
MigrateDual-write, backfill
ContractDrop old column only when nothing reads it
Azure SQL implementationSqlAzureDacpacDeployment@1 can publish a reviewed DACPAC by using an Azure service connection
Migrations must beIdempotent, transactional where supported, and protected by a current recovery point plus tested restore
OrderingExpress dependencies and conditions at the needed stage, job, or step boundary

Traps

  1. A one-step rename is not backward-compatible while old and new versions coexist.
  2. on: failure runs authored steps; an app rollback alone cannot restore dropped schema or data.

Sources: https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/az-400 · https://learn.microsoft.com/en-us/azure/devops/pipelines/targets/azure-sqldb · https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/sql-azure-dacpac-deployment-v1 · https://learn.microsoft.com/en-us/azure/aks/zero-downtime-migration · https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/modernize/execute-cloud-modernization · https://learn.microsoft.com/en-us/ef/core/managing-schemas/migrations/applying · https://learn.microsoft.com/en-us/ef/core/managing-schemas/migrations/managing · https://learn.microsoft.com/en-us/azure/devops/pipelines/process/deployment-jobs · https://learn.microsoft.com/en-us/azure/devops/pipelines/process/stages · https://learn.microsoft.com/en-us/azure/well-architected/reliability/reliability-test

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free