我有一个关于将应用程序部署到 azure 虚拟规模集的问题。
我使用来自的指令this https://blogs.msdn.microsoft.com/devops/2017/05/15/deploying-applications-to-azure-vm-scale-sets/ blog.
我的问题是将图像发布到天蓝色,更具体地说是任务“构建不可变图像”中的部署输入。
包含我的部署输入部分的屏幕 https://i.stack.imgur.com/VYDZo.png
当我尝试释放它时出现错误:
[error]Error happened while `initializing task: Not found any file matching pattern: d:\a\r1\a\Proj\ under root folder: d:\a\r1\a..`
正确的路径应该是什么样的?
按照博客中的说明进行设置会导致相同的错误。
这是什么:“d:\a\r1\a\”?
EDIT:
好的。我已经处理过这个问题了。
它应该是:
部署包$(System.DefaultWorkingDirectory)/Proj/drop
部署脚本Deploy/ubuntu/deployNodejsApp.sh
但还有第二个。
在“构建不可变图像”步骤中,我遇到错误:
2017-08-18T13:34:56.6852114Z ##[error]Error: d:\a\_temp\1503062745199\packer\packer.exe failed with return code: 1
2017-08-18T13:34:56.6992118Z ##[section]Finishing: Build immutable image
它不会继续进行下一步:Azure powershell 脚本。
在我的天蓝色存储帐户中,我有新的 vhd 文件,但是当我在模板中使用它来创建规模集时,我仍然有信息Continuous Delivery is currently not supported on Virtual machine scale sets which use OS images from gallery. Choose a virtual machine scale set which uses a custom image.