简体   繁体   English

将应用程序部署到Azure虚拟机规模集

[英]Deploying app to Azure Virtual Machine scale set

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". 我的问题是要释放图像以使它们蔚蓝,更具体地说,是使用任务“构建不可变图像”中的部署输入。

Screen with my Deployment Inputs section 屏幕显示“我的部署输入”部分

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..`

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\\"? 这是什么:“ d:\\ a \\ r1 \\ a \\”?

EDIT: 编辑:

Ok. 好。 I have dealt with this problem. 我已经解决了这个问题。 It should be: Deployment Package $(System.DefaultWorkingDirectory)/Proj/drop 它应该是:部署包$(System.DefaultWorkingDirectory)/Proj/drop
Deployment script Deploy/ubuntu/deployNodejsApp.sh 部署脚本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

and it does not move on to the next step: Azure powershell script. 并且不会继续进行下一步:Azure powershell脚本。

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. 在我的azure存储帐户中,我有一个新的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. 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.

I am the writer of the blog post. 我是博客文章的作者。 Can you please set the syste.debug to true and share the logs? 您能否将syste.debug设置为true并共享日志?

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

There are two ways to deploy to a VM Scale Set. 有两种方法可以部署到VM Scale Set。 One is by using immutable VHD (which the blog talks about) and other is by using custom script extension. 一种是使用不可变的VHD(博客谈论),另一种是使用自定义脚本扩展。

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. 在不可变的VHD方法中,有两个要求:-VHD映像应包含在与创建VM Scale Set相同的位置的存储帐户中-尝试更新的VM Scale必须通过以下方式创建:使用自定义VHD而不是平台映像。 To use immutable VHD approach for updating VMSS you can create a VMSS by using the following blog posts: 要使用不可变的VHD方法更新VMSS,您可以使用以下博客文章来创建VMSS:

We are working on supporting VMSS which were created by using platform image and the update should be out soon. 我们正在努力支持通过使用平台映像创建的VMSS,并且更新应尽快发布。 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 对于与VSTS相关的问题,您也可以在此处发布: https : //developercommunity.visualstudio.com/spaces/21/index.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM