Tentacle.exe register-with multiple environments

In the servers UI, when adding a deploy target you can specify multiple environments. Reading the documentation for tentacle.exe help register-with, it says you can have multiple --role tags, but not --environment tags. Is there a reason for this? Can I not tag an instance with multiple environments when using an automated install script?

Hi Josh,

Thanks for reaching out. Your suggestion makes sense and I’ve added a github issue to see if we can implement it: https://github.com/OctopusDeploy/Issues/issues/2382

What you can currently do is use Tentacle.exe to create the Tentacle, remove the call to register-with and instead do it using the API. You can use this API script or this other cmdlet from the Octoposh module.

Hope that helps,
Dalmiro

Hi Josh,
Please see this link it will take you to the .ps1 which will allow you to do this, I have it in JSON format right now as I have it in my CloudFormation Template in AWS but will post the Actual .ps1 soon if you have trouble removing the JSON syntax.