List Machines in the Email Notifications

I’m following the documentation here:

Am I able to list the machines being deployed to? This could be either:

  1. Single list of machines that were deployed to in the release.
  2. List of machines that were deployed to in each step of the process.

Any ideas on how I should approach this?


Hi Jason,

Thanks for getting in touch! There is a variable that is only available in a step Octopus.Machine.Name. However you could use this to populate another variable in each step and use that in your email step.
That’s probably the only solution here. We do not keep the machine details around during the deployment.


Hi Vanessa,

How do I populate another variable in each step with Octopus.Machine.Name, aggregate it, and then use that variable in my email step?



Hi Tony,

Email steps do not have the capability to double resolve variables. The only option we have to perform something like this is to iterate through the different machines and values in the array. Below is an example of code to perform this:

#{each machine in Octopus.Action[Set Output Vars].Output}
  example #{machine.Notes}

We have a documentation page that briefly covers this in a way, I’ll link it below (See Output from multiple machines)

I will be happy to answer any further questions you may have about this.


Thanks, Daniel. I will give this a try.


Hi Tony,

No worries, let me know if you run into any more issues or have any further questions.