Continuous deployment to Azure with TFS 2012 Update 2

I do not use the TFS service (Preview / Online). I am running TFS 2012 Update 2 in-place and trying to deploy Azure Service, which contains the network and worker roles. I also use Azure SDK 2.0.

I tried endlessly so that the deployment worked with the AzureContinuousDeployment.11 template. However, despite all my efforts and what I read on the Internet, it seems that this template is only used when using the TFS (Online / Preview) service, and not for local TFS.

I now ventured onto the path, as suggested by http://blogs.msdn.com/b/tomholl/archive/2011/12/06/automated-build-and-deployment-with-windows-azure-sdk-1- 6.aspx and http://www.justaprogrammer.net/2012/10/18/continuous-integration-with-windows-azure-sdk-1-7-powershell-and-tfs-build-too/ . I just started the process, so I’m not working yet. However, looking at all the steps that need to be taken, I can not help and pause for a moment and think: "Is there a better way?". We are on TFS 2012 Update 2, TFS Preview was not available, there should be an easier way to do this.

What are the suggested steps / processes required to continuously push the Azure solution to the cloud as part of TFS?

Any suggestions?

+4
source share
2 answers

The problem is that the Azure SDK 2.0 is not already running on the TFS Online Build, see also: http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/3932152-install-windows-azure-2 -0-0-0-sdk-on-the-https-t .

0
source

Here are two fixes that TFS supported to make this work on my TFS on the room controller.

This only happens with Azure cloud services and only with the built-in build machine.

You will need to update the template and add quotes around the publishdir parameter in the “Install the project to create CSPack” section in the workflow and check the template again.

String.Format ("/ t: {0}: Publish / p: PublishDir =" "{1} /app.publish/" "{2}", ccprojName, outputDirectory, MSBuildArguments)

To fix the assembly loading error, you need to copy

"C: \ Program Files \ Microsoft SDK \ Windows Azure.NET SDK \ 2012-06 \ bin \ Microsoft.WindowsAzure.StorageClient.dll"

For

C: \ Program Files \ Microsoft Team Foundation Server 12.0 \ Tools

On the build machine and restart the service.

Let me know if this does not work for you.

0
source

Source: https://habr.com/ru/post/1480767/


All Articles