AZURE通过自动化部署启用Web部署 [英] Azure Enable Web Deploy via automated deployment

查看:91
本文介绍了AZURE通过自动化部署启用Web部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道一个自动化的方式来部署Web角色启用启用Web部署选项到Azure?我们有一个自动化的验收测试的过程,使用Web部署,以节省时间部署到Azure上。但是,我们也想自动化Web角色的全面部署,以便它可以不那么频繁的基础上运行的下班时间。

Does anyone know of an automated way to deploy a web role to Azure with the "Enable Web Deploy" option enabled? We have an automated acceptance test process that deploys to Azure using Web Deploy to save time. But we would also like to automate the full deployment of the web role so that it could run off-hours on a less frequent basis.

我们目前正在使用的WAPPSCmdlets模块全自动化的Azure部署。不过,这也不是新的官方Azure的PowerShell命令似乎都不暴露一个方法,使Web部署新的部署。

We are currently using the WAPPSCmdlets module to automate full Azure deployments. However, neither this nor the newer official Azure Powershell cmdlets seem to expose a way to enable Web Deploy in new deployments.

推荐答案

什么你需要做的是建立一个的启动任务,做以下内容:

What you'll need to do is create a startup task that does the following:


  1. 下载并安装<一href=\"http://download.microsoft.com/download/1/B/3/1B3F8377-CFE1-4B40-8402-AE1FC6A0A8C3/WebDeploy_amd64_en-US.msi\"相对=nofollow> Web部署
  1. Download and install Web Deploy
    • Windows Azure Bootstrapper can help you to download and run the installer from a startup task.

  • 从启动任务运行的PowerShell听起来有点棘手。如果你遇到麻烦,看看这篇文章:<一href=\"http://blogs.msdn.com/b/jimoneil/archive/2011/02/07/azure-startup-tasks-and-powershell-lessons-learned.aspx\"相对=nofollow>天青启动任务和PowerShell:吸取的教训

  • Running PowerShell from a startup task might seem tricky at first. If you run into trouble, take a look at this article: Azure Startup Tasks and Powershell: Lessons Learned

记住,这个启动任务应该只对CI的部署,而不是为您的生产部署,运行,所以这可能是你需要照顾在构建过程中(你可以在Visual Studio例如使用不同的云计算项目的东西)。

Keep in mind that this startup task should only run for CI deployments and not for your production deployments, so this might be something you need to take care of in your build process (you can use different Cloud projects in Visual Studio for example).

这篇关于AZURE通过自动化部署启用Web部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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