Sunday 6 July 2014

Visual Studio Release Management

Do we need to manage software releases/deployments in a well planned methodology? Do we need to track the details of the releases/deployments? Do we need to have a proper rollback strategy if something goes wrong in a deployment to production? I could keep asking more and more questions like this related to the software release management, and always the answer would be “YES”.
So what are our options, in terms of Microsoft ALM set of tools. TFS Lab environments can be used, but can we use it for production releases automation? Yes, if the client is willing to provide trusted access to production environment, via TFS Lab environments. But in most cases client would not like this. To add more pain to this Lab environments deployments would over utilize the build servers, with long running deployments. The solution for all this pain is addressed well in, new Visual Studio 2013 Release Management.
First we need to understand “Why” we need to manage releases. This post in NorthWest Cadence provides great insight.
There are three major components in VS 2013 Release Management.
1. Release Management Server.
Set of windows and web services that act as the core part of the release management. There is a portal providing approval capability to the release check points, without having to install Release Management Client or Visual Studio.
2. Release Management Client.
Windows Presentation Foundation (WPF) application provide the interface to manage the releases and configurations of release management.
3. Deployment Agent
Resides in target servers in the environment and performs the deployment actions such as installing, uninstalling, configuration etc. of software components.
Each of above performs its own duty, and resides in different computers. Together they make deployment automation a possibility with all the visibility and traceability expected in proper Application Lifecycle Management process.
The following diagram extracted from VS 2013 Release Management Installation Guide provides overview of “How it works”.


Even though above picture shows TFS, it is not mandatory to have TFS for VS Release Management to work. If the TFS is available can be tightly integrated with it. If not it could obtain payload for the deployment from any accessible drop locations (UNC path). This means the deployment could be even something not developed with .Net .
Below diagram from VS 2013 Release Management Installation Guide  explains communication between components of release management.


The most important thing here is the Deployment Agent is downloading the components for deployment as a pull request. Nothing is pushed from Release Management Server to Deployment Agent. This enables the possibility of Release Management Server not requiring access to Production environments. Deployment Agent notify Release Management Server it’s availability via heartbeat.

Let’s start our journey to explore Visual Studio Release Management by setting up an environment step by step, with my series of blog posts in next few weeks.
1. Setup Release Management Server.
2. Setup Release Management Client.
3. Setup Deployment Agent.
4. Configure SMTP.
5. Configure TFS Connection
6. Setup Stage Types.
7. Setup Servers & Environments.
8. Setup Release Path.
9. Demo Release Template - Part 1.
10. Demo Release Template - Part 2.


Unknown said...

Release Management provides a continuous deployment solution that makes release cycles repeatable, visible, and more efficient by automating deployments through every environment from test to production. What is Application Packaging

Anonymous said...

Excellent Post! It helps me lot to configure Release Management.. Thanks :)

Tushar said...


I have installed RM Server on the same VM as of TFS server.
I am able to browse Url http://localhost:1000/ReleaseManagement with Service account ( TFS VM )
But when I try to browse the same RM web Url from a different VM and with different user it throws 403 Forbidden Error.

Note : All the machines are on the same Domain

Could you please help to know, why it gives error as 403 - Forbidden: Access is denied

Thanks in Advance !!

Chaminda Chandrasekara said...

Hi Tushar
Have you allowed port 1000 from your server?
In addition to that set the release management web config in C:\Program Files (x86)\Microsoft Visual Studio 12.0\Release Management\web\web.config

<setting name="MaxReceivedMessageSize" serializeAs="String">
<setting name="ActiveDirectoryServiceRef_ActiveDirectoryService"
<setting name="ConfigurationServiceRef_ConfigurationService"
<setting name="DeploymentControllerServiceRef_DeploymentControllerService"
<setting name="FileTransferServiceRef_FileTransferService" serializeAs="String">
<setting name="ListProviderServiceRef_ListProviderService" serializeAs="String">
<setting name="NotificationServiceRef_NotificationService" serializeAs="String">
<setting name="TfsServiceRef_TfsService" serializeAs="String">
<setting name="LoggerServiceRef_LoggerService" serializeAs="String">
<setting name="UpdaterServiceRef_UpdaterService" serializeAs="String">
<setting name="ApprovalRequestEmailLanding" serializeAs="String">
<setting name="ServiceBaseUrl" serializeAs="String">

If you are setting up https you need additional steps

Popular Posts