< Back

Add-AzDoReleasePipelineVariable

Sat Jan 18, 2020 7:37 pm

NAME Add-AzDoReleasePipelineVariable



SYNOPSIS

This commend provides accesss Release Pipeline Varaibles from Azure DevOps





SYNTAX

Add-AzDoReleasePipelineVariable [-AzDoConnection <AzDoConnectObject>] [-ApiVersion <String>]

[-ReleaseDefinitionName <String>] [-VariableName <String>] [-VariableValue <String>] [-EnvironmentName <String>]

[-Secret <Boolean>] [-VariableGroups <Int32[]>] [-Comment <String>] [-Reset] [-WhatIf] [-Confirm]

[<CommonParameters>]



Add-AzDoReleasePipelineVariable [-AzDoConnection <AzDoConnectObject>] [-ApiVersion <String>] [-ReleaseDefinitionId

<Int32>] [-VariableName <String>] [-VariableValue <String>] [-EnvironmentName <String>] [-Secret <Boolean>]

[-VariableGroups <Int32[]>] [-Comment <String>] [-Reset] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

The command will retrieve all of the variables in a specific release pipeline





PARAMETERS

-AzDoConnection <AzDoConnectObject>

Common Parameters



Required? false

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-ApiVersion <String>

Allows for specifying a specific version of the api to use (default is 5.0)



Required? false

Position? named

Default value $global:AzDoApiVersion

Accept pipeline input? false

Accept wildcard characters? false



-ReleaseDefinitionId <Int32>

The id of the release definition to update (use on this OR the name parameter)



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ReleaseDefinitionName <String>

The name of the release definition to update (use on this OR the id parameter)



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-VariableName <String>

Tha name of the variable to create/update



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-VariableValue <String>

The variable for the variable



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-EnvironmentName <String>



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Secret <Boolean>

Indicates if the vaule should be stored as a "secret"



Required? false

Position? named

Default value False

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-VariableGroups <Int32[]>

N/A



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Comment <String>

A comment to add to the variable



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Reset [<SwitchParameter>]

Indicates if the ENTIRE library should be reset. This means that ALL values are REMOVED. Use with caution



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



Add-AzDoReleasePipelineVariable -ProjectUrl https://dev.azure.com/<organizztion>/<project> -ReleaseDefinitionName

<release defintiion name> -VariableName <variable name> -VariableValue <varaible value> -Environment <env name>

-PAT <personal access token>















RELATED LINKS

https://github.com/ravensorb/Posh-AzureDevOps