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.

az webapp create can't create a dotnet core app

See original GitHub issue

Describe the bug It is not possible in azure cli to create a webapp with .net core runtime settings for a non-linux host. It can be set in the arm template with

          "metadata": [
            {
              "name": "CURRENT_STACK",
              "value": "dotnetcore"
            }
          ]

To Reproduce Try running (or similar)

az webapp create -g test-rg -n test-app --runtime "dotnetcore"  -p test-plan

Expected behavior runtime param should support the dotnetcore stuff

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
panchagnulacommented, Mar 27, 2020

CLI uses the API to verify the list of supported runtimes before an app is created currently the API has a known issue where dotnetcore is not listed as a supported runtime for windows you can verify this by running the command az webapp list-runtimes - once the API fix rolls out this will automatically work. Closing this since this is not a CLI issue.

0reactions
gregorybleikercommented, Mar 10, 2020

so is the recommended way to create a dotnet core webapp to do it on a linux host???

Read more comments on GitHub >

github_iconTop Results From Across the Web

az webapp create errow when specifying .net core
But I created a web app based on linux service plan P1v2 and still get this error. As it describes, this error should...
Read more >
Quickstart: Deploy an ASP.NET web app - Azure App Service
Open Visual Studio and then select Create a new project. · In Create a new project, find, and select ASP.NET Core Web App,...
Read more >
Deploy ASP.NET Core apps to Azure App Service
Use Visual Studio to create and deploy an ASP.NET Core web app to Azure App Service on Windows. ... Use the command line...
Read more >
az webapp | Microsoft Learn
az webapp auth. Manage webapp authentication and authorization. To use v2 auth commands, run "az extension add --name authV2" to add the authV2...
Read more >
Azure Web App for Linux - DotNET Core 2.2 Support
To create a 2.2 web app, you can run az webapp create -n mynetcoreapp -p mylinuxplan -r "DOTNETCORE|2.2" in a bash window.
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