Skip to content

Latest commit

 

History

History
74 lines (46 loc) · 1.37 KB

Update-VSTeamRelease.md

File metadata and controls

74 lines (46 loc) · 1.37 KB

Update-VSTeamRelease

SYNOPSIS

SYNTAX

DESCRIPTION

EXAMPLES

Example 1

Set-VSTeamAccount -Account mydemos -Token $(System.AccessToken) -UseBearerToken
$r = Get-VSTeamRelease -ProjectName project -Id 76 -Raw
$r.variables.temp.value='temp'
Update-VSTeamRelease -ProjectName project -Id 76 -release $r

Changes the variable temp on the release. This can be done in one stage and read in another stage.

Example 2

Set-VSTeamAccount -Account mydemos -Token $(System.AccessToken) -UseBearerToken
$r = Get-VSTeamRelease -ProjectName project -Id 76 -Raw
$r.variables | Add-Member NoteProperty temp([PSCustomObject]@{value='test'})
Update-VSTeamRelease -ProjectName project -Id 76 -release $r

Adds a variable temp to the release with a value of test.

PARAMETERS

Id

The id of the release to update

Type: Int32
Required: True
Accept pipeline input: true (ByPropertyName)

Release

The updated release to save in AzD

Type: PSCustomObject
Required: True

INPUTS

OUTPUTS

vsteam_lib.Release

NOTES

RELATED LINKS