Home > database >  Removing a custom domain from an Azure Static Web App
Removing a custom domain from an Azure Static Web App

Time:08-18

I'm trying to delete two custom domains from my Azure Static Web App. I'm getting notifications saying that the custom domains have been deleted. But they still are stuck in the list view as Deleting. Tried to delete several times but still they refuse to be removed from the list.

Does anyone know the reason behind this?

Screenshot

CodePudding user response:

  • Sometimes it gets Stucks and takes long time to refresh the list to display the Added or deleted Custom Domains
  • We can confirm this by running command in Azure CLI

As per Get-AzStaticWebAppCustomDomain and Remove-AzStaticWebAppCustomDomain documents ,

To Get the list of Custom Domains of the Static Web App run below Command

Get-AzStaticWebAppCustomDomain -ResourceGroupName YourRGName -Name StaticWebAppName

enter image description here

  • If you are still seeing the custom domains list even after deleting them manually, run the below command to remove them
Remove-AzStaticWebAppCustomDomain -ResourceGroupName YourRGName -Name StaticWebAppName -DomainName YourdomainName
  • For me it is shown as Still deleting in progress, but with the Get-AzStaticWebAppCustomDomain I am not able to see the deleted custom domain. enter image description here
  • Related