【发布时间】:2020-03-25 11:58:44
【问题描述】:
如果我运行以下命令:
az appservice plan create --name PluralsightTestPlan --resource-group PluralsightTest --sku FREE
az webapp create -g PluralsightTest -p PluralsightTestPlan -n PluralsightTestapp --runtime "DOTNETCORE|2.1"
然后我收到以下错误:
Runtime 'DOTNETCORE|2.1' is not supported. Please invoke 'list-runtimes' to cross check
无论我使用什么版本的 .net core,都会出现同样的错误。
当我跑步时:
az webapp list-runtimes
除非我使用 --linux 开关,否则不会指定 .net 核心运行时。
如果我使用 .net 框架值,那么它可以工作。
【问题讨论】:
-
其实Windows和Linux都应该支持.netcore 2.1,这可能是个bug。
-
谢谢大家。已在下面发布答案。
标签: .net azure asp.net-core azure-web-app-service