将应用程序部署到Azure虚拟机规模集 [英] Deploying app to Azure Virtual Machine scale set

查看:65
本文介绍了将应用程序部署到Azure虚拟机规模集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对将应用程序部署到天蓝色的虚拟比例尺集存在疑问.我使用来自

I have a question about deploying app to azure virtual scale set. I use an instruction from this blog.

我的问题是将图像发布为天蓝色,更具体地说是使用构建不可变图像"任务中的部署输入".

My problem is with release an image to azure and more specifically with Deployment Inputs in task "Build immutable image".

带有部署输入"部分的屏幕

当我尝试释放它时,我出现了一个错误:

And when I try to Release it I have an error:

 [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 \"?

How should the correct paths look? Setting as in the instructions from the blog results in the same error. What is this: "d:\a\r1\a\"?

好的.我已经解决了这个问题.它应该是:部署程序包 $(System.DefaultWorkingDirectory)/Proj/drop
部署脚本 Deploy/ubuntu/deployNodejsApp.sh

Ok. I have dealt with this problem. It should be: Deployment Package $(System.DefaultWorkingDirectory)/Proj/drop
Deployment script Deploy/ubuntu/deployNodejsApp.sh

但是还有第二个.在步骤构建不可变的图片"中,我遇到了一个错误:

But the there is a second one. In step "Buil immutable image" I have an error:

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脚本.

and it does not move on to the next step: Azure powershell script.

在我的azure存储帐户中,我有一个新的vhd文件,但是当我在模板中使用它创建比例尺集时,我仍然具有信息.使用库中OS映像的虚拟机比例尺集目前不支持连续交付.选择一个使用自定义映像的虚拟机规模集.

In my azure storage account I have new vhd file, but when I used it in template to create scale set I still have information 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.

推荐答案

我是博客文章的作者.您能否将syste.debug设置为true并共享日志?

I am the writer of the blog post. Can you please set the syste.debug to true and share the logs?

blog.devmatter.com/enabling-verbose-output-in-team-foundation-build-logs/

blog.devmatter.com/enabling-verbose-output-in-team-foundation-build-logs/

有两种方法可以部署到VM Scale Set.一种是使用不可变的VHD(博客讨论),另一种是使用自定义脚本扩展.

There are two ways to deploy to a VM Scale Set. One is by using immutable VHD (which the blog talks about) and other is by using custom script extension.

在不变VHD方法中,有两个要求:-VHD映像应包含在与在其中创建VM Scale Set的位置相同的存储帐户中-您尝试更新的VM Scale必须已使用自定义VHD(而非平台映像)创建.要使用不可变的VHD方法更新VMSS,可以使用以下博客文章创建VMSS:

In the immutable VHD approach there are two requirements: - The VHD image should be contained in a storage account which is in the same location as the VM Scale Set is created in - The VM Scale that you are trying to update must have been created by using a custom VHD and not a platform image. To use immutable VHD approach for updating VMSS you can create a VMSS by using the following blog posts:

我们正在支持通过使用平台映像创建的VMSS,并且更新应尽快发布.这种新方法将使用自定义脚本扩展名来帮助您更新应用程序.对于与VSTS相关的问题,您也可以在此处发布: https://developercommunity.visualstudio.com/spaces/21/index.html

We are working on supporting VMSS which were created by using platform image and the update should be out soon. This new approach will use custom script extension to help you update your apps. For VSTS related issues you can also post here: https://developercommunity.visualstudio.com/spaces/21/index.html

这篇关于将应用程序部署到Azure虚拟机规模集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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