自动化Windows Azure部署的最佳方法是什么?

时间:2023-01-20 20:39:19

Newbie to automated azure deployment here! I have the happy task of automating our deployment to the cloud. I have also done some reading and discovered that the 2 main tools are MSbuild and Powershell. Please could anyone tell me why i would use one over the other or indeed if there are any better ways to automate the deployment. Keeping in mind that my main concern is performance and i need this deplymrnt to be as fast as possible.

这里有自动天蓝色部署的新手!我有一个自动化部署到云的快乐任务。我也做了一些阅读,发现2个主要工具是MSbuild和Powershell。请有人能告诉我为什么我会使用其中一个,或者确实如果有更好的方法来自动部署。请记住,我的主要关注点是性能,我需要尽可能快地使用这个deplymrnt。

Any insight would be most welcome.

任何见解都会受到欢迎。

3 个解决方案

#1


9  

I'm a fan of using PowerShell for deployments. It's pretty quick to set up and the script can be pretty straight forward.

我是使用PowerShell进行部署的粉丝。设置起来非常快,而且脚本非常简单。

MSBuild can be great too. I use MSBuild from TFS Team Build to kick off a PowerShell script to do the deployment. Works like a champ.

MSBuild也很棒。我使用TFS Team Build中的MSBuild来启动PowerShell脚本来进行部署。像冠军一样工作。

A good starting point would be http://blogs.msdn.com/b/tomholl/archive/2011/12/06/automated-build-and-deployment-with-windows-azure-sdk-1-6.aspx. This blog does a great job of showing you how to build and deploy with Team Build.

一个很好的起点是http://blogs.msdn.com/b/tomholl/archive/2011/12/06/automated-build-and-deployment-with-windows-azure-sdk-1-6.aspx。此博客非常出色地向您展示如何使用Team Build进行构建和部署。

If you don't want/need the Team Build and MSBuild part, then just look at his PowerShell script. That covers the basics of getting a deployment from your dev environment to Windows Azure.

如果您不想/需要Team Build和MSBuild部分,那么只需查看他的PowerShell脚本即可。这涵盖了从开发环境部署到Windows Azure的基础知识。

#2


0  

You should use Web Deploy, it only takes about a minute to deploy a fix. See these links
http://blogs.msdn.com/b/cloud/archive/2011/04/19/enabling-web-deploy-for-windows-azure-web-roles-with-visual-studio.aspx
http://channel9.msdn.com/Blogs/funkyonex/Speed-Up-Azure-Deployments-with-the-New-Web-Deployment-Feature

您应该使用Web Deploy,部署修复程序只需要大约一分钟。请参阅这些链接http://blogs.msdn.com/b/cloud/archive/2011/04/19/enabling-web-deploy-for-windows-azure-web-roles-with-visual-studio.aspx http: //channel9.msdn.com/Blogs/funkyonex/Speed-Up-Azure-Deployments-with-the-New-Web-Deployment-Feature

#3


-1  

At SplendidCRM, we had a similar need to automate deployments to Azure, but as our need was to service our live customers, we had to develop using C#. We have been watching Azure for many years, but it was not until they provided a DNS service did it make sense to make the move. Using the Azure Resource Manager (ARM) libraries, we were able to automate VM creation, SQL database creation and DNS name creation. In addition to the Microsoft documentation for ARM, we found it particularly useful to be able to get the Microsoft source code for the PowerShell scripts that wrap ARM. This is because the documentation does not always provide a complete set of settings.

在SplendidCRM,我们有类似的需求自动部署到Azure,但由于我们需要为我们的现实客户提供服务,我们必须使用C#进行开发。我们多年来一直在关注Azure,但直到他们提供DNS服务才真正有意义。使用Azure资源管理器(ARM)库,我们能够自动创建VM,创建SQL数据库和创建DNS名称。除了ARM的Microsoft文档之外,我们发现能够获取包装ARM的PowerShell脚本的Microsoft源代码特别有用。这是因为文档并不总是提供一整套设置。

In the end, we decided to release the Azure deployment code as part of a new Ultimate edition that combines order and customer management with software deployment.

最后,我们决定将Azure部署代码作为新版Ultimate版本的一部分发布,该版本将订单和客户管理与软件部署相结合。

#1


9  

I'm a fan of using PowerShell for deployments. It's pretty quick to set up and the script can be pretty straight forward.

我是使用PowerShell进行部署的粉丝。设置起来非常快,而且脚本非常简单。

MSBuild can be great too. I use MSBuild from TFS Team Build to kick off a PowerShell script to do the deployment. Works like a champ.

MSBuild也很棒。我使用TFS Team Build中的MSBuild来启动PowerShell脚本来进行部署。像冠军一样工作。

A good starting point would be http://blogs.msdn.com/b/tomholl/archive/2011/12/06/automated-build-and-deployment-with-windows-azure-sdk-1-6.aspx. This blog does a great job of showing you how to build and deploy with Team Build.

一个很好的起点是http://blogs.msdn.com/b/tomholl/archive/2011/12/06/automated-build-and-deployment-with-windows-azure-sdk-1-6.aspx。此博客非常出色地向您展示如何使用Team Build进行构建和部署。

If you don't want/need the Team Build and MSBuild part, then just look at his PowerShell script. That covers the basics of getting a deployment from your dev environment to Windows Azure.

如果您不想/需要Team Build和MSBuild部分,那么只需查看他的PowerShell脚本即可。这涵盖了从开发环境部署到Windows Azure的基础知识。

#2


0  

You should use Web Deploy, it only takes about a minute to deploy a fix. See these links
http://blogs.msdn.com/b/cloud/archive/2011/04/19/enabling-web-deploy-for-windows-azure-web-roles-with-visual-studio.aspx
http://channel9.msdn.com/Blogs/funkyonex/Speed-Up-Azure-Deployments-with-the-New-Web-Deployment-Feature

您应该使用Web Deploy,部署修复程序只需要大约一分钟。请参阅这些链接http://blogs.msdn.com/b/cloud/archive/2011/04/19/enabling-web-deploy-for-windows-azure-web-roles-with-visual-studio.aspx http: //channel9.msdn.com/Blogs/funkyonex/Speed-Up-Azure-Deployments-with-the-New-Web-Deployment-Feature

#3


-1  

At SplendidCRM, we had a similar need to automate deployments to Azure, but as our need was to service our live customers, we had to develop using C#. We have been watching Azure for many years, but it was not until they provided a DNS service did it make sense to make the move. Using the Azure Resource Manager (ARM) libraries, we were able to automate VM creation, SQL database creation and DNS name creation. In addition to the Microsoft documentation for ARM, we found it particularly useful to be able to get the Microsoft source code for the PowerShell scripts that wrap ARM. This is because the documentation does not always provide a complete set of settings.

在SplendidCRM,我们有类似的需求自动部署到Azure,但由于我们需要为我们的现实客户提供服务,我们必须使用C#进行开发。我们多年来一直在关注Azure,但直到他们提供DNS服务才真正有意义。使用Azure资源管理器(ARM)库,我们能够自动创建VM,创建SQL数据库和创建DNS名称。除了ARM的Microsoft文档之外,我们发现能够获取包装ARM的PowerShell脚本的Microsoft源代码特别有用。这是因为文档并不总是提供一整套设置。

In the end, we decided to release the Azure deployment code as part of a new Ultimate edition that combines order and customer management with software deployment.

最后,我们决定将Azure部署代码作为新版Ultimate版本的一部分发布,该版本将订单和客户管理与软件部署相结合。