<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Automated Build and Deployment with Windows Azure SDK 1.6</title><link>http://blogs.msdn.com/b/tomholl/archive/2011/12/06/automated-build-and-deployment-with-windows-azure-sdk-1-6.aspx</link><description>A few months ago I posted on how to automate deployment of Windows Azure projects using MSBuild. While the approach documented in that post continues to work, Windows Azure SDK 1.6 has introduced some new capabilities for managing Windows Azure credentials</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Automated Build and Deployment with Windows Azure SDK 1.6</title><link>http://blogs.msdn.com/b/tomholl/archive/2011/12/06/automated-build-and-deployment-with-windows-azure-sdk-1-6.aspx#10253032</link><pubDate>Wed, 04 Jan 2012 13:43:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10253032</guid><dc:creator>Philip Coupar</dc:creator><description>&lt;p&gt;The build number was relatively easy. &amp;nbsp;You need to modify the MSBuild command in the teambuild workflow to include the buildnumber, this makes it available in the targets file and can be added to the script command.&lt;/p&gt;
&lt;p&gt;The problem with passing back the $Deployment.Url is that there are three layers of execution in this solution and to pass the value on to the MStest task in team build you would need to chain it through Powershell &amp;gt; MSbuild &amp;gt; teambuild. &amp;nbsp;I see no easy way of doing this and hope the product team reinstate the buildnumber by default being passed to MS build and create a mechanism for passing values back up to the teambuild workflow.&lt;/p&gt;
&lt;p&gt;I have the tear down script which I could execute after the test task in team build, but as it uses the publishsettings file I am not sure how to find the location of this file as I no longer have the context of the relevant project to get the path.&lt;/p&gt;
&lt;p&gt;Philip&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10253032" width="1" height="1"&gt;</description></item><item><title>re: Automated Build and Deployment with Windows Azure SDK 1.6</title><link>http://blogs.msdn.com/b/tomholl/archive/2011/12/06/automated-build-and-deployment-with-windows-azure-sdk-1-6.aspx#10248799</link><pubDate>Sat, 17 Dec 2011 05:31:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10248799</guid><dc:creator>Tom Hollander</dc:creator><description>&lt;p&gt;Hi Cesuz -&lt;/p&gt;
&lt;p&gt;When you download a .publishsettings file for a Live ID associated with multiple subscriptions, the the same management certificate is used for all of the subscriptions. If you want a different certificate for each, you should either log into a Live ID that is only associated with a single subscription, or you could manage the certificates manually. Either way you&amp;#39;ll still be able to use this build process.&lt;/p&gt;
&lt;p&gt;Tom&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10248799" width="1" height="1"&gt;</description></item><item><title>re: Automated Build and Deployment with Windows Azure SDK 1.6</title><link>http://blogs.msdn.com/b/tomholl/archive/2011/12/06/automated-build-and-deployment-with-windows-azure-sdk-1-6.aspx#10248583</link><pubDate>Fri, 16 Dec 2011 15:19:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10248583</guid><dc:creator>Cezus</dc:creator><description>&lt;p&gt;We have three subscriptions with hosted services on one Live ID, one for testing, one for release and one for RTM. Is it possible to use the solution described in this post, with for every subscription each an own management certificate? &lt;/p&gt;
&lt;p&gt;We have a third party company to manage our Build Server. They are willing to install what is described in this blogpost.&lt;/p&gt;
&lt;p&gt;Greetz,&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10248583" width="1" height="1"&gt;</description></item><item><title>re: Automated Build and Deployment with Windows Azure SDK 1.6</title><link>http://blogs.msdn.com/b/tomholl/archive/2011/12/06/automated-build-and-deployment-with-windows-azure-sdk-1-6.aspx#10246245</link><pubDate>Fri, 09 Dec 2011 22:25:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10246245</guid><dc:creator>Tom Hollander</dc:creator><description>&lt;p&gt;Hi Philip -&lt;/p&gt;
&lt;p&gt;Great questions. I&amp;#39;m far from being an MSBuild expert so I can&amp;#39;t fully answer your questions, but I can give some hints.&lt;/p&gt;
&lt;p&gt;1. This should be fairly easy. I think the build number is available through the $(BuildNumber) MSBuild variable. You should be able to pass this to the PowerShell script by modifying the AzureDeploy target and of course changing the PowerShell script to use this.&lt;/p&gt;
&lt;p&gt;2. I haven&amp;#39;t tried this but my understanding is that it&amp;#39;s going to be tricky. According to &lt;a rel="nofollow" target="_new" href="http://bartdesmet.net/blogs/bart/archive/2008/02/16/invoking-powershell-scripts-from-msbuild.aspx"&gt;bartdesmet.net/.../invoking-powershell-scripts-from-msbuild.aspx&lt;/a&gt;, &amp;quot;if one wants to feed back data from PowerShell to the MSBuild output for instance, a PSHost implementation would be required but that goes far beyond the scope of this post.&amp;quot;&lt;/p&gt;
&lt;p&gt;3. Tearing down an environment probably means stopping and deleting your Azure deployment, which is easy enough to do using the Azure Management API or via the PowerShell cmdlets. As you say, the trick is figuring out where to plug this code in.&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;
&lt;p&gt;Tom&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10246245" width="1" height="1"&gt;</description></item><item><title>re: Automated Build and Deployment with Windows Azure SDK 1.6</title><link>http://blogs.msdn.com/b/tomholl/archive/2011/12/06/automated-build-and-deployment-with-windows-azure-sdk-1-6.aspx#10246228</link><pubDate>Fri, 09 Dec 2011 22:04:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10246228</guid><dc:creator>Philip Coupar</dc:creator><description>&lt;p&gt;I am still trying to figure out three things.&lt;/p&gt;
&lt;p&gt;How do I pass in the TFS build number to use as the label for my deployment.&lt;/p&gt;
&lt;p&gt;How to I pass $Deployment.Url from the powershell script back to TeamBuild so it updates the testsettings for MStest&lt;/p&gt;
&lt;p&gt;How do I optionally configure a teardown script for my deployment after the test suite has run. &amp;nbsp;(this one I am sure will involve modifying the workflow) &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10246228" width="1" height="1"&gt;</description></item></channel></rss>