Environments List

Dave DeBenedetto's Avatar

Dave DeBenedetto

21 Apr, 2017 03:22 PM

Hello,
I'm wondering if there's a way to get a tabular or .csv report of the Environments's contents; i.e. Each host and its deployment targets.
Thanks,
Dave

  1. Support Staff 1 Posted by Dalmiro Grañas on 21 Apr, 2017 04:01 PM

    Dalmiro Grañas's Avatar

    Hi Dave,

    Thanks for reaching out! If you use Octoposh you could run

    $allEnvironments = Get-OctopusEnvironments
    

    And then you can use $AllEnvironments and format it however you want. Each entry on it should look like this

    Name        : Dev
    Id          : Environments-1
    Machines    : {North, NY Polling 2, NY-Tentacle1, NY-Tentacle2...}
    Deployments : {Files, Powershell1, Emails, Powershell5...}
    Resource    : Octopus.Client.Model.EnvironmentResource
    

    Hope that helps!
    Dalmiro

  2. 2 Posted by hat07 on 21 Apr, 2017 05:15 PM

    hat07's Avatar

    didsamsung factory unlock work for j510fn now?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac