Skip to content

Disaster Recovery

Disaster Recovery

This document provides disaster recovery procedures for the App Store for Intune, including backup strategies, recovery runbooks, and high availability options.

Last updated: October 2026


  1. Recovery Objectives
  2. Built-in Protection (Tier 2)
  3. Recovery Procedures
  4. Identity and Grant Reconstruction
  5. High Availability Setup (Tier 3)
  6. Backup Verification
  7. Emergency Contacts

MetricTarget
RTO (Recovery Time Objective)1-2 hours
RPO (Recovery Point Objective)5 minutes (SQL), 0 minutes (Storage with GRS)
Data Loss RiskMinimal, geo-redundant backups
MetricTarget
RTO (Recovery Time Objective)15-30 minutes
RPO (Recovery Point Objective)Near-zero with active geo-replication
Data Loss RiskNear-zero

The default ARM template deployment includes these disaster recovery features:

FeatureConfiguration
Automated BackupsEnabled by default
Point-in-Time Restore7 days (Basic tier)
Backup StorageGeo-redundant (cross-region)
Full BackupsWeekly
Differential BackupsEvery 12-24 hours
Transaction Log BackupsEvery 5-10 minutes

What’s protected:

  • All application data (apps, requests, settings)
  • User configurations and branding
  • Audit logs and history
FeatureConfiguration
RedundancyGeo-Redundant Storage (GRS)
Replication6 copies (3 primary + 3 secondary region)
FailoverManual (customer-initiated account failover)
Blob VersioningEnabled on deployments created with version 1.39 or later
Soft Delete30 days, for blobs and for containers, on deployments created with version 1.39 or later

A deployment created before version 1.39 and updated in place doesn’t get these settings, because only the 1.39 deployment template sets them. Turn them on yourself: in the Azure portal, open the App Store storage account, select Data management > Data protection, turn on soft delete for blobs with 30 days, turn on soft delete for containers with 30 days, turn on versioning for blobs, and select Save. The appstore-packages container that holds rollback packages is created by App Store when it first needs it, so these account-level settings are what protect it. On Reports > Store Health, the Rollback package protection check reads Degraded and lists what’s missing or can’t be confirmed. When soft delete for blobs is off or keeps deleted blobs for less than 30 days, the check offers Turn on soft delete for blobs, which changes only that setting after you confirm. Versioning and soft delete for containers can be turned on only in the Azure portal, as above.

What’s protected:

  • WinGet packaging queue messages
  • Packaging working files (temporary)
  • Retained rollback packages in the appstore-packages container, which rollback needs
FeatureConfiguration
Soft DeleteEnabled (7-day retention)
Purge ProtectionOptional (prevents permanent deletion)

What’s protected:

  • SQL connection string
  • Storage connection string

There is no Entra ID client secret to protect. The App Service authenticates to Microsoft Graph as its own managed identity, so the only secrets in the vault are the two connection strings.

