Is it possible to run a powershell script when scaling in servers before the instance is terminated? If so are there any examples of how to achieve this?
Scenario: I am planning on AutoScaling servers based on CPU. I am automatically provisioning them into an Octopus Deploy environment (Continuous Deployment) but before they are terminated I need to unregister the instance with Octopus via a HTTP Post.