Static Web App custom domain stuck in Deleting, parent app and resource group cannot delete – Slice 7 / West Europe

Tim-3375 40 Reputation points
2026-08-13T09:02:56.4366667+00:00

I am experiencing what appears to be a backend state issue with Azure Static Web Apps.

I originally had a Static Web App with a custom domain attached. The custom-domain operation failed, and after attempting to remove it, the custom domain became stuck in the Deleting state.

I then created a replacement Static Web App. The replacement app itself deploys correctly, but adding a custom domain to it fails with:

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

The replacement custom-domain resource ends up in the Failed state.

What I have already verified

The DNS is hosted by an external provider.

The CNAME for the new www hostname correctly resolves to the replacement Static Web App's *.azurestaticapps.net hostname.

I verified this using dig, including public DNS resolvers.

I also checked CAA records and found no CAA restrictions that should prevent Azure from issuing its managed certificate.

HTTPS currently reaches Azure, but Azure has not provisioned/bound a certificate containing the custom hostname, which is consistent with the custom-domain operation having failed.

Azure Portal attempts

I tried:

Removing the custom domain from the original Static Web App.

Waiting for deletion to complete.

Creating a replacement Static Web App.

Adding the www hostname to the replacement app using CNAME validation.

Retrying the failed custom-domain operation after DNS propagation had completed.

Deleting the original Static Web App.

Finally, attempting to delete the entire resource group.

The original custom domain remains stuck in Deleting.

The replacement custom domain remains in Failed.

The original Static Web App deletion was accepted but did not complete, and now deletion of the resource group is also taking an unusually long time.

PowerShell / Azure CLI troubleshooting already attempted

I first attempted to remove the old domain using Azure PowerShell:

Remove-AzStaticWebAppCustomDomain `
    -ResourceGroupName "<resource-group>" `
    -Name "<static-web-app>" `
    -DomainName "<custom-domain>" `
    -NoWait `
    -Confirm:$false

I repeatedly checked the state with:

Get-AzStaticWebAppCustomDomain `
    -ResourceGroupName "<resource-group>" `
    -Name "<static-web-app>"

The custom domain did not disappear and eventually remained in the Deleting state.

I also inspected the resources using Azure CLI:

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

The old custom domain reports:

Status: Deleting

with an error similar to:

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

For the replacement Static Web App I retried the custom-domain operation directly through the CLI:

az staticwebapp hostname set `
    --resource-group "<resource-group>" `
    --name "<replacement-static-web-app>" `
    --hostname "<www-custom-domain>" `
    --validation-method cname-delegation

The command waits for validation but ultimately returns the domain resource with:

Status: Failed

and:

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

I also confirmed the resulting state with:

az staticwebapp hostname show `
    --resource-group "<resource-group>" `
    --name "<replacement-static-web-app>" `
    --hostname "<www-custom-domain>" `
    --output jsonc

Activity Log

I inspected the Azure Activity Log as well.

The custom-domain write operation for the replacement app is accepted by ARM:

Microsoft.Web/staticSites/customdomains/write
Status: Accepted
HTTP status: Accepted

but the asynchronous operation subsequently results in the custom-domain resource entering Failed.

Similarly, deletion of the original Static Web App shows:

Microsoft.Web/staticSites/delete
Status: Accepted
HTTP status: Accepted

but the deletion does not complete.

There are repeated subsequent reads/polls of the original Static Web App, but I do not see a successful completion of the delete operation.

Resource group

I then attempted to delete the entire resource group.

The Static Web Apps are still visible within it when checking with:

az resource list `
    --resource-group "<resource-group>" `
    --output table

so the resource-group deletion also appears to be waiting on the Static Web Apps resources/backend state.

Why I believe this requires backend intervention

At this point:

DNS resolution is correct.

CNAME validation prerequisites are satisfied.

There are no CAA restrictions.

The operations are accepted by Azure Resource Manager.

The failure occurs asynchronously afterward.

One custom domain is stuck in Deleting.

A second custom domain on a replacement app enters Failed.

Deleting the original Static Web App does not complete.

Deleting the containing resource group also does not complete.

This appears to be a server-side Static Web Apps resource/custom-domain state problem rather than something I can resolve through DNS, the Azure Portal, PowerShell, or Azure CLI.

I do not have a paid Azure technical support plan.

Could a Microsoft moderator please escalate this to the Azure Static Web Apps product/backend team and advise whether the stuck custom-domain/resource state requires server-side cleanup?

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
TP 163.1K Reputation points Volunteer Moderator
2026-08-13T17:00:47.58+00:00

Hi,

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.

Also, I was able to ADD custom domain. It took a little longer than normal, but it worked and I can now view static site via custom domain now.

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.

Thanks.

-TP

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author
Venkatesan S 10,830 Reputation points Microsoft External Staff Moderator
2026-08-13T16:59:14.35+00:00

Hi @Tim-3375 ,

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.

Kindly let us know if the above helps or you need further assistance on this issue.

Please do not forget to 210246-screenshot-2021-12-10-121802.pngand “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

If you have any other questions, let me know in the "comments" and I would be happy to help you

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

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.