FeatureProtection
Source CodeGitHub repository
Deployment PackagePowerStacks release location (https://bi.powerstacks.com/appstoreforintune/bin)
ARM TemplateAzure Marketplace offer

Recovery: Redeploy from Azure Marketplace. No code backup needed.


Symptoms: User accidentally deleted requests, apps, or settings.

Recovery steps:

  1. Identify the deletion time from audit logs or user report

  2. Restore SQL Database to point-in-time:

    Terminal window
    # Azure CLI
    az sql db restore \
    --resource-group <resource-group> \
    --server <sql-server-name> \
    --name AppRequestPortal \
    --dest-name AppRequestPortal-Restored \
    --time "2026-02-14T10:00:00Z"
  3. Verify restored data by connecting to the restored database

  4. Option A - Full restore: Swap the restored database

    Terminal window
    # Rename original (backup)
    az sql db rename --resource-group <rg> --server <server> \
    --name AppRequestPortal --new-name AppRequestPortal-Old
    # Rename restored to production
    az sql db rename --resource-group <rg> --server <server> \
    --name AppRequestPortal-Restored --new-name AppRequestPortal
  5. Option B - Selective restore: Copy specific records from restored DB to production

  6. Restart App Service to reconnect:

    Terminal window
    az webapp restart --resource-group <rg> --name <app-name>

Estimated recovery time: 30-60 minutes


Symptoms: Application fails to start, “Key Vault reference failed” errors.

Recovery steps:

  1. Check if secret is soft-deleted:

    Terminal window
    az keyvault secret list-deleted --vault-name <vault-name>
  2. Recover the deleted secret:

    Terminal window
    az keyvault secret recover \
    --vault-name <vault-name> \
    --name SqlConnectionString
  3. If purged (permanently deleted), recreate the secret:

    Terminal window
    # Get the value from its source resource (for example, the SQL Database
    # Connection strings blade, or the Storage account Access keys blade)
    az keyvault secret set \
    --vault-name <vault-name> \
    --name SqlConnectionString \
    --value "<new-secret-value>"
  4. Restart App Service:

    Terminal window
    az webapp restart --resource-group <rg> --name <app-name>

Estimated recovery time: 15-30 minutes


Symptoms: All Azure services in primary region unavailable.

Recovery steps:

  1. Create new resource group in secondary region:

    Terminal window
    az group create --name apprequest-dr --location westus2
  2. Redeploy App Store into the secondary region:

    Azure Marketplace is the only supported way to deploy App Store. Search the Marketplace for App Store for Intune, select the DR resource group, and complete the wizard with the same values you used originally, including the same Database size and Release Channel.

    There is no client secret field and no certificate field. App Store uses one app registration for sign-in, and the App Service’s own managed identity for everything privileged.

    If the original deployment had unattended API access enabled, also enter the same value in Workload API audience (optional). That is an identifier rather than a credential, and the application role assignment on your Automation Account’s managed identity is unaffected by the rebuild because it belongs to the workload registration, not to anything being recreated.

    Enter the same Admin Group Object ID you use in production. The person who runs the deployment becomes the initial administrator of the empty database. After you restore your production database in step 4, the administrators recorded in it apply again. If you leave the Admin Group empty, /health reports Degraded.

    The new deployment runs the current version of the release channel you choose. When it starts against your restored database, it upgrades that database to its own schema, so you can’t run an earlier App Store version against the database afterward.

  3. Grant Microsoft Graph permissions to the new managed identity:

    The recovered App Service has a new system-assigned managed identity, and Graph permissions belong to that identity rather than to the app registration, so they don’t come across with the template. Run the permission script against the new App Service. Until you do, users can sign in but every Intune operation fails. Admin Group members can’t open administration either, because App Store can’t check their membership; only the initial administrator can. If you use a User Access Group, App Store also refuses everyone except the initial administrator until the permissions are granted.

  4. Restore the database into the deployment you just created:

    The template created an empty database named AppRequestPortal, and the App Service is already pointed at it. If you restore the backup somewhere else, the portal will come up against the empty database, migrate it, and look completely healthy with none of your data. The restore therefore has to end with the recovered data sitting under that exact name on that exact server.

    Terminal window
    # Names of the resources the template just created.
    DR_RG=apprequest-dr
    NEW_SERVER=$(az sql server list --resource-group $DR_RG --query "[0].name" -o tsv)
    NEW_APP=$(az webapp list --resource-group $DR_RG --query "[0].name" -o tsv)
    # 1. Find the geo-backup of the production database.
    az sql db geo-backup list \
    --resource-group <original-rg> \
    --server <original-server> -o table
    # 2. Restore it onto the new server under a temporary name.
    az sql db geo-backup restore \
    --resource-group $DR_RG \
    --dest-server $NEW_SERVER \
    --dest-database AppRequestPortal-restored \
    --geo-backup-id <backup-id>
    # 3. Stop the site so nothing writes to the empty database while you swap them.
    az webapp stop --resource-group $DR_RG --name $NEW_APP
    # 4. Put the restored database in place of the empty one.
    az sql db delete --resource-group $DR_RG --server $NEW_SERVER \
    --name AppRequestPortal --yes
    az sql db rename --resource-group $DR_RG --server $NEW_SERVER \
    --name AppRequestPortal-restored --new-name AppRequestPortal
    # 5. Start it again.
    az webapp start --resource-group $DR_RG --name $NEW_APP
  5. Re-establish the grants that were tied to the old identities.

    These are not carried by the template, because they were made to identities that no longer exist. See Identity and grant reconstruction for the full list and why each one is needed. The ones that apply to most deployments:

    • Microsoft Graph permissions (step 3 above). Without them, nothing involving Intune works.
    • Power BI workspace access, if you use Group Automations. Give the new App Service managed identity the Viewer role on the BI for Intune workspace and Build permission on its semantic model. If your Power BI tenant settings are scoped to a security group rather than the whole organization, add the new identity to that group as well.
    • Exchange Online application access policy, if you created one to restrict Mail.Send to a single mailbox. It names the old identity’s application ID, so it neither permits the new identity nor restricts it. Recreate it against the new application ID.
  6. Rebuild the Teams app package, if the Teams bot is enabled.

    The template creates a new user-assigned managed identity for the bot, with a new client ID, and the App Service has a new hostname. The Teams app manifest carries both. Rebuild it with the new teamsBotAppId and the new URL from the deployment outputs, then upload the new package to Teams. See Configure Microsoft Teams bot.

    Then, on Store Administration > Communications, replace Bot App ID with the new teamsBotAppId. The restored database still holds the old one, and Test refuses to send until they match.

  7. Recover storage rather than replacing it, where you can.

    Check the existing storage account first. It is geo-redundant by default, so if the region failed but the account did not, the supported move is a customer-initiated account failover, which promotes the secondary and keeps the account name and endpoints. That is preferable to abandoning it: point the recovered App Service at the failed-over account instead of the empty one the template created.

    Failover is asynchronous, so expect a small amount of recent data not to have replicated, and note that the account is locally redundant in its new primary region until you reconfigure redundancy.

    If you genuinely need a new account, understand what it costs. The packaging working area holds unfinished work only, but the appstore-packages container holds the retained rollback packages. See what is committed and what is in flight.

    • Every app you have already published stays published, because published apps live in Intune. Rollback is different: it rebuilds a previous version from the package App Store kept in the appstore-packages container, so a new, empty account loses every retained rollback package. Restore that container from the original account where you can.
    • An operation that was still running when the disaster struck may need to be started again. App Store picks up a packaging job interrupted less than a day earlier and finishes it. A job nothing worked on for more than a day is marked Failed, and you retry it. An update job abandoned that way says “Abandoned before App Store could recover it. Deploy the update again from App Updates if it is still needed.” and isn’t offered Retry: deploy the update again from App Updates. A custom MSI uploaded but not yet packaged was in the working area, so upload it again. Nothing that had finished is affected.
    • The PSADT template cache is empty, so the first packaging job re-downloads and re-verifies it. Automatic, given outbound HTTPS to github.com.

    If the original storage account is still readable, copy the containers across with az storage blob copy start-batch before you consider the recovery complete.

  8. Update Entra ID redirect URIs:

    • Add the new App Service URL to the App Store app registration’s Single-page application redirect URIs
  9. Update DNS (if using custom domain):

    • Point DNS to new App Service
    • Request new SSL certificate or migrate existing
  10. Work through the post-recovery validation checklist.

    A portal that loads and lets people sign in is not a recovered portal. Sign-in exercises the app registration, which the rebuild never touched, so it proves almost nothing about the parts that were rebuilt.

Estimated recovery time: 3-6 hours, most of it waiting for the geo-restore. Re-establishing the grants in steps 3, 5 and 6 is quick, but each one needs somebody with the right administrative role, so find out who those people are before you need them.


Symptoms: WinGet packaging jobs fail, queue errors.

Recovery steps:

  1. For GRS accounts, initiate failover. This is the preferred path:

    Terminal window
    az storage account failover \
    --name <storage-account-name> \
    --resource-group <rg>

    Failover promotes the geo-replicated secondary and keeps the account name and endpoints, so App Store’s configuration continues to work unchanged. Prefer it over creating a replacement account.

    Note: Failover may take up to 1 hour and makes the secondary region the new primary. Replication is asynchronous, so recent writes may not have reached the secondary. After failover the account is locally redundant in its new primary region until you reconfigure redundancy.

  2. Alternative, only if the account cannot be recovered - create a new storage account.

    A new account is empty. Every published app stays published, because published apps live in Intune. Rollback is different: it rebuilds a previous version from the package App Store kept in the appstore-packages container, so a new, empty account loses every retained rollback package. If the original account is still readable, copy that container across. An operation that was still running may have to be started again. See What is committed and what is in flight.

    Terminal window
    az storage account create \
    --name <new-storage-name> \
    --resource-group <rg> \
    --location <location> \
    --sku Standard_GRS
  3. Update Key Vault with new connection string:

    Terminal window
    CONNECTION_STRING=$(az storage account show-connection-string \
    --name <new-storage-name> --resource-group <rg> -o tsv)
    az keyvault secret set \
    --vault-name <vault-name> \
    --name StorageConnectionString \
    --value "$CONNECTION_STRING"
  4. Restart App Service:

    Terminal window
    az webapp restart --resource-group <rg> --name <app-name>

Estimated recovery time: 1-2 hours


Scenario 5: Application corruption / bad deployment

Section titled “Scenario 5: Application corruption / bad deployment”

Symptoms: Application crashes, unexpected behavior after update.

Recovery steps:

  1. Roll back the application package:

    Terminal window
    # Point the App Service at the previous version on the package host.
    # Each release is published with a versioned filename in its channel folder, e.g.:
    # https://bi.powerstacks.com/appstoreforintune/bin/latest/AppRequestPortal-1.33.0.zip
    # (preview-channel builds live under .../bin/preview/)
    az webapp config appsettings set \
    --resource-group <rg> \
    --name <app-name> \
    --settings WEBSITE_RUN_FROM_PACKAGE="https://bi.powerstacks.com/appstoreforintune/bin/latest/AppRequestPortal-<version>.zip" \
    Application__Version="<version>"

    Set both settings. An in-app update writes Application__Version as well, and App Store reports that value as its version. If you leave it alone, App Store reports the newer version after the rollback.

    To find the previous package, open Reports > Analytics > Audit Trail and look for Portal.UpdateInstalled, which names the package it replaced. Only updates installed by version 1.39 or later record it.

  2. Restart App Service:

    Terminal window
    az webapp restart --resource-group <rg> --name <app-name>
  3. Verify the rollback was successful.

    About a minute after App Store starts, it writes a critical log entry saying the package no longer matches the checksum it recorded. That is expected after a manual rollback. The next in-app update records a new checksum.

Estimated recovery time: 5-15 minutes (add 30-60 minutes if a database restore is required)


A recovery that redeploys the ARM template does not restore your deployment. It builds a new one and then puts your data in it. Anything that was granted to a specific identity or resource, rather than written in the template, refers to something that no longer exists.

This section exists because the failure is quiet. Authentication belongs to the app registration, which a rebuild never touches, so the recovered portal signs people in and renders the catalog from the restored database while everything privileged fails. If you use a User Access Group, App Store refuses everyone except the initial administrator instead.

Resource names are derived from the resource group, so deploying into a new resource group renames everything: the App Service and its URL, the SQL server, the Key Vault, the storage account, and the bot identity.

Identity or resourceWhat happens on rebuild
App Service system-assigned managed identityDestroyed and recreated. New object (principal) ID and new application ID. Nothing granted to the old one carries over
Bot user-assigned managed identityA new resource with a new name, new client ID and new object ID
App Service URLNew hostname, because the App Service name is derived from the resource group
Key Vault, storage account, SQL serverNew resources with new names. Key Vault contains only the secrets the template writes; the storage account is empty
App registrationUnchanged. It is yours, not the template’s, which is why sign-in keeps working and proves nothing
GrantWhy it survives
Website Contributor on the App Service, held by its own managed identityThe template creates the role assignment against whatever principal ID the new site has. This is what lets the portal update its own package during an in-app update
Key Vault access policy granting the App Service get and list on secretsCreated by the template against the new principal ID. This is what lets the SQL and storage connection strings resolve
Bot registration to bot identity bindingThe template sets the bot’s msaAppId from the new user-assigned identity
SQL and storage connection stringsRewritten by the template to name the new resources

Nothing in this table needs a human. If one of them is wrong, the deployment itself failed.

GrantKeyed toWho can do itWhat it costs if missed
Microsoft Graph application permissions (the eight required ones, Mail.Send unless you left it off, and DeviceManagementManagedDevices.PrivilegedOperations.All if you granted it)The App Service managed identity’s service principal object IDPrivileged Role Administrator or Global AdministratorEverything involving Intune fails with “Insufficient privileges”. Sign-in is unaffected
Power BI access: Viewer on the BI for Intune workspace, and Build on its semantic model through a security groupThe managed identity, as a workspace member and as a member of that security groupPower BI workspace admin, and the security group’s ownerGroup Automations cannot read BI for Intune, so automations match nothing
Power BI tenant settings, when scoped to a security groupThe managed identity’s membership of that groupFabric (Power BI) administrator, or the group’s ownerSame as above, and the failure looks identical
Exchange Online application access policy, if you created oneThe managed identity’s application (client) IDExchange administratorThe policy no longer describes the portal. Depending on your configuration this either fails to restrict the new identity or, if Mail.Send is otherwise constrained, blocks all notification email
Teams app packageThe bot identity’s client ID and the App Service hostnameTeams administrator, to upload the rebuilt packageThe bot cannot be reached, so Teams notifications stop
App registration redirect URIThe App Service hostnameWhoever owns the app registrationSign-in fails with a redirect URI mismatch. This one is loud, and the only one that is

Recovery restores everything App Store had finished. Work that was still running when the disaster happened is started again. That line is worth being precise about, because it decides what you should expect to find after a recovery.

A packaging operation is finished when the application exists in Intune and App Store has recorded its identifier. In order, a publish streams the package into Intune’s own storage, has Intune commit the content, finalizes the application, and only then writes the Intune application id and a completed status into the App Store database. The installer content a device eventually downloads is held by Intune from that point on, not by App Store.

ExamplesWhat recovery does
Committed, and restoredPublished apps, version history, requests, approvals, audit history, workflows, settings, licensing, deployment and ring recordsRestored with the database, within its documented restore point
External, and never lostThe Intune application objects themselves, and their assignmentsNothing to restore. Intune is a separate service and is unaffected by the loss of an Azure region or subscription
In flight, and restartedA packaging job that had not finished, a queued job, a custom MSI uploaded but not yet packaged, the working .intunewin of a job still runningApp Store picks up a packaging job interrupted less than a day earlier and finishes it. A job nothing worked on for more than a day is marked Failed, and you retry it; an abandoned update job isn’t offered Retry, so deploy the update again from App Updates. Nothing that had finished is affected

A recovered portal must never show unfinished work as finished. An interrupted job either finishes on its own or shows Failed with the reason. It never shows as completed.

Rolling an application back to a previously deployed version is a shipped capability, so it is worth being exact about what a recovery has to restore for it to work.

Rollback rebuilds the known-good version from a package App Store kept for it. For every version inside your Number of rollback versions to retain setting, App Store holds the packaged .intunewin and the metadata needed to reconstruct the application definition. A rollback fetches that package, checks it against the digest recorded when it was stored, and republishes it into the product’s install application.

It does not need the old version’s Intune application object. You are free to delete historical Win32 apps in Intune; rollback still works. That is deliberate, because administrators do tidy those up, and the previous design failed in exactly that case.

So rollback depends on three things, and two of them are durable state a recovery must restore:

RequirementWhere it livesRecovered by
The version history rowAzure SQLthe database restore
The retained rollback package and its metadataBlob Storage, in the rollback containerthe storage account, which a recovery must restore
The product’s install applicationMicrosoft Intunenothing; Intune is unaffected by the loss of an Azure region or subscription

Packaging work is still transient. The working container holds the intermediate files of in-progress packaging jobs and is swept by age. Losing it costs an unfinished job, which is re-run. That sweep cannot touch the rollback container.

Each item exercises a dependency that a rebuild breaks, using something the portal already does. Do them in order: a failure early on explains failures later.

#CheckHowExpected
1The portal is running and reaching its databaseOpen https://<new-app-url>/healthstatus is Healthy or Degraded, and the database check is Healthy. A Healthy result here does not mean Graph permissions were restored: this endpoint checks that settings are present, not that any grant works
2Your data came back, not an empty schemaSign in and open App ManagementYour apps, requests and approval history are present. An empty catalog on a recovered instance means the database swap in step 4 did not take effect
3Sign-in worksSign in as a normal userThe portal loads. This proves the redirect URI and the app registration, and nothing else
4Graph permissions were restoredIn App Management, run Sync Apps from IntuneThe sync completes. If the permission script has not been run against the new identity, the sync fails and says that the managed identity’s Microsoft Graph token carries no permissions, and the Microsoft Graph permissions check in Store Health says the same
5Intune write access worksPublish or update one low-risk appThe Win32 app appears in Intune. Reads can succeed while writes fail if only some permissions were granted
6Email notifications workSubmit a test request that requires approvalThe approver receives the email. Nothing arrives if Mail.Send was not granted, or if an Exchange application access policy still names the old identity
7Teams notifications work, if enabledStore Administration > Communications > TestA message arrives. If Test refuses, Bot App ID still holds the old value (step 6). Any other failure usually means the rebuilt Teams package was not uploaded
8Group Automations work, if usedStore Administration > Integrations > Test connectionThe connection succeeds. A failure means the new managed identity is not on the Power BI workspace, or the tenant setting does not cover it
9Nothing drifted while you were downReports > Store HealthReview Apps that cannot deliver and Apps deleted in Intune. Changes made in Intune during the outage are not automatically reconciled
10Self-update still worksIn the Azure portal, check the App Service’s WEBSITE_RUN_FROM_PACKAGE setting a few minutes after the first startIt names AppRequestPortal-<version>.zip. App Store makes that change through Azure Resource Manager, so it proves the Website Contributor assignment works
11Rollback capability is intactOpen an app with more than one version in Version HistoryPrevious versions that can be restored show Rollback. This proves the version history and the retained rollback packages in appstore-packages survived. If App Store didn’t keep a package for a version, the app says so rather than offering it. If you can afford to, roll one low-risk app back and forward again
12Unfinished work is reported honestlyApps > App Catalog > Packaging JobsA job interrupted less than a day before the disaster is picked up again and finishes on its own, so allow about an hour. A job nothing worked on for more than a day shows Failed with Abandoned before App Store could recover it. Retry if still needed., or, for an update, Abandoned before App Store could recover it. Deploy the update again from App Updates if it is still needed. (no Retry; deploy it again from App Updates). No interrupted job shows as completed. A recovered portal that claims an interrupted job finished is a defect worth reporting

For organizations requiring higher availability, implement these additional measures manually.

Creates a readable secondary database in another region with continuous replication.

Setup:

  1. Create geo-replica:

    Terminal window
    az sql db replica create \
    --resource-group <primary-rg> \
    --server <primary-server> \
    --name AppRequestPortal \
    --partner-server <secondary-server> \
    --partner-resource-group <secondary-rg>
  2. Configure failover group (recommended):

    Terminal window
    az sql failover-group create \
    --resource-group <primary-rg> \
    --server <primary-server> \
    --name apprequest-fog \
    --partner-server <secondary-server> \
    --partner-resource-group <secondary-rg> \
    --failover-policy Automatic \
    --grace-period 1
  3. Update connection string to use failover group endpoint:

    Server=tcp:apprequest-fog.database.windows.net,1433;...

Cost: ~$5/month additional (Basic tier replica)

Recovery time: Automatic failover in 1-2 minutes

A cold standby for the web front end. App Store must run as one instance at a time: its background work runs inside the web process, so two running copies would both process packaging jobs, syncs and scheduled checks. Keep the second App Service stopped, route with Priority, and start the secondary only after you confirm the primary is down. Never run both at once.

Setup:

  1. Deploy secondary App Service in another region from Azure Marketplace, and then stop it. Before you rely on it:

    • In the secondary’s Key Vault, set the SQL connection string to the failover group listener (apprequest-fog.database.windows.net in the example above), so the secondary reaches whichever database is primary.
    • Grant the Microsoft Graph permissions to the secondary’s managed identity. The grant is per deployment, so the primary’s grant doesn’t cover it. See Grant Graph permissions.
    • The secondary has its own storage account, so the packages kept for rollback aren’t there and a rollback fails without changing the app; its own Teams bot identity, so update Bot App ID on Store Administration > Communications after you start it; and its own Power BI access, which Group Automations needs. See What changes in a rebuild.
  2. Create Traffic Manager profile:

    Terminal window
    az network traffic-manager profile create \
    --resource-group <rg> \
    --name apprequest-tm \
    --routing-method Priority \
    --unique-dns-name apprequest-portal
  3. Add endpoints:

    Terminal window
    # Primary
    az network traffic-manager endpoint create \
    --resource-group <rg> \
    --profile-name apprequest-tm \
    --name primary \
    --type azureEndpoints \
    --target-resource-id <primary-app-id> \
    --priority 1
    # Secondary
    az network traffic-manager endpoint create \
    --resource-group <rg> \
    --profile-name apprequest-tm \
    --name secondary \
    --type azureEndpoints \
    --target-resource-id <secondary-app-id> \
    --priority 2

Fail over:

  1. Confirm that the primary is down.
  2. If you can still reach the primary App Service, stop it.
  3. Start the secondary App Service. Traffic Manager sends users to it once the primary endpoint reports as degraded.

If you couldn’t stop the primary during the outage, it runs again when its region recovers, and Traffic Manager routes users back to it. As soon as the primary region returns, stop one of the two App Services so that only one copy runs.

Fail back:

  1. Stop the secondary App Service.
  2. Start the primary App Service.
  3. Confirm that users reach the primary through Traffic Manager.

Cost: $0.75/million queries + secondary App Service ($55/month)

Enables read access to secondary region for faster failover decisions.

Setup:

After deployment, change the storage account’s redundancy to RA-GRS in the Azure portal. The Marketplace wizard doesn’t offer a redundancy choice.

Cost: ~$0.50/month additional over GRS


  • SQL Point-in-Time Restore Test

    • Restore database to 24 hours ago
    • Verify data integrity
    • Delete test database
  • Key Vault Recovery Test

    • List soft-deleted secrets
    • Verify recovery capability
    • Document secret expiration dates
  • Marketplace Deployment Test

    • Deploy to test resource group
    • Verify all resources created
    • Delete test deployment
  • Document Recovery Time

    • Record actual time for each recovery step
    • Update estimates if needed

Configure Azure Monitor alerts for:

AlertConditionAction
SQL DTU> 90% for 15 minEmail admins
App Service HealthUnhealthyEmail + webhook
Key Vault Access DeniedAnyEmail security team
Storage Availability< 99%Email admins

RoleContactResponsibility
Primary Admin[Your contact]First responder for incidents
Azure Supporthttps://portal.azure.com/#blade/Microsoft_Azure_SupportSeverity A for production down
Security Team[Security contact]Data breach or security incidents
PlanResponse Time (Sev A)Cost
BasicNo SLAFree
Developer8 hours~$29/month
Standard1 hour~$100/month
Professional Direct15 minutes~$1,000/month

Recommendation: Standard support for production deployments.


Is the application accessible?
├── YES: Can users sign in?
│ ├── YES: Is data correct?
│ │ ├── YES: No DR needed
│ │ └── NO: → Scenario 1 (Data Deletion)
│ └── NO: Key Vault issue? → Scenario 2
└── NO: Is it a single resource or entire region?
├── Single resource:
│ ├── SQL → Restore from backup
│ ├── Storage → Scenario 4
│ ├── App Service → Redeploy from Azure Marketplace
│ └── Key Vault → Scenario 2
└── Entire region: → Scenario 3 (Region Failure)

After deployment, record these values for emergency use:

ResourceHow to Find
Resource GroupAzure Portal → Resource Groups
SQL Server NameDeployment outputs or Portal
Storage Account NameDeployment outputs or Portal
Key Vault NameDeployment outputs or Portal
App Service NameDeployment outputs or Portal

Store this information securely outside of Azure (e.g., password manager, printed runbook).