az pipelines variable-group variable

Manage variables in a variable group.

Commands

az pipelines variable-group variable create

Add a variable to a variable group.

az pipelines variable-group variable delete

Delete a variable from variable group.

az pipelines variable-group variable list

List the variables in a variable group.

az pipelines variable-group variable update

Update a variable in a variable group.

az pipelines variable-group variable create

Add a variable to a variable group.

az pipelines variable-group variable create --group-id
                                            --name
                                            [--detect {false, true}]
                                            [--org]
                                            [--project]
                                            [--secret {false, true}]
                                            [--subscription]
                                            [--value]

Required Parameters

--group-id --id

Id of the variable group.

--name

Name of the variable.

Optional Parameters

--detect

Automatically detect organization.

accepted values: false, true
--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.

--project -p

Name or ID of the project. You can configure the default project using az devops configure -d project=NAME_OR_ID. Required if not configured as default or picked up via git config.

--secret

If the value of the variable is a secret.

accepted values: false, true
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--value

Value of the variable. For secret variables, if --value parameter is not given, it will be picked from environment variable prefixed with AZURE_DEVOPS_EXT_PIPELINE_VAR_ or user will be prompted to enter it via standard input. e.g. PersonalAccessToken can be input using environment variable AZURE_DEVOPS_EXT_PIPELINE_VAR_PersonalAccessToken.

az pipelines variable-group variable delete

Delete a variable from variable group.

az pipelines variable-group variable delete --group-id
                                            --name
                                            [--detect {false, true}]
                                            [--org]
                                            [--project]
                                            [--subscription]
                                            [--yes]

Required Parameters

--group-id --id

Id of the variable group.

--name

Name of the variable.

Optional Parameters

--detect

Automatically detect organization.

accepted values: false, true
--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.

--project -p

Name or ID of the project. You can configure the default project using az devops configure -d project=NAME_OR_ID. Required if not configured as default or picked up via git config.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--yes -y

Do not prompt for confirmation.

az pipelines variable-group variable list

List the variables in a variable group.

az pipelines variable-group variable list --group-id
                                          [--detect {false, true}]
                                          [--org]
                                          [--project]
                                          [--query-examples]
                                          [--subscription]

Required Parameters

--group-id --id

Id of the variable group.

Optional Parameters

--detect

Automatically detect organization.

accepted values: false, true
--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.

--project -p

Name or ID of the project. You can configure the default project using az devops configure -d project=NAME_OR_ID. Required if not configured as default or picked up via git config.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az pipelines variable-group variable update

Update a variable in a variable group.

az pipelines variable-group variable update --group-id
                                            --name
                                            [--detect {false, true}]
                                            [--new-name]
                                            [--org]
                                            [--project]
                                            [--prompt-value {false, true}]
                                            [--secret {false, true}]
                                            [--subscription]
                                            [--value]

Required Parameters

--group-id --id

Id of the variable group.

--name

Name of the variable.

Optional Parameters

--detect

Automatically detect organization.

accepted values: false, true
--new-name

New name of the variable.

--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.

--project -p

Name or ID of the project. You can configure the default project using az devops configure -d project=NAME_OR_ID. Required if not configured as default or picked up via git config.

--prompt-value

Set it to True to update the value of a secret variable using environment variable or prompt via standard input.

accepted values: false, true
--secret

If the value of the variable is a secret.

accepted values: false, true
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--value

New value of the variable. For secret variables, if --value parameter is not given, it will be picked from environment variable prefixed with AZURE_DEVOPS_EXT_PIPELINE_VAR_ or user will be prompted to enter it via standard input. e.g. PersonalAccessToken can be input using environment variable AZURE_DEVOPS_EXT_PIPELINE_VAR_PersonalAccessToken.