简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM