Skip to content

Export AzDevOpsVariableGroups

github-actions edited this page Sep 21, 2023 · 5 revisions

Export-AzDevOpsVariableGroups

SYNOPSIS

Export variable groups to JSON files.

SYNTAX

Export-AzDevOpsVariableGroups [-Organization] <String> [-Project] <String> [-PAT] <String>
 [-OutputPath] <String> [<CommonParameters>]

DESCRIPTION

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

EXAMPLES

EXAMPLE 1

Export-AzDevOpsVariableGroups -Organization 'myorganization' -Project 'myproject' -PAT $myPAT -OutputPath 'C:\temp'

PARAMETERS

-Organization

The name of the Azure DevOps organization.

Type: String
Parameter Sets: (All)
Aliases:

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

-Project

The name of the Azure DevOps project.

Type: String
Parameter Sets: (All)
Aliases:

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

-PAT

A personal access token (PAT) used to authenticate with Azure DevOps.

Type: String
Parameter Sets: (All)
Aliases:

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

-OutputPath

The path to export variable groups to.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 4
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