'set dotnet core version using azure cli in azure windows webapp
We have windows webapp in Azure, we want to change the stack to dotnet core version(3.1,2.1) using Azure cli.
If it is a linux webapp, we can use az webapp config set -g $group -n $webappName --linux-fx-version "DOTNETCORE|2.1". But for windows couldn't find anything. Help is appreciated.
Thank you!
Solution 1:[1]
In our local environment(webapp is running on Windows app service plan), using the below cmdlet initially we have changed the .Net version to 6.0
az webapp config set -g "<RGName>" -n "<WebAppName>" --net-framework-version "v6.0"
later, we have downgraded the version(v4.0) using the below cmdlet & we are able to get the .NetCore(3.1,2.1) in our webapp configuration.
az webapp config set -g "<RGName>" -n "WebAppName>" --net-framework-version "v4.0"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |


