operations/operations.psm1
Write-Verbose 'Importing from [D:\CODE\projects\Azure-Devops-PowerShell-Module\AzDevOps\AzDevOps\operations\operations]' # .GetOperation function Get-Operation { [CmdletBinding( HelpURI = 'https://github.com/Azure-Devops-PowerShell-Module/core/blob/master/docs/Get-AdoOperation.md#get-adooperation', PositionalBinding = $true)] [OutputType([Object])] param ( [Parameter(Mandatory = $true)] [Guid]$OperationId, [Parameter(Mandatory = $false)] [ValidateSet('5.1', '7.1-preview.1')] [string]$ApiVersion = '7.1-preview.1' ) begin { try { Write-Verbose "GetBuild : Begin Processing"; Write-Verbose " OperationId : $($OperationId)"; Write-Verbose " ApiVersion : $($ApiVersion)"; $ErrorActionPreference = 'Stop'; $Error.Clear(); # # Are we connected # if ($Global:azDevOpsConnected) { $Uri = $Global:azDevOpsOrg + "_apis/operations/$($OperationId)?api-version=$($ApiVersion)"; return (Invoke-AdoEndpoint -Uri ([System.Uri]::new($Uri)) -Method Get -Headers $Global:azDevOpsHeader -Verbose:$VerbosePreference); } } catch { throw $_; } } } Write-Verbose 'Importing from [D:\CODE\projects\Azure-Devops-PowerShell-Module\AzDevOps\AzDevOps\operations\operations.psd1]' Write-Verbose 'Importing from [D:\CODE\projects\Azure-Devops-PowerShell-Module\AzDevOps\AzDevOps\operations\operations.psm1]' |