Azure Static Web Apps custom domains stuck in "Deleting" after unknown error

William S 25 Reputation points
2026-08-13T04:51:07.29+00:00

I'm trying to configure custom domains for an Azure Static Web App, but both domain bindings appear to be stuck in the Deleting state after initially failing with an unknown error.

For privacy, I've replaced the actual resource and domain names below with placeholders.

Static Web App:

  • App name: <static-web-app>
  • Resource group: <resource-group>
  • Domains:
    • example.com
    • www.example.com

The domain's authoritative DNS has already been moved to Azure DNS and appears to be resolving correctly. The Static Web App itself is deployed successfully and works through its azurestaticapps.net hostname.

When I initially added the custom domains through the Azure portal, I received:

An unknown error has occurred while adding your custom domain. Please try again later.

I then attempted to delete the failed custom-domain entries through the portal. Both have remained stuck in Deleting.

Running:

az staticwebapp hostname list `
  --name <static-web-app> `
  --resource-group <resource-group> `
  --output table

returns approximately:

CreatedOn                         DomainName       ErrorMessage                                                                            Status
--------------------------------  ---------------  --------------------------------------------------------------------------------------  --------
2026-08-13T03:16:26+00:00         example.com      An unknown error has occurred while adding your custom domain. Please try again later.  Deleting
2026-08-13T03:34:32+00:00         www.example.com  An unknown error has occurred while adding your custom domain. Please try again later.  Deleting

For the apex domain:

az staticwebapp hostname show `
  --name <static-web-app> `
  --resource-group <resource-group> `
  --hostname example.com `
  --output jsonc

returns:

{
  "createdOn": "2026-08-13T03:16:26+00:00",
  "domainName": "example.com",
  "errorMessage": "An unknown error has occurred while adding your custom domain. Please try again later.",
  "name": "example.com",
  "resourceGroup": "<resource-group>",
  "status": "Deleting",
  "type": "Microsoft.Web/staticSites/customDomains",
  "validationToken": null
}

www.example.com returns the same state.

I also tried deleting through the Azure CLI:

az staticwebapp hostname delete `
  --name <static-web-app> `
  --resource-group <resource-group> `
  --hostname example.com `
  --yes

The CLI enters InProgress, but the hostname continues to appear as Deleting.

At this point I have stopped retrying add/delete operations so I don't make the state worse.

My questions are:

  1. Is there currently a known issue with Azure Static Web Apps custom-domain provisioning or deletion?
  2. Is there any client-side, Azure CLI, or ARM operation that can clear a custom-domain resource stuck in Deleting?
  3. Does this state indicate a stale backend custom-domain binding that requires intervention from the Azure Static Web Apps team?

Thanks.

Azure Static Web Apps
Azure Static Web Apps

An Azure service that provides streamlined full-stack web app development.

0 comments No comments

Answer accepted by question author
Saritha Bandaru 665 Reputation points Microsoft External Staff Moderator
2026-08-13T06:50:31.68+00:00

Hello @William S

Thank you for your patience while we looked into this.

We have received confirmation that mitigation has been applied, and your custom domain issue should now be resolved. Could you please retry the operation and verify whether everything is working as expected?

If you are still experiencing any issues, please reply with an update and any relevant details. We will be happy to continue assisting you and investigate further if needed.

We look forward to hearing back from you.

Please "accept" if the information helped you. This will help us and others in the community as well.

Was this answer helpful?

1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. TP 163.1K Reputation points Volunteer Moderator
    2026-08-13T16:50:10.1133333+00:00

    Hi William,

    Can you retry deleting your custom domain now? I just retried mine and it successfully deleted after about 2-3 minutes. Previously it had been stuck for many hours.

    Below is latest update from the Service issue DZXC-65Z:

    Service: Static Web Apps

    Region: Global

    Event tags: --

    Impact Statement: Starting at 14:30 UTC on 11 August 2026, you have been identified as an affected customer using Azure Static Web Apps in multiple regions who may experience failures or delays when deleting custom domains for resources hosted in the region. At this time, the impact is limited to a subset of customers.

    Current Status: Our teams have completed mitigation actions and are currently monitoring recovery progress. The issue was attributed to a backlog in the job queue responsible for custom domain deletion operations, which caused deployment requests to time out. Mitigation efforts included reducing the batch size of operations and stopping specific operations to accelerate queue recovery. Current telemetry indicates that the queue backlog is decreasing rapidly and is expected to reach a healthy state shortly.

    Initial assessments indicate that custom domain creation and update workflows remain healthy, with the impact limited to delayed or failed custom domain deletion requests while the backlog was present.

    We are validating recovery by monitoring system performance and confirming successful retries from affected customers.

    The next update will be provided in 02 hours, or as events warrant.

    Also, I just tested adding custom domain and it worked. Seem to take a little longer than normal, but it completed and I can view my static site using custom domain now.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    Was this answer helpful?


  2. Sam Uresin 85 Reputation points
    2026-08-13T15:27:24.81+00:00

    I have the same problem, along with many others. My question is posted here: https://learn.microsoft.com/en-us/answers/questions/5973864/unable-to-delete-static-web-app

    And I also got the same generic response from MS Support!

    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.