azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

New-Azurewebsite conflicts with non existing sites

Open banibal opened this issue 11 years ago • 3 comments

New-Azurewebsite throws error: Website with given name [name] already exists. But i cant see the site(s) in azure portal. And when i run Get-Azurewebsite it only returns the sites that i actually can see in the portal. I have also tried to run Remove-Azurewebsite, but these "ghost" sites doesnt get deleted.

someone with same problem?

banibal avatar Dec 17 '14 20:12 banibal

Can only think that the conflicting website already exists under azurewebsites.net, which is shared across all Azure. Same as trying to create a new site through the management portal, but the name is not available.

andybatescc avatar Jan 07 '15 15:01 andybatescc

@andybatescc Your assessment is correct, the website name has to be globally unique. To test it out before creation, use:

Test-AzureName -Website <websitename>

To determine if the website is already in use.

markcowl avatar Jan 21 '15 22:01 markcowl

I get this error message also when creating a webapp in a brand new ASE with its own domain. It seems a webapp in the ASE (that has a private domain) conflicts with a webapp that uses the .azurewebsites.net domain. Any way to work around this issue?

mariusGundersen avatar Jun 22 '18 09:06 mariusGundersen