无法在Windows操作系统下的Azure中创建新的.NET Core 3.1 Web应用程序 [英] Can't create new .NET Core 3.1 web app in Azure under Windows operating system

查看:123
本文介绍了无法在Windows操作系统下的Azure中创建新的.NET Core 3.1 Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了很多时间试图找到某种在Windows订阅下创建新的.NET Core 3.1 Web应用程序的方法.我发现,如果您以.Net Core 3.1(LTS)作为运行时堆栈,则唯一的选择是在Linux下创建应用程序.我也尝试使用不同的地区,Sku和尺寸,但在所有情况下都一样.使用Linux时,在创建期间都无法配置App Insight. 有趣的是,当我在标记为最新的.net core 3.0下创建Web应用程序时,我能够部署.net core 3.1 Web应用程序,并且所有工作都包括应用程序见解内容. 我的问题:这仅仅是Azure UI中的错误,您无法在Windows下创建.net core 3.1 Web应用程序,还是背后有某些特定原因?

I spent many hours trying to find some way to create a new .NET Core 3.1 web app under Windows subscription. I found that if you pick up the Runtime stack as .Net Core 3.1 (LTS) the only option is to create an app under the Linux. I tried to play with different regions and Sku and sizes as well but for all cases, it's just the same. There is no option to configure App Insight during the creation time either when using the Linux. The interesting thing is that when I created the Web App under .net core 3.0 marked as current I was able to deploy .net core 3.1 web app and it all worked including the app insights stuff. My question: is it just a bug in the Azure UI that you cannot create .net core 3.1 web app under Windows or there is some specific reason behind it?

推荐答案

.NET Core 3.1的部署已推广到全球所有AppServices后,该选项将可用.到目前为止,这仅适用于Linux.

This option is going to be available once the deployment of .NET Core 3.1 has been rolled out to all AppServices worldwide. So far, this is only been completed for Linux.

https://github.com/Azure/app-service-announcements/issues/217

https://github.com/Azure/app-service-announcements-discussions/issues/129#issuecomment-565620039

在全球范围内将3.1 SDK推广到App Service后端后,将启用Windows托管的App Service选项.

Windows hosted App Service option will be enabled once world wide rollout of 3.1 SDK to App Service backend is complete.

由于Windows AppServices已安装了所有必需的运行时,因此您可以选择3.0并尝试根据门户的要求来部署您的应用程序.我本周能够使用.NET Core 3.1在西欧托管一个WebApi,但据我所知,这可能只是运气. 根据我在链接的Github问题中阅读的内容,可能还可以部署自包含版本.

Since Windows AppServices have all required runtimes installed, you can select 3.0 and try to deploy your app regardles of what the portal says. I was able to host a WebApi in west Europe this week with .NET Core 3.1, but from what I read that might just have been luck. Deploying a self contained version is probably also possible from what I read in the linked Github issue.

edit2:请注意,这次演讲是关于SDK的.在撰写本文时,大多数应用程序服务都安装了3.1 运行时,而SDK则需要花费更长的时间.

edit2:Note that the accouncement talks about the SDK. As of the writing of this post, most of the app services have the 3.1 runtime installed, while the SDK will take a while longer.

您还可以手动检查AppService是否已安装运行时:

edit: You can also check manually if your AppService has the runtimes installed already:

  • Go to Kudu (https://myappservicename.scm.azurewebsites.net/)
  • Open the Debug console (e.g. CMD)
  • type in dotnet --list-runtimes

这篇关于无法在Windows操作系统下的Azure中创建新的.NET Core 3.1 Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