Mathias Olausson [MVP]

Archive for the ‘DevOps’ Category

New Swedish Microsoft ALM/DevOps Meetup

without comments


Together with other Swedish ALM MVPs and colleagues at Solidify we’ve decided it’s time kick off a Swedish Microsoft ALM/DevOps meetup! We plan to meet about once a month to discuss the concepts and ideas in our field.

The first meeting is on October 25 at the Solidify office in Stockholm. We’re very happy to have Jose Rady Allende, program manager on the Microsoft VSTS team, join us online to talk about the Microsoft Team Service Agile Transformation story. We’ll also going to have a couple of lightning talks on some cool features in VSTS.

Here’s the link to the  meetup: and make sure to join the group so you don’t miss the next meetup!

Written by Mathias Olausson

October 13th, 2016 at 9:00 pm

Posted in ALM,DevOps

Retain builds from Release Management

without comments

When releasing with Microsoft Release Manager “vNext” the linked builds don’t automatically get marked as retained forever. If you want to be able to re-deploy released builds you want to ensure the builds are not deleted by retention polices. It’s a good idea to let the release definition take care of this (at some point, perhaps in the release to production stage) and mark the released builds as retained.

Here’s a PowerShell script that gets the builds used in the release and set the “keep forever” flag on the builds:


You can use this from your release definition either by including the script in one of the build artifacts and reference it or using an in-line PowerShell script step:


Note: the script above works with an on-prem TFS (using default credentials), if you want to use it with VSTS you need to include an authentication header instead and pass a personal access token.

$username = “”
$basicAuth = (“{0}:{1}” -f $username,$password)
$basicAuth = [System.Text.Encoding]::UTF8.GetBytes($basicAuth)
$basicAuth = [System.Convert]::ToBase64String($basicAuth)
$headers = @{Authorization=(“Basic {0}” -f $basicAuth)}

Then replace the –UseDefaultCredentials with -headers $headers.

Get the complete script here (rename to .ps1).

Written by Mathias Olausson

June 27th, 2016 at 10:28 pm