azure - 在azure windows webapp中使用azure cli设置dotnet core版本

标签 azure azure-web-app-service azure-cli

我们在 Azure 中有 windows webapp,我们想使用 Azure cli 将堆栈更改为 dotnet core 版本(3.1,2.1)。 如果是linux webapp,我们可以使用az webapp config set -g $group -n $webappName --linux-fx-version "DOTNETCORE|2.1" 。但对于windows找不到任何东西。感谢帮助。 谢谢!

最佳答案

在我们的本地环境中(webapp 在 Windows 应用服务计划上运行),最初使用以下 cmdlet 我们已将 .Net 版本更改为 6.0

az webapp config set -g "<RGName>" -n "<WebAppName>" --net-framework-version "v6.0"

enter image description here

后来,我们使用以下 cmdlet 降级了版本 (v4.0),并且我们能够在 Web 应用程序配置中获取 .NetCore(3.1,2.1)

 az webapp config set -g "<RGName>" -n "WebAppName>" --net-framework-version "v4.0"

enter image description here

关于azure - 在azure windows webapp中使用azure cli设置dotnet core版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70983093/

相关文章:

Azure 日志流不记录日志

azure - 使用 args 在 azure 容器注册表中运行容器

Azure CLI 运行命令使用参数调用 RunPowerShellScript

azure - 使用 Azure 资源管理器模板将现有 Web 服务计划附加到新网站

php - Azure 是否支持运行 Laravel 5.5 的正确 PHP 版本?

azure - 如何通过命令行界面将作业(jar)提交到Azure Spark集群?

Azure Active Directory 同步工具 - 同步新的 AD,它会清除我在 Azure AD 中的用户吗?

c# - 在 ScheduledEnqueueTimeUtc 时间之前发送的 azure 消息

c# - 有没有办法将 ScheduledTransferPeriod 设置为小于一分钟?

azure - QnAMaker 服务是否可以部署为认知服务