Symptoms
- Clusters in the primary workspace won't start, the workspace UI or API times out, or storage calls fail. Several unrelated Azure services in the same region are failing too.
- The Azure status page or Service Health shows an active incident for the region.
- Business-critical pipelines (finance close, regulatory feeds, customer-facing data) are missing their SLAs.
Azure Databricks has no automatic regional failover. Recovery depends on what you built before the outage: a secondary workspace, a metastore in the secondary region, replicated data and deployable job code. This runbook assumes those exist. If they don't, skip to "Prevent it next time" and work the outage with Microsoft.
Caution
Failing over storage (
az storage account failover) can lose the writes that had not yet replicated, and the account becomes locally redundant until you re-enable geo-replication. Writing to both regions at once causes conflicting copies that are hard to reconcile. Make one decision, write it down and keep a single writer.
1. Confirm scope and impact (first 15 minutes)
Rule out a local problem first (your VNet, firewall, DNS or a single workspace). Check Azure Service Health for the subscription:
az rest --method get \
--url "https://management.azure.com/subscriptions/<sub-id>/providers/Microsoft.ResourceHealth/events?api-version=2022-10-01" \
--query "value[?properties.status=='Active'].{title:properties.title, type:properties.eventType, impact:properties.impact[].impactedService}" -o json
Also check the Azure Databricks status page for your region, and the resource health of the workspace's storage account:
az resource show --ids "/subscriptions/<sub-id>/resourceGroups/rg-data/providers/Microsoft.Storage/storageAccounts/stlakeprodweu/providers/Microsoft.ResourceHealth/availabilityStatuses/current" \
--api-version 2022-10-01 --query "properties.{state:availabilityState, summary:summary}"
| Finding | Action |
|---|---|
| Only your workspace affected, no Azure incident | Not a regional outage. Troubleshoot networking or the workspace. |
| Azure incident, ETA under your RTO | Hold. Pause schedules and wait. Communicate. |
| Azure incident, no ETA or ETA past RTO | Fail over critical jobs (step 3). |
2. Decide what fails over
Not everything needs to move. Use the tiering you agreed before the outage:
| Tier | Example | During outage |
|---|---|---|
| 1 | Regulatory feeds, customer-facing tables | Run in secondary |
| 2 | Internal dashboards, daily marts | Run in secondary if capacity allows, or wait |
| 3 | Ad hoc, ML training, dev | Wait for primary |
Check how current the secondary data is before you promise anything. For storage with geo-replication:
az storage account show -n stlakeprodweu --expand geoReplicationStats \
--query "{lastSync:geoReplicationStats.lastSyncTime, status:geoReplicationStats.status}"
For tables replicated with Deep Clone, check the last clone in the secondary workspace:
DESCRIBE HISTORY dr_prod.sales.orders LIMIT 5;
SELECT max(order_ts) FROM dr_prod.sales.orders;
The difference between that timestamp and the outage start is the data you will reprocess or accept as lost. Get the business owner to sign off on it.
3. Fail over critical jobs
3a. Stop the primary from writing when it comes back
If the primary workspace is reachable at all, pause schedules so jobs don't start half-way through a partial recovery:
for id in $(databricks jobs list -p prod -o json | jq -r '.[].job_id'); do
SCHED=$(databricks jobs get $id -p prod -o json | jq -c '.settings.schedule // empty | .pause_status="PAUSED"')
[ -n "$SCHED" ] && databricks jobs update --json "{\"job_id\": $id, \"new_settings\": {\"schedule\": $SCHED}}" -p prod
done
If it isn't reachable, record that this must be done first thing when it returns (step 5).
3b. Point at the secondary data
Pick the option you designed for:
- Separate replicated tables (Deep Clone): the secondary workspace already has its own catalog (
dr_prod). Jobs run against it through bundle variables. No storage failover needed. - Geo-redundant storage failover: only if tables live on GRS storage and the outage is long. After failover, the same
abfss://paths resolve in the secondary region:
az storage account failover -n stlakeprodweu -g rg-data --yes
For Unity Catalog, the secondary-region metastore needs storage credentials and external locations for those paths. Register external tables there if they are not already.
3c. Deploy and run the jobs
Keep a dr target in your bundles that sets the secondary workspace host, catalog and compute:
targets:
dr:
workspace:
host: https://adb-2222222222222222.2.azuredatabricks.net
variables:
catalog: dr_prod
databricks bundle validate -t dr
databricks bundle deploy -t dr
databricks bundle run -t dr finance_close_job
Secrets must exist in the secondary region's Key Vault-backed scopes with the same scope and key names. Source systems' firewalls must allow the secondary workspace's egress IPs or private endpoints. These are the two most common reasons failover jobs fail on the first run.
Watch for regional capacity. During a large outage, many customers fail over into the same region. If clusters fail with quota or stockout errors, try other VM sizes or serverless compute where your security setup allows it.
4. Verify the failover
- Tier 1 jobs completed in the secondary workspace. Row counts and max timestamps look right.
- Downstream consumers (Power BI, APIs, exports) point at the secondary SQL warehouse or tables. Update connection strings or DNS aliases if you use them.
- Only one region is writing to each table.
5. Fail back
When Azure declares the region healthy:
- Keep primary schedules paused. Confirm clusters start and storage is reachable in the primary workspace.
- Bring data written in the secondary back to the primary. For Deep Clone setups, clone or
MERGEthe changed tables fromdr_prodintoprod(incremental Deep Clone copies only new files). After a storage failover, re-enable geo-replication and plan a second, controlled failover back during a quiet window. - Re-run any Tier 2 and 3 jobs that were skipped, oldest first, with their date parameters.
- Unpause primary schedules. Pause the
drtarget's schedules (ordatabricks bundle destroy -t drif the DR jobs are only for incidents). - Restart streaming jobs in the primary region. Their checkpoints point at primary-region state. Check for gaps or duplicates around the outage window.
Communicate
"Azure region [West Europe] has an active incident affecting Databricks from HH:MM. Tier 1 pipelines are running in [North Europe] with data up to [timestamp]. Dashboards [list] show data as of [time]. Other pipelines are paused until the region recovers. Next update HH:MM."
Prevent it next time
- Build and test the secondary workspace, metastore, storage credentials, secret scopes and networking before you need them. Run a failover drill at least twice a year.
- Agree RPO, RTO and job tiers with business owners. Record them in the runbook.
- Replicate Tier 1 tables on a schedule with Deep Clone or storage geo-replication, and alert when replication lags.
- Keep all jobs in Asset Bundles with a
drtarget. A job that exists only in the primary workspace UI cannot fail over. - Pre-request vCPU quota in the secondary region for the Tier 1 workload.
Get the weekly HubDatAI email
One email a week with everything new: posts, learning sessions and videos. Free, no spam, unsubscribe in one click. What you get