tfsazure-devops-server-2020

Azure DevOps Server deployment groups and tags


I'm not sure if I've stumbled across a bug or whether I am simply misinformed about how deployment groups / tags work in Azure DevOps Server 2020.

I've created a new release pipeline and configured the VSTS agent across all our servers. Each server has been configured with a tag depending on its use e.g. ServerA = WebServer1, ServerB = WebServer2.

When I add a deployment group phase to my release definition, select the deployment group and then enter the required tags i.e. WebServer1 and WebServer2, I see the message below:

No Machine Targets in WebServer deployment group

As soon as I remove the secondary tag, then it allows me to deploy to WebServer1.

Is this expected, as I am trying to deploy my release to multiple servers in my WebServer deployment group and don't want to create another environment just to deploy to WebServer2.


Solution

  • Currently when you use the Required tags to filter the Deployment groups targets in a job in Release, the target needs to match all Required tags, then the target could be used in deploy.

    Thanks for taking time to share your suggestion. Here is an existing suggestion ticket with the same requirement in Developer Community. You can vote and track this ticket.