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
Table of contents
Section titled “Table of contents”- Recovery Objectives
- Built-in Protection (Tier 2)
- Recovery Procedures
- Identity and Grant Reconstruction
- High Availability Setup (Tier 3)
- Backup Verification
- Emergency Contacts
Recovery objectives
Section titled “Recovery objectives”Tier 2 (default deployment)
Section titled “Tier 2 (default deployment)”| Metric | Target |
|---|---|
| RTO (Recovery Time Objective) | 1-2 hours |
| RPO (Recovery Point Objective) | 5 minutes (SQL), 0 minutes (Storage with GRS) |
| Data Loss Risk | Minimal, geo-redundant backups |
Tier 3 (high availability)
Section titled “Tier 3 (high availability)”| Metric | Target |
|---|---|
| RTO (Recovery Time Objective) | 15-30 minutes |
| RPO (Recovery Point Objective) | Near-zero with active geo-replication |
| Data Loss Risk | Near-zero |
Built-in protection (Tier 2)
Section titled “Built-in protection (Tier 2)”The default ARM template deployment includes these disaster recovery features:
SQL Database backups
Section titled “SQL Database backups”| Feature | Configuration |
|---|---|
| Automated Backups | Enabled by default |
| Point-in-Time Restore | 7 days (Basic tier) |
| Backup Storage | Geo-redundant (cross-region) |
| Full Backups | Weekly |
| Differential Backups | Every 12-24 hours |
| Transaction Log Backups | Every 5-10 minutes |
What’s protected:
- All application data (apps, requests, settings)
- User configurations and branding
- Audit logs and history
Storage account (GRS)
Section titled “Storage account (GRS)”| Feature | Configuration |
|---|---|
| Redundancy | Geo-Redundant Storage (GRS) |
| Replication | 6 copies (3 primary + 3 secondary region) |
| Failover | Manual (customer-initiated account failover) |
| Blob Versioning | Enabled on deployments created with version 1.39 or later |
| Soft Delete | 30 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-packagescontainer, which rollback needs
Key Vault
Section titled “Key Vault”| Feature | Configuration |
|---|---|
| Soft Delete | Enabled (7-day retention) |
| Purge Protection | Optional (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.
Application code
Section titled “Application code”| Feature | Protection |
|---|---|
| Source Code | GitHub repository |
| Deployment Package | PowerStacks release location (https://bi.powerstacks.com/appstoreforintune/bin) |
| ARM Template | Azure Marketplace offer |
Recovery: Redeploy from Azure Marketplace. No code backup needed.
Recovery procedures
Section titled “Recovery procedures”Scenario 1: Accidental data deletion
Section titled “Scenario 1: Accidental data deletion”Symptoms: User accidentally deleted requests, apps, or settings.
Recovery steps:
-
Identify the deletion time from audit logs or user report
-
Restore SQL Database to point-in-time:
Terminal window # Azure CLIaz sql db restore \--resource-group <resource-group> \--server <sql-server-name> \--name AppRequestPortal \--dest-name AppRequestPortal-Restored \--time "2026-02-14T10:00:00Z" -
Verify restored data by connecting to the restored database
-
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 productionaz sql db rename --resource-group <rg> --server <server> \--name AppRequestPortal-Restored --new-name AppRequestPortal -
Option B - Selective restore: Copy specific records from restored DB to production
-
Restart App Service to reconnect:
Terminal window az webapp restart --resource-group <rg> --name <app-name>
Estimated recovery time: 30-60 minutes
Scenario 2: Key Vault secret deleted
Section titled “Scenario 2: Key Vault secret deleted”Symptoms: Application fails to start, “Key Vault reference failed” errors.
Recovery steps:
-
Check if secret is soft-deleted:
Terminal window az keyvault secret list-deleted --vault-name <vault-name> -
Recover the deleted secret:
Terminal window az keyvault secret recover \--vault-name <vault-name> \--name SqlConnectionString -
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>" -
Restart App Service:
Terminal window az webapp restart --resource-group <rg> --name <app-name>
Estimated recovery time: 15-30 minutes
Scenario 3: Complete region failure
Section titled “Scenario 3: Complete region failure”Symptoms: All Azure services in primary region unavailable.
Recovery steps:
-
Create new resource group in secondary region:
Terminal window az group create --name apprequest-dr --location westus2 -
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,
/healthreports 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.
-
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.
-
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-drNEW_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 --yesaz 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 -
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.Sendto 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.
-
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
teamsBotAppIdand 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. -
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-packagescontainer 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-packagescontainer, 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-batchbefore you consider the recovery complete. - 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
-
Update Entra ID redirect URIs:
- Add the new App Service URL to the App Store app registration’s Single-page application redirect URIs
-
Update DNS (if using custom domain):
- Point DNS to new App Service
- Request new SSL certificate or migrate existing
-
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.
Scenario 4: Storage account failure
Section titled “Scenario 4: Storage account failure”Symptoms: WinGet packaging jobs fail, queue errors.
Recovery steps:
-
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.
-
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-packagescontainer, 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 -
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" -
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:
-
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__Versionas 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.
-
Restart App Service:
Terminal window az webapp restart --resource-group <rg> --name <app-name> -
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)
Identity and grant reconstruction
Section titled “Identity and grant reconstruction”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.
What changes in a rebuild
Section titled “What changes in a rebuild”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 resource | What happens on rebuild |
|---|---|
| App Service system-assigned managed identity | Destroyed and recreated. New object (principal) ID and new application ID. Nothing granted to the old one carries over |
| Bot user-assigned managed identity | A new resource with a new name, new client ID and new object ID |
| App Service URL | New hostname, because the App Service name is derived from the resource group |
| Key Vault, storage account, SQL server | New resources with new names. Key Vault contains only the secrets the template writes; the storage account is empty |
| App registration | Unchanged. It is yours, not the template’s, which is why sign-in keeps working and proves nothing |
Grants the template restores for you
Section titled “Grants the template restores for you”| Grant | Why it survives |
|---|---|
| Website Contributor on the App Service, held by its own managed identity | The 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 secrets | Created by the template against the new principal ID. This is what lets the SQL and storage connection strings resolve |
| Bot registration to bot identity binding | The template sets the bot’s msaAppId from the new user-assigned identity |
| SQL and storage connection strings | Rewritten 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.
Grants a human has to re-establish
Section titled “Grants a human has to re-establish”| Grant | Keyed to | Who can do it | What 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 ID | Privileged Role Administrator or Global Administrator | Everything 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 group | The managed identity, as a workspace member and as a member of that security group | Power BI workspace admin, and the security group’s owner | Group Automations cannot read BI for Intune, so automations match nothing |
| Power BI tenant settings, when scoped to a security group | The managed identity’s membership of that group | Fabric (Power BI) administrator, or the group’s owner | Same as above, and the failure looks identical |
| Exchange Online application access policy, if you created one | The managed identity’s application (client) ID | Exchange administrator | The 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 package | The bot identity’s client ID and the App Service hostname | Teams administrator, to upload the rebuilt package | The bot cannot be reached, so Teams notifications stop |
| App registration redirect URI | The App Service hostname | Whoever owns the app registration | Sign-in fails with a redirect URI mismatch. This one is loud, and the only one that is |
What is committed and what is in flight
Section titled “What is committed and what is in flight”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.
| Examples | What recovery does | |
|---|---|---|
| Committed, and restored | Published apps, version history, requests, approvals, audit history, workflows, settings, licensing, deployment and ring records | Restored with the database, within its documented restore point |
| External, and never lost | The Intune application objects themselves, and their assignments | Nothing to restore. Intune is a separate service and is unaffected by the loss of an Azure region or subscription |
| In flight, and restarted | A packaging job that had not finished, a queued job, a custom MSI uploaded but not yet packaged, the working .intunewin of a job still running | 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 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.
What rollback actually needs
Section titled “What rollback actually needs”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:
| Requirement | Where it lives | Recovered by |
|---|---|---|
| The version history row | Azure SQL | the database restore |
| The retained rollback package and its metadata | Blob Storage, in the rollback container | the storage account, which a recovery must restore |
| The product’s install application | Microsoft Intune | nothing; 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.
Post-recovery validation checklist
Section titled “Post-recovery validation checklist”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.
| # | Check | How | Expected |
|---|---|---|---|
| 1 | The portal is running and reaching its database | Open https://<new-app-url>/health | status 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 |
| 2 | Your data came back, not an empty schema | Sign in and open App Management | Your 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 |
| 3 | Sign-in works | Sign in as a normal user | The portal loads. This proves the redirect URI and the app registration, and nothing else |
| 4 | Graph permissions were restored | In App Management, run Sync Apps from Intune | The 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 |
| 5 | Intune write access works | Publish or update one low-risk app | The Win32 app appears in Intune. Reads can succeed while writes fail if only some permissions were granted |
| 6 | Email notifications work | Submit a test request that requires approval | The approver receives the email. Nothing arrives if Mail.Send was not granted, or if an Exchange application access policy still names the old identity |
| 7 | Teams notifications work, if enabled | Store Administration > Communications > Test | A 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 |
| 8 | Group Automations work, if used | Store Administration > Integrations > Test connection | The connection succeeds. A failure means the new managed identity is not on the Power BI workspace, or the tenant setting does not cover it |
| 9 | Nothing drifted while you were down | Reports > Store Health | Review Apps that cannot deliver and Apps deleted in Intune. Changes made in Intune during the outage are not automatically reconciled |
| 10 | Self-update still works | In the Azure portal, check the App Service’s WEBSITE_RUN_FROM_PACKAGE setting a few minutes after the first start | It names AppRequestPortal-<version>.zip. App Store makes that change through Azure Resource Manager, so it proves the Website Contributor assignment works |
| 11 | Rollback capability is intact | Open an app with more than one version in Version History | Previous 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 |
| 12 | Unfinished work is reported honestly | Apps > App Catalog > Packaging Jobs | A 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 |
High availability setup (Tier 3)
Section titled “High availability setup (Tier 3)”For organizations requiring higher availability, implement these additional measures manually.
SQL active geo-replication
Section titled “SQL active geo-replication”Creates a readable secondary database in another region with continuous replication.
Setup:
-
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> -
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 -
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
Traffic Manager / Front Door
Section titled “Traffic Manager / Front Door”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:
-
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.netin 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.
- In the secondary’s Key Vault, set the SQL connection string to the failover group listener (
-
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 -
Add endpoints:
Terminal window # Primaryaz network traffic-manager endpoint create \--resource-group <rg> \--profile-name apprequest-tm \--name primary \--type azureEndpoints \--target-resource-id <primary-app-id> \--priority 1# Secondaryaz 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:
- Confirm that the primary is down.
- If you can still reach the primary App Service, stop it.
- 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:
- Stop the secondary App Service.
- Start the primary App Service.
- Confirm that users reach the primary through Traffic Manager.
Cost: $0.75/million queries + secondary App Service ($55/month)
Storage RA-GRS with manual failover
Section titled “Storage RA-GRS with manual failover”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
Backup verification
Section titled “Backup verification”Monthly backup test checklist
Section titled “Monthly backup test checklist”-
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
Automated monitoring
Section titled “Automated monitoring”Configure Azure Monitor alerts for:
| Alert | Condition | Action |
|---|---|---|
| SQL DTU | > 90% for 15 min | Email admins |
| App Service Health | Unhealthy | Email + webhook |
| Key Vault Access Denied | Any | Email security team |
| Storage Availability | < 99% | Email admins |
Emergency contacts
Section titled “Emergency contacts”| Role | Contact | Responsibility |
|---|---|---|
| Primary Admin | [Your contact] | First responder for incidents |
| Azure Support | https://portal.azure.com/#blade/Microsoft_Azure_Support | Severity A for production down |
| Security Team | [Security contact] | Data breach or security incidents |
Azure support plans
Section titled “Azure support plans”| Plan | Response Time (Sev A) | Cost |
|---|---|---|
| Basic | No SLA | Free |
| Developer | 8 hours | ~$29/month |
| Standard | 1 hour | ~$100/month |
| Professional Direct | 15 minutes | ~$1,000/month |
Recommendation: Standard support for production deployments.
Recovery decision tree
Section titled “Recovery decision tree”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)Appendix: Resource IDs quick reference
Section titled “Appendix: Resource IDs quick reference”After deployment, record these values for emergency use:
| Resource | How to Find |
|---|---|
| Resource Group | Azure Portal → Resource Groups |
| SQL Server Name | Deployment outputs or Portal |
| Storage Account Name | Deployment outputs or Portal |
| Key Vault Name | Deployment outputs or Portal |
| App Service Name | Deployment outputs or Portal |
Store this information securely outside of Azure (e.g., password manager, printed runbook).