Skip to main content

Team Service & TFS - Release Management and Multiple Environment Support

I was impressed to discover a new feature on Team Service and TFS 2015 - Release Management.
Release Management allow us two things that can improve our release procedures:
  • Define multiple environments and push the binaries (content) from one environment from another
  • Request manual approve before pushing the packages from one environment to another
Environments Definition
Once the CI finish the build, we can specify in what environment we want to push the output. Once the content is pushed to a specific environment, we can run any kind of steps, from simples once like Integration Tests to more complex one, where people interaction is required. 
Team Service support us to define one or more release definitions. Each release definitions represents the tasks that needs to be run on each environment. It can be a simple script that change a version, or adding/removing content from the build. In the end can be any action that needs to be executed when we deploy content to a specific environment.  

From one another we can push the content to another environment once:
  • The build is with success 
  • Time scheduler
  • Success of a previous deployment
The nice thing is that we can add a new environment directly from the UI. For each env. we can specify what are the tasks that we want to execute. Don't forget that once you defined an environment it might be more easily to clone the current environment and modify it based on your needs. Usually, at steps that needs to be executed on each environment there is a delta, but you might have some steps that are common.

On top of this we can deploy in the same time the output of a build or from another environment to one or multiple environments. This means that you can deploy in two env. (QA and Pre1Production). A similar thing that can be done on the other side - push the package to an env only of we are 'green' on multiple env.

For each environment we can have variables. In this way we can have different configuration for each separate env. From the usability perspective, the nice thing is that the list of variables that are defined contains also the value for all environment. In this way it is very easy to check or to compare what values are set.
From the security perspective, we are allowed to specify what users or group of users has access to each env. In this way you can have the dev. env. where only devs can access it n QA env. where only the testing team can access it. And so on other environments. 

Manual Approve
There are times when you cannot configure an automatic mechanism to deploy from one env. to another. Very often, you need a person that decided if a build goes to pre-production for example. Or you need to QA Lead to decide if the current build that is deployed in the QA Environment can go to the next environment or not.
For this kind of scenarios, we are allowed to specify that there is a need of a manual release approval. A list of persons or a group needs to be specified. This persons can approve a deployment before beeing push to it or after is deployed (pre/post-deployment approve).
In this way we can ensure that only if a specific person approves a release, the content is pushed to Pre-production or even to Production environment. 

On top of this you can specify a list of people that needs to approve the action. The options in this case are:
  • Any one user
  • All users in sequential order
  • All users in any order
In this way you can map any process flow and gates over it.

Conclusion
From a DevOps point of view, more and more features are added to TFS each month. With features like this, even complex flows and procedures can be mapped easily.

Comments

Popular posts from this blog

Windows Docker Containers can make WIN32 API calls, use COM and ASP.NET WebForms

After the last post , I received two interesting questions related to Docker and Windows. People were interested if we do Win32 API calls from a Docker container and if there is support for COM. WIN32 Support To test calls to WIN32 API, let’s try to populate SYSTEM_INFO class. [StructLayout(LayoutKind.Sequential)] public struct SYSTEM_INFO { public uint dwOemId; public uint dwPageSize; public uint lpMinimumApplicationAddress; public uint lpMaximumApplicationAddress; public uint dwActiveProcessorMask; public uint dwNumberOfProcessors; public uint dwProcessorType; public uint dwAllocationGranularity; public uint dwProcessorLevel; public uint dwProcessorRevision; } ... [DllImport("kernel32")] static extern void GetSystemInfo(ref SYSTEM_INFO pSI); ... SYSTEM_INFO pSI = new SYSTEM_INFO(...

How to audit an Azure Cosmos DB

In this post, we will talk about how we can audit an Azure Cosmos DB database. Before jumping into the problem let us define the business requirement: As an Administrator I want to be able to audit all changes that were done to specific collection inside my Azure Cosmos DB. The requirement is simple, but can be a little tricky to implement fully. First of all when you are using Azure Cosmos DB or any other storage solution there are 99% odds that you’ll have more than one system that writes data to it. This means that you have or not have control on the systems that are doing any create/update/delete operations. Solution 1: Diagnostic Logs Cosmos DB allows us activate diagnostics logs and stream the output a storage account for achieving to other systems like Event Hub or Log Analytics. This would allow us to have information related to who, when, what, response code and how the access operation to our Cosmos DB was done. Beside this there is a field that specifies what was th...

Cloud Myths: Cloud is Cheaper (Pill 1 of 5 / Cloud Pills)

Cloud Myths: Cloud is Cheaper (Pill 1 of 5 / Cloud Pills) The idea that moving to the cloud reduces the costs is a common misconception. The cloud infrastructure provides flexibility, scalability, and better CAPEX, but it does not guarantee lower costs without proper optimisation and management of the cloud services and infrastructure. Idle and unused resources, overprovisioning, oversize databases, and unnecessary data transfer can increase running costs. The regional pricing mode, multi-cloud complexity, and cost variety add extra complexity to the cost function. Cloud adoption without a cost governance strategy can result in unexpected expenses. Improper usage, combined with a pay-as-you-go model, can result in a nightmare for business stakeholders who cannot track and manage the monthly costs. Cloud-native services such as AI services, managed databases, and analytics platforms are powerful, provide out-of-the-shelve capabilities, and increase business agility and innovation. H...