Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure WebApp - Unable to auto-detect the runtime stack of your app

I'm trying to create Web App which is just having a Static HTML. I'm following this link https://learn.microsoft.com/en-us/azure/app-service/app-service-web-get-started-html. But when I execute the following command

az webapp up --location westeurope --name .

Got the error - " Could not auto-detect the runtime stack of your app" .

like image 743
Murugesh Avatar asked Nov 26 '19 12:11

Murugesh


3 Answers

I tried the following, but added the --html flag at the end of the az webapp up command to bypass auto detection:

mkdir quickstart
cd quickstart
git clone https://github.com/Azure-Samples/html-docs-hello-world.git
cd html-docs-hello-world
az webapp up --location westeurope --name azurewebapptest123 --html

That forces HTML. In the help for the command it implies auto-detection works for a bunch of language, but not for static HTML.

like image 126
RonaldB Avatar answered Oct 21 '22 21:10

RonaldB


I just tried following the steps mentioned in the documentation. Works for me.

mkdir quickstart
cd quickstart
git clone https://github.com/Azure-Samples/html-docs-hello-world.git
cd html-docs-hello-world
az webapp up --location westeurope --name azurewebapptest123
like image 24
Gaurav Kumar Avatar answered Oct 21 '22 19:10

Gaurav Kumar


I have tried the similar steps using the sample repo and was able to reproduce it.

enter image description here

Here is the version:

enter image description here

It's a known bug for Azure CLI 2.0.78 and team is working on it, Which you can track it here:

https://github.com/MicrosoftDocs/azure-docs/issues/43633

Work around of this issue is to use the older version of Azure CLi e.g. 2.0.75 * for deploying the solution.

Hope it helps.

like image 34
Mohit Verma Avatar answered Oct 21 '22 21:10

Mohit Verma