Why is az webapp up detecting my runtime when I have specified it vis --runtime?
See original GitHub issueI’m trying to create a new webapp using az webapp up
and I have specified the runtime with --runtime "PYTHON:3.9"
, but I get an auto-detect error
Command Name
az webapp up
Errors:
Could not auto-detect the runtime stack of your app.
HINT: Are you in the right folder?
For more information, see 'https://go.microsoft.com/fwlink/?linkid=2109470'
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az webapp up -n myWebAppName -g myResourceGroupName --runtime "PYTHON:3.9" -l westus3 --logs -p myPlanName --sku B2
Expected Behavior
I expect the command to create the RG, ASP, Web App, and then deploy the app
Environment Summary
Windows-10-10.0.19044-SP0
Python 3.10.3
Installer: MSI
azure-cli 2.35.0
Extensions:
containerapp 0.3.0
Dependencies:
msal 1.17.0
azure-mgmt-resource 20.0.0
Additional Context
Issue Analytics
- State:
- Created a year ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Unable to auto-detect the runtime stack of your app
I tried the following, but added the --html flag at the end of the az webapp up command to bypass auto detection:
Read more >az webapp | Microsoft Learn
The workflow will build and deploy your app to the specified webapp. Remove and disconnect the GitHub Actions workflow file from the specified...
Read more >ESSO-LM Best Practices - Oracle Help Center
When configuring your fields and detection matching rules, you will not have to change the frame identifier, unless your Web application is a...
Read more >Command not recognized error when specifying a runtime ...
Recently I've been working with Azure and have been using the Azure CLI to script up creation of a Node.js webapp (btw, the...
Read more >DB2 Deployment Guide - IBM Redbooks
3.2 IBM Data Server Client, Runtime Client, Driver for ODBC, CLI, and .NET 94 ... help you choose the right DB2 product for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@StrawnSC - It was just a test I was setting up so I don’t have a repo for it. If I hit it again, I’ll create a repo and share it.
@StrawnSC my guess the detection here is because there is on OS & this might be a new app, so wr try to detect language for which default OS to use, but we should honor the --runtime. Can you check if we can make Changes to use --runtime value to set OS as well, in this scenario.