VstsRestApiHelpers

3.29.4.260203

Tools and functions to assist in calling VSTS REST APIs.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name VstsRestApiHelpers

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name VstsRestApiHelpers

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2017-2026 Microsoft. All rights reserved.

Package Details

Author(s)

  • Michael J. Lyons (XBOX)

Functions

Test-PowerShellCore Test-Verbose assert Resolve-LogMessageMask Write-Log Set-VrahLoggerFunction Write-ErrorLog Write-RestErrorLog Write-VerboseLog Write-WarningLog Repair-DeserializedDate Repair-DeserializedDatesRecursive ConvertFrom-JsonInternal Get-ScriptLineNumber Write-InvocationLog Convert-TabsToSpaces Invoke-LoggedWebRequestTry Set-VstsRestApiProxy Get-VstsRestApiProxy Invoke-LoggedWebRequest Unprotect-SecureString Convert-StringToSecureString Test-Git Test-InsideGitWorkingTreeSlow Test-InsideGitWorkingTree Get-VrahLocalDependenciesRoot Test-VrahUsingLocalDependencies Get-VrahExternalDependenciesRoot Get-NugetTargetFolder Install-Nuget Add-MsalResolver Remove-MsalResolver Test-TShell Add-TShellMsal Add-Msal Remove-Msal Remove-VstsRestApiHelpersDownloads Get-CurrentGitBranch Get-GitFolder Get-CurrentGitBranchFast Get-VrahInternalLdapTimeout Set-VrahInternalLdapTimeout Get-CurrentUserEmailAddress Expand-Token Test-AuthObject Test-Token Get-AzureAppRegConsentUrl Set-VrahTenantId Get-VrahTenantId Get-EntityParams Merge-Hashtables Set-VrahUseDesktopFeatures Get-VrahUseDesktopFeatures Convert-AuthTokenToHttpHeaders Convert-AuthObjectToHttpHeaders New-MsalAuthToken New-GitPersonalAccessTokenObject New-GitPersonalAccessToken Test-CanSerializeSecureStrings Get-AuthTokenName Get-VrahInternalCacheFolder Get-AuthObjectCacheFileName Import-CachedAuthObject Export-CachedAuthObject Get-CachedAuthObject Get-CachedAuthToken Get-CachedAccessToken Clear-CachedAuthToken Resolve-RemoteOriginUrl Convert-RemoteOriginUrl Test-RemoteOriginUrl Resolve-AccountNameProjectRepo Get-CurrentGitRepo New-AccountUrl New-ProjectUrl New-TeamUrl New-RepoUrl Get-AzureDevOpsUrl New-BuildUrl New-TokensUrl Enable-DefaultAuthTimeout Disable-DefaultAuthTimeout Set-Headers Get-Headers Get-SelfContainedHeaders Get-SelfContainedHeaders2 Get-RepositoryGuidCacheFile Get-RepositoryGuidCache Set-RepositoryGuidCache Get-Repository Get-Project Get-RepositoryGuid Get-ProjectGuid Clear-RepositoryCache Get-Repositories Update-GitRepo Get-PullRequest Wait-PullRequest Resume-PullRequestMerge Get-PullRequestDetails Get-PullRequestThreads Get-PullRequestThread New-PullRequestThread Add-PullRequestThread Get-PolicyConfigurations Get-PolicyTypes Get-PolicyEvaluations Get-PolicyRevisions Get-ProjectIterations Expand-ConflictFileData Get-PullRequestConflicts Get-Blob Resolve-PullRequestConflict Get-PullRequestIterations Get-PullRequestCommits Get-PullRequests New-PullRequest New-PullRequestStatus Get-PullRequestStatus Remove-PullRequestStatus Approve-PullRequest Remove-PullRequest Publish-PullRequest Complete-PullRequest Set-PullRequest Set-PullRequestAutoComplete Update-PullRequestDescription Get-RawIdentity Resolve-Identity Get-ReviewerIdInternal Clear-ReviewerIdCache Get-ReviewerId Get-TeamNode Get-TeamAreaPath Find-RecursiveTeamFromAreaPathInternal Find-TeamFromAreaPath Get-WorkIterationsList Get-TeamsList New-Attachment Add-AttachmentToWorkItem New-WorkItemAttachment Add-PullRequestReviewerByGuid Add-PullRequestReviewerByOriginId Add-PullRequestReviewers Connect-WorkItemPullRequest Get-PullRequestWorkItems Get-WorkItemById Get-WorkItemsBatch Get-PagedWorkItemsBatch Get-WorkItemTypes Get-Attachment New-WorkItemRaw New-WorkItemInternal Connect-ParentWorkItem New-Task New-Bug New-Deliverable New-TaskGroup Resolve-WorkItem Set-WorkItem Set-WorkItemBatch Set-TaskState Set-WorkItemTitle Set-WorkItemOriginalEstimate Set-WorkItemRemainingDays Set-WorkItemCost Move-WorkItem Close-WorkItem Get-Board Get-Boards Get-PersonalAccessToken Revoke-PersonalAccessToken New-PersonalAccessToken Get-BranchFile Get-BranchFileBinary Get-BranchFileBatch Get-BranchFileList Get-BranchTextFileAsStringArray Resolve-RepoPathCase New-PushCommit Get-Pushes Get-Push New-Branch Remove-Branch Remove-Branches New-MultiFilePushCommit Get-GitCommitById Get-GitCommitsBatchById Get-GitCommits Get-FullCommitId Get-CommitsBatch Get-FileCommits Get-CommitDetails Get-CommitChanges Get-BranchFileAtTimeStamp Get-RepoVersion Get-Queries Get-QueryResults Get-QueryInfo Get-QueryWiql Set-QueryWiql Get-WiqlQueryResults Get-CompiledQueryResults Get-GitBranchInfo Get-GitBranchHead Get-GitBranchHeadAtTime Get-GitBranches Get-GitBranchList New-AnnotatedTag Get-AnnotatedTag Get-Refs Get-AllRefs Get-FavoriteBranches New-FavoriteBranch Test-FavoriteBranch Remove-FavoriteBranchById Remove-FavoriteBranch Get-ProjectServiceConnections Get-OfficialBranch Get-CommitPullRequests Get-CommitPullRequest Get-Creator Get-VsoConfigUrl Get-VsoLabelUrl Get-VsoFileUrl Get-VsoBranchHistoryUrl Get-VsoQfeUrl Get-VsoPullRequestUrl Get-VsoCommitUrl Get-VsoWitUrl Get-VsoSearchUrl Get-VsoDiffUrl Get-VsoPushUrl Get-VsoServiceConnectionUrl Get-VsoIntegrationUrl Get-VsoPipelineRunUrl Get-VsoAadAppRegUrl Get-VsoAzureSubscriptionUrl Get-AllCommitPullRequestsRecursive_Internal Get-AllCommitPullRequests Get-CommitPullRequestList Get-FileOwnership Get-MergeBase Get-AzureDevOpsBuild New-AzureDevOpsBuild Get-AzureDevOpsBuildList Get-AzureDevOpsBuildDefinitions Get-AzureDevOpsBuildDefinition Get-AzureDevOpsBuildChanges Get-AzureDevOpsBuildArtifactList Get-AzureDevOpsBuildArtifactFile Convert-BomByteArrayToString Get-Encoding Get-CherryPick New-CherryPick Get-BranchLabelsInternal Get-BranchLabels Search-Code Get-GitDiffs Get-BranchRepoInfo Reset-BranchToCommit Get-Lkg Get-UnapprovedPullRequests Get-GitStatus Get-AzureSubscriptionKeyVaults Convert-Base64UrltoBase64 Convert-Base64toBase64Url Get-AkvCertificates Get-AkvCertificatesAll Get-AkvCertificate Get-AkvPfxCertificate Remove-AkvCertificate Import-AkvCertificate Read-PemFile Update-AkvCertificate Get-AkvSecrets Get-AkvSecretsAll Get-AkvSecret Get-AkvList Set-AkvSecret Remove-AkvSecret Get-AkvSecretVersions Get-AkvKey Unprotect-AkvKey Protect-AkvKey Import-AkvKey Get-AkvSignature Test-AkvSignature Get-AkvKeys Get-AkvKeyVersions Get-AzureStorage Get-TestCase Copy-TestPlan New-TestPlan New-TestSuite Invoke-Pipeline Invoke-PipelineEx Get-PipelineRuns Get-PipelineRun Get-PipelineArtifacts Get-Pipelines Get-Pipeline New-Pipeline ConvertFrom-HexString ConvertTo-HexString Invoke-MsGraphApi Get-MsGraphUser Get-MsGraphUserDirectReports Get-MsGraphManagersTeamInternal Get-MsGraphManagersTeamRecurse Get-MsGraphUserManager Get-MsGraphUserMemberOf Get-MsGraphGroup Get-MsGraphGroupMembers Get-MsGraphGroupMemberOf Get-MsGraphGroupOwners Get-AzureAppRegistration Get-AzureServicePrincipal Get-AzureOwnedObjects Get-AzureAppRegistrationOwners New-AzureAppRegistrationOwner Remove-AzureAppRegistrationOwner Get-AzureServicePrincipalOwners New-AzureServicePrincipalOwner Remove-AzureServicePrincipalOwner Get-AzureAppRegKeyCredentials New-AzureAppRegKeyCredential Remove-AzureAppRegKeyCredential ConvertFrom-PropertyListInternal Get-EsGraphDropDfs Get-EsGraphFilteredBuilds Get-EsGraphBuilds Get-EsGraphBranchChunk Get-EsGraphBuildChunk Get-CachedMsGraphUser Get-ServiceTreeBaseUrl Get-ServiceTreeCatalogBaseUrl Invoke-ServiceTreeApi Invoke-ServiceTreeCatalogApi Get-ServiceTreeServicesForCurrentUser Get-ServiceTreeService Get-ServiceTreeRepos Get-ServiceTreeAzureSubscriptions Get-ServiceTreePrimaryDevOwner Get-ServiceTreePrimaryPMOwner Get-ServiceTreeCatalogAadApps Get-DiscoverServiceBaseUrl Get-ArtifactServicesBaseUrl Invoke-DiscoverServiceQuery Get-DiscoverServiceBuild Invoke-ArtifactServicesQuery Get-ArtifactServicesDrops Get-ArtifactServicesDropInfo Get-ArtifactServicesDropRetentions Add-ArtifactServicesDropRetention Set-VrahClipboardFunctions Get-VrahExternalDependenciesList Initialize-VstsRestApiHelpers

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

FileList

Version History

Version Downloads Last updated
3.29.4.260203 (current version) 3 2/4/2026
3.29.2.250122 8 2/3/2026