操作超时将Service Fabric应用程序发布到Azure [英] Operation timed out publishing Service Fabric application to Azure

查看:67
本文介绍了操作超时将Service Fabric应用程序发布到Azure的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将Service Fabric应用程序发布到Azure群集时,出现以下错误消息:

When I try to publish my Service Fabric application to a Azure cluster I get the following error message:

3>Copy-ServiceFabricApplicationPackage : Operation timed out.
3>At C:\Program Files\Microsoft SDKs\Service 
3>Fabric\Tools\PSModule\ServiceFabricSDK\Publish-NewServiceFabricApplication.ps1:230 char:9
3>+         Copy-ServiceFabricApplicationPackage -ApplicationPackagePath  ...
3>+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3>    + CategoryInfo          : OperationTimeout: (:) [Copy-ServiceFabricApplicationPackage], TimeoutException
3>    + FullyQualifiedErrorId : CopyApplicationPackageErrorId,Microsoft.ServiceFabric.Powershell.CopyApplicationPackage
3> 
3>Finished executing script 'Deploy-FabricApplication.ps1'.
3>Time elapsed: 00:12:45.2589165

显然,发布脚本中有一个硬编码的10分钟超时,您可以在此处阅读: https://github.com/Azure/service-fabric-issues/issues/10

Apperently there is a hard-coded 10 minute timeout in the publish script as you can read here: https://github.com/Azure/service-fabric-issues/issues/10

此超时将在即将发布的版本中删除,但是与此同时,我有什么选择?有什么方法可以按服务发布我的应用程序服务吗?

This timeout will be removed in an upcomming release, but in the mean time what are my options? Is there a way I can publish my application service by service?

欢迎任何建议!

推荐答案

我已经通过在Azure中运行虚拟机解决了这一问题.我已经安装了Visual Studio 2015社区和服务结构SDK.

I've solved this by having a virtual machine running in azure. I've installed Visual Studio 2015 community and the service fabric SDK.

然后,我使用Visual Studio Online托管我的代码.我在本地进行构建和测试,当我感到满意时,可以在线访问Visual Studio,然后将RDP部署到我的构建机器上,然后从那里进行拉取,构建和部署.

I then use Visual Studio Online to host my code. I build and test locally, and when I'm happy, commit to visual studio online, then RDP onto my build machine and then pull, build and deploy from there.

实际上,我通过创建构建和部署Powershell脚本又走了一步,因此不需要运行Visual Studio.

I've actually gone one step further by creating build and deploy powershell scripts so I don't need to run visual studio.

这篇关于操作超时将Service Fabric应用程序发布到Azure的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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