Public/Get-MachineRole.ps1
function Get-MachineRole { <# .SYNOPSIS Returns a list of all machine roles .DESCRIPTION Returns a list of all machine roles for the current space .EXAMPLE PS C:\> Get-MachineRole Returns a list of all machine roles #> [CmdletBinding(DefaultParameterSetName = 'Parameter Set 1', SupportsShouldProcess = $false)] [Alias()] [OutputType([String[]])] Param () begin {} process { Test-OctopusConnection | Out-Null $repo._repository.MachineRoles.GetAllRoleNames() } end {} } |