I am seeing the same behavior across 3 separate custom subdomains and 3 separate Azure Static Web Apps. Two custom domains failed validation. A third custom domain had already been validated and was working successfully. After attempting to remove the custom domains, all three became stuck in a permanent "Deleting" state. Azure Portal deletion, Azure PowerShell (Remove-AzStaticWebAppCustomDomain) and Azure REST API deletion all fail to remove the resources.
My environment is:
- Azure Static Web Apps
- Region: West Europe
- DNS hosted in Microsoft 365 DNS
- All resources are in the same Azure subscription
I have tested this with 3 different subdomains across 3 different Azure Static Web Apps.
- Subdomain 1: Previously validated and working correctly.
- Subdomain 2: Validation failed.
- Subdomain 3: Validation failed.
In all cases the DNS records point to the correct Static Web App hostname and resolve publicly.
After the validation failures, I attempted to remove the custom domains from all three Static Web Apps, including the one that had previously been working successfully (Hoping to link to a different static web app).
The result was:
- All three custom domains became stuck deleting.
- The Azure Portal shows them in a Deleting state.
- The delete operation never completes.
One of these resources has now been stuck in Deleting coming up on 20 hours.
I have already tried:
Azure Portal
- Adding custom domains
- Removing custom domains
- Re-validating domains
Azure CLI / REST API
Attempted deletion via:
az rest --method delete
The request completed without error, but the custom domain resource remains and still reports:
"status": "Deleting"
Azure PowerShell
Attempted deletion via:
Remove-AzStaticWebAppCustomDomain
The operation sits in progress and does not complete.
Looks like a lot of people encountering the same issue.
I can provide subscription ID, resource IDs, correlation IDs, Activity Logs, and API responses privately to a Microsoft engineer if required.