无状态 webapi 在发布时失败

Stateless webapi fails when published

我刚刚尝试将开箱即用的无状态 webapi 服务发布到 Azure SF 集群。 在本地它运行良好,但一旦发布,我似乎无法达到 http://mysfcluster.westeurope.cloudapp.azure.com:8820/api/values

我是否需要在其他地方然后在 ServiceManifest.xml 中声明端口?

您必须在创建节点类型时在"Custom endpoints"部分声明它。

https://azure.microsoft.com/en-us/documentation/articles/service-fabric-connect-and-communicate-with-services/