< Back

Import-AzDoVariableGroupVariables

Sat Jan 18, 2020 7:40 pm

NAME Import-AzDoVariableGroupVariables



SYNOPSIS

Import variables from a CSV file into an Azure DevOps Library





SYNTAX

Import-AzDoVariableGroupVariables [[-AzDoConnection] <AzDoConnectObject>] [[-ApiVersion] <String>] [-CsvFile]

<String> [-VariableGroupName] <String> [[-EnvironmentNameFilter] <String>] [-Reset] [-Force] [<CommonParameters>]





DESCRIPTION

This command will import all the variables in a CSV into a specific Azure DevOps Library





PARAMETERS

-AzDoConnection <AzDoConnectObject>

Common Parameters



Required? false

Position? 1

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? 2

Default value $global:AzDoApiVersion

Accept pipeline input? false

Accept wildcard characters? false



-CsvFile <String>

The path to the CSV file. Format is: Variable, Value, Env, Secret)



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-VariableGroupName <String>

The name of the variable group in the library to import the values into



Required? true

Position? 4

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-EnvironmentNameFilter <String>

This is an option parameter and is used to file the variables that are imported by environment (can also be a

* for a wild card)



Required? false

Position? 5

Default value *

Accept pipeline input? false

Accept wildcard characters? false



-Reset [<SwitchParameter>]

Indicates if the ENTIRE variable 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



-Force [<SwitchParameter>]

Indicates if the variable group should be created if it doesn't exist



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 --------------------------



Import-AzDoVariableGroupVariables -CsvFile <csv file to import>-VariableGroupName <variable group to import into>

-EnvironmentNameFilter <















RELATED LINKS

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