question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why is az webapp up detecting my runtime when I have specified it vis --runtime?

See original GitHub issue

I’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:closed
  • Created a year ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
charris-msftcommented, May 24, 2022

@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.

1reaction
panchagnulacommented, May 20, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found