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:
- Is there currently a known issue with Azure Static Web Apps custom-domain provisioning or deletion?
- Is there any client-side, Azure CLI, or ARM operation that can clear a custom-domain resource stuck in
Deleting?
- Does this state indicate a stale backend custom-domain binding that requires intervention from the Azure Static Web Apps team?
Thanks.