【问题标题】:Deploy WPF Application Build to VM on Azure from TFS从 TFS 将 WPF 应用程序构建部署到 Azure 上的 VM
【发布时间】:2016-04-03 11:36:51
【问题描述】:

我想基本上将 bin 文件夹部署到托管在 Azure 上的 VM。我想从我的 TFS 2015 Server 部署到都托管在 Azure 中的 Window 7 VM。我已经设置了一个机器文件复制任务,并试图让它指向正确的虚拟机,但似乎没有任何效果。它不断地返回错误:

2015-12-29T14:27:30.5763871Z ##[debug]Initiating copy on machine-name    
2015-12-29T14:27:57.0124127Z ##[debug]Finished copy operation on machine-name    
2015-12-29T14:27:57.0280368Z ##[debug]Deployment logs for copy operation on machine-name    
2015-12-29T14:27:57.0280368Z ##[debug]System.AggregateException: Failed to execute the powershell script. Consult the logs below for details of the error.    
2015-12-29T14:27:57.0280368Z System.Management.Automation.RuntimeException: Failed to connect to the path \\machine-name with the user username for copying. System error 53 has occurred.     
2015-12-29T14:27:57.0280368Z  The network path was not found.

我在上面的sn-p中更改了机器名和用户名。

我已遵循这些文章中的大部分步骤:

http://www.codewrecks.com/blog/index.php/2015/06/20/build-vnext-support-for-deploying-bits-to-windows-machines/

http://blogs.msdn.com/b/visualstudioalm/archive/2015/07/31/dev-test-in-azure-and-deploy-to-production-on-premises.aspx

但是我看不到 Azure 文件复制的选项,所以它不在窗口中。当我使用 PsPing 时,我可以在以特定 WinRM 端口 5985 为目标时从 TFS 服务器连接到目标 VM。

我不确定使用 TFS + Azure 是否可以实现我想要实现的目标,但我会想象这正是 Azure 所构建的场景类型?!

任何帮助将不胜感激。

编辑:这是添加步骤对话框:

【问题讨论】:

  • 您可以为此使用发布管理吗? Release Management vNext 支持 PowerShell 甚至更好,Release Management vNextNext 托管在 Visual Studio Team Services 中。
  • 似乎可以解决问题。谢谢,我明天研究一下。

标签: wpf azure deployment tfs


【解决方案1】:

您需要使用 Azure 文件复制 任务将文件复制到 Azure VM。打开构建定义,然后单击添加构建步骤... -> 转到添加任务对话框中的部署页面。然后您将找到 Azure 文件复制任务。见:

但是,你提到任务丢失了,你能把添加任务对话框的截图分享给我吗?

【讨论】:

  • 我已经编辑了我的原始帖子以显示添加新步骤对话框。我想知道 TFS 服务器是否缺少一些插件或其他东西。
  • @stuartmclark,要使用 Azure 文件复制任务,您需要将 TFS2015 升级到 TFS2015 更新 1。升级 TFS 服务器后,您将获得该任务。您可以获取更新:visualstudio.com/en-us/news/tfs2015-update1-vs.aspx
  • 啊,太好了。当我假期回来时,我会这样做。再次感谢。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-06-14
  • 2012-06-28
  • 2018-04-30
相关资源
最近更新 更多