Unable to create App service with Powershell commands

ANSHU KUMAR 0 Reputation points
2023-11-29T15:13:25.7933333+00:00

Hi Team,

I am unable to create app service using poweshell command.

Below is the command I have used.

New-AzWebApp -ResourceGroupName "appservicerg" -Name "helloworld9847336" -Location "eastus" -AppServicePlan "appserviceplan1234"

Please refer the attached screenshot for reference.appservicepowershellcommand

Thanks,

Windows for business | Windows Server | User experience | PowerShell
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

1 answer

Sort by: Most helpful
  1. Andriy Bilous 12,076 Reputation points MVP Volunteer Moderator
    2023-11-29T21:44:43.73+00:00

    Hello @ANSHU KUMAR

    Error "The website name is not available" means that name has been taken and you need to choose another name for your app
    An App service resource (and this includes variants built on App service such as Azure functions) must have a globally unique name - this is because the name you give will be a subdomain of the Microsoft owned DNS http://<app-name>.azurewebsites.net
    REF
    https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftweb

    https://learn.microsoft.com/en-us/answers/questions/1424262/the-app-name-is-not-available-error-when-transferr
    https://stackoverflow.com/questions/61655306/why-am-i-seeing-the-error-the-app-name-is-not-available-in-wordpress-site-creati

    0 comments No comments

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.