从TFS将WPF应用程序构建部署到Azure上的VM

时间:2015-12-29 14:55:36

标签: wpf azure deployment tfs

我想基本上将bin文件夹部署到Azure上托管的VM。我想从我的TFS 2015 Server部署到Azure 7中托管的Window 7 VM。我已经设置了一个机器文件复制任务,并尝试让它指向正确的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.

我在上面的代码段中更改了机器名称和用户名。

我已经按照这些文章中的大部分步骤进行了操作:

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为其构建的场景类型?!

非常感谢任何帮助。

编辑:这是添加步骤对话框: enter image description here

1 个答案:

答案 0 :(得分:0)

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

enter image description here

但是,您提到缺少任务,是否可以与我分享ADD TASKS对话框的屏幕截图?

相关问题