Azure App Service 给出 503 Service Temporarily Unavailable

Azure App Service gives 503 Service Temporarily Unavailable

我是 Azure 云的新手。我有这个 .net-core 2.0 应用程序,它在我的开发 PC 上本地运行 (Ubuntu Linux 17.10).

我已遵循此指南:

https://docs.microsoft.com/en-us/azure/app-service/containers/quickstart-dotnetcore

... 我已将我的应用部署到应用服务容器。 但是,当我在浏览器中转到应用程序时,我得到:

“503 服务暂时不可用”

现在,可能有成千上万的事情会出错。但是,我似乎找不到任何要查看的调试 logs/console 日志 - 所以我有点闭着眼睛看(这样调试并不容易)。

请注意,我正在免费试用,这给了我 200 美元的信用额度,可在接下来的 30 天内使用。

如何在服务失败时进行调试(是的,我已经尝试了门户网站上的各种建议,但没有成功)?

How do one debug when a service is failing?

您可以在 Azure 门户上查看部署日志。

点击第一次提交,你会看到日志。

另外,您可以访问 Kudu 控制台查看日志。您可以访问 http://<webapp name>.scm.azurewebsites.net

从问题中迁移 OP 的自我回答:

I solved this by adding this to the PropertyGroup in my *.csproj file:

<PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>

(as per: https://github.com/aspnet/IISIntegration/issues/476)

Now my app works and gives the expected output.