[英]How to deploy Azure service fabric project on to a remote cluster(Azure)
I have Created a cluster in Azure http://******.######.cloudapp.azure.com:19080 but don't know how to deploy my service fabric project on to it. 我已经在Azure http://******.######.cloudapp.azure.com:19080中创建了一个群集,但是不知道如何在其上部署服务结构项目。 Link to application manifest ApplicationManifest.xml
链接到应用程序清单ApplicationManifest.xml
It's pretty well documented, unless you are getting specific errors, which you then will need to reference to get some worthwhile help 除非您得到特定的错误,否则它已被很好地记录下来,然后您将需要参考这些错误以获得一些有价值的帮助
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-publish-app-remote-cluster https://docs.microsoft.com/zh-cn/azure/service-fabric/service-fabric-publish-app-remote-cluster
Your first option is to use the powershell commands . 您的第一个选择是使用powershell命令 。 You can also right-click your application in visual studio and select "Publish".
您也可以在Visual Studio中右键单击您的应用程序,然后选择“发布”。 Make sure you are using the correct publish profile.
确保使用正确的发布配置文件。
Within Visual Studio, navigate to your Publish Profiles folder under the application and copy/paste the existing cloud.xml file and then rename appropriately. 在Visual Studio中,导航到应用程序下的“发布配置文件”文件夹,然后复制/粘贴现有的cloud.xml文件,然后进行适当的重命名。 Ensure that you use the correct public facing IP for your cluster, which will most likely be the load balancer.
确保为群集使用正确的面向公众的IP,该IP很可能是负载平衡器。
The line should look like the following. 该行应如下所示。
<ClusterConnectionParameters ConnectionEndpoint="<YOUR IP>:19000" />
Example: 例:
<ClusterConnectionParameters ConnectionEndpoint="151.41.35.35:19000" />
However, if the cluster is secured you may need additional information. 但是,如果群集受保护,则可能需要其他信息。 These options are shown within the commented Cluster Connection Parameters of the cloud.xml file.
这些选项显示在cloud.xml文件的带注释的群集连接参数中。
Right click on the application, select publish and ensure the new publish profile is selected. 右键单击该应用程序,选择“发布”,并确保选择了新的发布配置文件。 Visual studio will attempt to validate the connection.
Visual Studio将尝试验证连接。 Try to publish and keep an eye on the output window for insight in to the process.
尝试发布并密切注意输出窗口,以深入了解该过程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.