< Back

Remove-AzDoBuildPipelineVariable

Sat Jan 18, 2020 7:41 pm

NAME Remove-AzDoBuildPipelineVariable



SYNOPSIS

Remove a variable/value to the specified Azure DevOps build pipeline





SYNTAX

Remove-AzDoBuildPipelineVariable [-AzDoConnection <AzDoConnectObject>] [-ApiVersion <String>]

[-BuildDefinitionName <String>] -VariableName <String> [-All] [<CommonParameters>]



Remove-AzDoBuildPipelineVariable [-AzDoConnection <AzDoConnectObject>] [-ApiVersion <String>] [-BuildDefinitionId

<Int32>] -VariableName <String> [-All] [<CommonParameters>]





DESCRIPTION

The command will remove a variable to the specified Azure DevOps build 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



-BuildDefinitionId <Int32>

The id of the build 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



-BuildDefinitionName <String>

The name of the build 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? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-All [<SwitchParameter>]

Remove all variables in the variable group (VariableName is ignored when this is set)



Required? false

Position? named

Default value False

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-AzDoBuildPipelineVariable -BuildDefinitionName <build defintiion name>-VariableName <variable name>















RELATED LINKS

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