Sam
Sam

Reputation: 14596

az cli create webapp fails with ResourceNotFound error

This command fails

az webapp create --resource-group my-rg -n my-app --plan my-plan 

with error

ResourceNotFound - The Resource 'Microsoft.Web/sites/my-app' under resource group 'my-rg' was not found.

To me this doesn't make sense. The very purpose of this command is to create the webapp, so obviously it should not expect it to exist before executing the command. Did I miss somthing ?

Upvotes: 0

Views: 774

Answers (1)

4c74356b41
4c74356b41

Reputation: 72211

What I think is happening - the App Service name is already taken and it spits out this silly error, try changing the name to something unique and it will work.

ps. figured it out with a --debug added to the command

Upvotes: 3

Related Questions