Is it possible to automatically deploy to a deployment target either when the target becomes available based on the standard health checks, or by running a custom PowerShell health check?
Basically I want all code to be deployed as soon as the health check passes?
Thanks for getting in touch! It looks like you are after out Triggers feature. We have a documentation page which covers this feature in detail. Essentially, a Trigger can be configured on your project to watch for certain events and start a deployment when they occur.
The most recent successful deployment of this project for each environment/tenant combination will be requeued to any machines that match the trigger criteria.
From our above documentation page
For the majority of cases where you want to auto-deploy your project as new deployment targets become available, we advise you use only the Machine becomes available for deployment event group.
Does this look like what you are after?
If you have any questions here or run into any issues, please let me know.