0
votes

I'm using Azure Pipeline Agents on Machines and have those Machines in a Deployment Group and I have a DevOps Release which does some things on each machine. If the Azure Pipeline Agent isn't running on a machine at release time, the release will skip over this machine (see below image). How can I know which machines were skipped?

!]1

1
Do you get more details (logs) about the failed (skipped) if you click on the Failed area? It should take you to the machine level logs.Matt
it skipped because I stopped the agent on the machines, this is by design. I'm trying to write logic to handle how to respond to this. As such, I need to see if there is something in DevOps that will tell me which machines were skipped.Robert Green MBA
I guess from your question it wasn't clear on how you want to use the information about which one was skipped. If you click on the detailed logs for the failures, you will see the details about the ones that were specifically skipped. Does that not answer your question about "which ones were skipped?"Matt

1 Answers

2
votes

How can I know which machines were skipped?

The easiest way to check is that you can manually check the detailed deployment log.

For example:

enter image description here

Then you could get the skipped agent name.

On the other hand, you could also use the Rest API : Releases - Get Release. In the API response, you could check the Job Status and the Agent name.

Here is sample:

GET https://vsrm.dev.azure.com/{organization}/{project}/_apis/release/releases/{releaseId}?api-version=6.0

enter image description here