Skip to content

Export AzDevOpsVariableGroups

github-actions edited this page Apr 1, 2024 · 5 revisions

Export-AzDevOpsVariableGroups

SYNOPSIS

Export variable groups to JSON files.

SYNTAX

JsonFile

Export-AzDevOpsVariableGroups -Project <String> [-OutputPath <String>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

PassThru

Export-AzDevOpsVariableGroups -Project <String> [-PassThru] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

Export Azure DevOps variable groups for a project to JSON files.

EXAMPLES

EXAMPLE 1

Export-AzDevOpsVariableGroups -Project 'myproject' -OutputPath 'C:\temp'

PARAMETERS

-Project

The name of the Azure DevOps project.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-OutputPath

The path to export variable groups to.

Type: String
Parameter Sets: JsonFile
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PassThru

Return the exported variable groups as objects to the pipeline instead of writing to a file.

Type: SwitchParameter
Parameter Sets: PassThru
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

All variable group files will have a suffix of .ado.vg.json.

RELATED LINKS

https://docs.microsoft.com/en-us/rest/api/azure/devops/distributedtask/variablegroups/get-variable-groups?view=azure-devops-rest-7.2

Clone this wiki locally