Cannot create deployment slots - ServiceUnavailable "Storage access failed" (ExtendedCode 04202)

Allan Mark Hansen 0 Reputation points
2026-12-03T12:55:17.0633333+00:00

Summary

Creating a deployment slot fails with HTTP 503 on every attempt, on two different

Windows App Service apps in the same resource group. The apps themselves are running

normally. We need to create a slot for a production release.

(tried with api-version 2023-01-01 and 2024-04-01, from Azure CLI, az rest and the Azure portal)

Error

{"Code":"ServiceUnavailable","Message":"Storage access failed. Storage access failure -

please retry later. Please delete and recreate backup schedule to mitigate.",

"ErrorEntity":{"ExtendedCode":"04202","MessageTemplate":"Storage access failed. {0}.

Please delete and recreate backup schedule to mitigate."}}

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Allan Mark Hansen 0 Reputation points
    2026-12-03T13:54:25.68+00:00

    This case can be closed. It was a shared drive that was full.

    Allan

    Was this answer helpful?

    0 comments No comments

  2. Allan Mark Hansen 0 Reputation points
    2026-12-03T13:14:36.6933333+00:00

    Hi,

    Thanks for the reply. The backup explanation does not match our setup: neither app has a

    custom backup configuration.

    • az webapp config backup show on masterverse-onlinetest-prod and on masterverse-onlinetestapi-prod both return "Backup configuration not found for site '...' with slot 'Production'" (ExtendedCode 04211). The same is true for the staging slot of each app.
    • GET .../backups returns an empty list for both apps and both slots: no backup has ever been taken.
    • So there is no SAS URL, storage account or schedule on our side to renew or delete, and the DELETE .../config/backup workaround has nothing to act on.

    Slot creation still fails. Latest attempt:

    • 2026-12-03 13:11 UTC, PUT .../sites/masterverse-onlinetest-prod/slots/release
    • HTTP 503, ExtendedCode 04202
    • x-ms-correlation-request-id: 645b256d-e5fb-423e-af6d-8ef96ce19b5d

    It fails the same way on a second app on a different App Service plan

    (masterverse-onlinetestapi-prod), both on stamp waws-prod-db3-045, webspace

    rg-masterverse-NorthEuropewebspace.

    Could you look at the backend logs for that correlation id and tell us which storage

    access is actually failing? In particular: is it the platform-managed storage for

    automatic backups on the stamp, since no custom backup exists? Both apps also show

    lastModifiedTimeUtc 2026-12-03T01:00:50, which we did not cause - was there platform

    maintenance on the stamp at that time?

    Regards,

    Allan

    Was this answer helpful?

    0 comments No comments

  3. AI answer

    2026-12-03T13:11:12.71+00:00

    Delete and reconfigure the custom backup schedule on each affected app before creating the deployment slot again; Microsoft documents this exact remediation for the App Service “Storage access failed” backup error.^1^

    Reset the backup configuration

    Perform these steps separately for both apps:

    1. In the Azure portal, open App Service → Backups.
    2. Record the current custom-backup details before changing them:
      • Storage account and container
      • Schedule and retention
      • Whether databases are included
      • Whether Backup/restore over virtual network integration is enabled
    3. Delete the existing custom backup schedule/configuration.
      This changes future custom backups; it does not disable platform-managed automatic backups, which cannot be stopped.^1^
    4. On Backups, select Configure custom backups.
    5. Select the storage account and container again, configure the required schedule, and select Configure.
    6. Select Backup Now and wait for it to complete. If it fails, select the failed backup row to view its detailed error.
    7. After a successful backup—or after removing an obsolete schedule that is no longer required—retry creating the deployment slot.

    A newly configured custom backup must use storage that supports Shared Access Signature (SAS) authorization. App Service backup and restore does not support managed-identity authentication to the storage account.^1^

    If reconfiguration still reports storage access failure

    Check the storage side of the backup configuration rather than the running application:

    • Verify that the selected storage account and container still exist and that their access settings or credentials have not changed. Invalid storage settings and changed credentials are common causes of persistent App Service backup failures.^2^
    • If the storage account is firewall-protected, verify the required network path first. Backup over a virtual network requires:
      • App Service virtual-network integration, or an App Service Environment v3.
      • Storage access allowed from that network.
      • Backup/restore over virtual network integration enabled in the backup configuration.^1^
    • If the old backup configuration is unnecessary, leave it removed and retry slot creation rather than recreating the same inaccessible storage reference.

    If slot creation continues to return 04202

    Because the portal, CLI, and two REST API versions already fail identically—and both apps are otherwise healthy—do not spend time on application-process 503 remedies such as restarts, scaling, or Kudu startup diagnostics. This is a management operation failure, not an HTTP failure from the running sites.

    1. Open each app and select Diagnose and solve problems. Run the available Deployment slots and Backup and Restore diagnostics. App Service exposes this diagnostics experience directly from the app resource.^3^
    2. Open App Service → Activity log, select the failed slot-creation operation, and save:
      • Timestamp and region
      • Operation name and full status message
      • Correlation ID
      • App Service plan and app resource IDs
      • Extended code 04202
      App Service activity logs record management operations, their initiator, time, status, and relevant properties.^4^
    3. If the backup reset succeeds but slot creation still fails, open an Azure support request under App Service → Deployment slots and include the collected operation details. Ask Microsoft to inspect the App Service control-plane storage state for the shared plan/resource group.

    References

    1. Back up and restore your app in Azure App Service
    2. Best practices for Azure App Service
    3. Troubleshoot HTTP 502 and 503 errors in Azure App Service
    4. Monitor Azure App Service
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  4. Sedat SALMAN 14,545 Reputation points MVP
    2026-12-03T13:07:11.5366667+00:00

    Hi Allan,

    The 04202 error is about the app's custom backup configuration. As far as I can tell, slot creation reads the backup settings of the production app, and when the storage they point to can't be reached, the whole call fails. Since both apps fail the same way, my guess is they share a backup storage account or container and something changed on it.

    Custom backups authenticate to storage only with a SAS (managed identity isn't supported for backup and restore), so the usual causes are:

    • the SAS in the backup container URL expired, or the storage account key that signed it was rotated
    • "Allow storage account key access" was disabled on the storage account, which denies service and account SAS requests
    • the storage account or container was deleted, or the storage firewall was tightened so the app can't reach it anymore

    To see what each app points to:

    az webapp config backup show --resource-group <rg> --webapp-name <app-name>
    

    Check the storage account and container in the URL and the se= expiry on the SAS (it's a live token, so don't paste it anywhere).

    For "Storage access failed" the backup docs say to delete and reconfigure the backup schedule, or reconfigure the backup storage. In the portal that's Backups > Configure custom backups on each app: select the storage account and container again (or a new container) and save, which should give the app a new SAS. If the storage account is behind a firewall, the app needs VNet integration and the "Backup/restore over virtual network integration" option selected.

    If you need the slot before storage is sorted out, you can remove the backup configuration, create the slot, and set backups up again afterwards:

    az rest --method delete --url "https://management.azure.com/subscriptions/<sub-id>/resourceGroups/<rg>/providers/Microsoft.Web/sites/<app-name>/config/backup?api-version=2024-04-01"
    

    That only removes the schedule on the app, so remember to put it back. If the backup settings look clean and slot creation still returns 04202, I'd open a support case with the correlation ID from the failed request.

    References:

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.