简体   繁体   中英

webapp doesn't exist with Azure CLI 2.0.79

I have upgraded recently to 2.0.79 due to the problems with 2.0.78 caused with static HTML pages I am following this Microsoft tutorial but keep getting the error

"webapp anotherwebapp doesn't exist"

when I enter the command:

 az webapp up --location westeurope --name anotherwebapp --html

The contents on the directory is listed below (dir):

08/01/2020  08:27 PM    <DIR>          .
08/01/2020  08:27 PM    <DIR>          ..
08/01/2020  08:27 PM             4,447 .gitignore
08/01/2020  08:27 PM    <DIR>          css
08/01/2020  08:27 PM    <DIR>          fonts
08/01/2020  08:27 PM    <DIR>          img
08/01/2020  08:27 PM             2,338 index.html
08/01/2020  08:27 PM    <DIR>          js
08/01/2020  08:27 PM             1,183 LICENSE
08/01/2020  08:27 PM               608 README.md
               4 File(s)          8,576 bytes
               6 Dir(s)  1,214,520,279,040 bytes free

Any help with resolving this would be much appreciated!

First, are you sure "webapp anotherwebapp doesn't exist" is an error message? it should be a prompt since it actually does not exist.

I can successfully deploy it with 2.0.79, and the steps are as below:

1.Install azure cli 2.0.79 via downloading the .msi, then restarts the machcine.

2.Then in cmd prompt, nav to the folder where my html project resides -> run the command:

az webapp up --location westeurope --name anotherwebapp111 --html

The screenshot as below:

在此处输入图片说明

3.Nav to azure portal, I can see the site is deployed successfully.

在此处输入图片说明

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