Skip Machines Failing Health Checks

Is there any setting/automated way to prevent a push to a machine that is failing a health check?

I am hoping to toggle machines in and out of an environment based on a custom health check. The problem is the deploy still pushes to the failing machine

Hi,

Thanks for reaching out. You can run a Health Check as the first step of the deployment so Octopus can remove from the list of targets any machine that didn’t pass the check. You can read more about this in the Including and excluding targets during a deployment section of the below doc:

http://docs.octopusdeploy.com/display/OD/Deploying+to+transient+targets

Regards,
Dalmiro

Thanks! That is exactly what I was looking for.