你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az pipelines variable-group

管理变量组。

命令

az pipelines variable-group create

创建变量组。

az pipelines variable-group delete

删除变量组。

az pipelines variable-group list

列出变量组。

az pipelines variable-group show

显示变量组详细信息。

az pipelines variable-group update

更新变量组。

az pipelines variable-group variable

管理变量组中的变量。

az pipelines variable-group variable create

将变量添加到变量组。

az pipelines variable-group variable delete

从变量组中删除变量。

az pipelines variable-group variable list

列出变量组中的变量。

az pipelines variable-group variable update

更新变量组中的变量。

az pipelines variable-group create

创建变量组。

az pipelines variable-group create --name
                                   --variables
                                   [--authorize {false, true}]
                                   [--description]
                                   [--detect {false, true}]
                                   [--org]
                                   [--project]

必需参数

--name

变量组的名称。

--variables

格式键=值空格分隔对的变量。 应使用 az pipelines variable-group variable 命令管理机密变量。

可选参数

--authorize

变量组是否应由所有管道访问。

接受的值: false, true
--description

变量组的说明。

--detect

自动检测组织。

接受的值: false, true
--org --organization

Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或通过 git 配置进行选取,则为必需。示例: https://dev.azure.com/MyOrganizationName/.

--project -p

项目的名称或 ID。 可以使用 az devops configure -d project=NAME_OR_ID 配置默认项目。 如果未配置为默认或通过 git 配置进行选取,则为必需。

az pipelines variable-group delete

删除变量组。

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

必需参数

--group-id --id

变量组的 ID。

可选参数

--detect

自动检测组织。

接受的值: false, true
--org --organization

Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或通过 git 配置进行选取,则为必需。示例: https://dev.azure.com/MyOrganizationName/.

--project -p

项目的名称或 ID。 可以使用 az devops configure -d project=NAME_OR_ID 配置默认项目。 如果未配置为默认或通过 git 配置进行选取,则为必需。

--yes -y

不提示确认。

az pipelines variable-group list

列出变量组。

az pipelines variable-group list [--action {manage, none, use}]
                                 [--continuation-token]
                                 [--detect {false, true}]
                                 [--group-name]
                                 [--org]
                                 [--project]
                                 [--query-order {Asc, Desc}]
                                 [--top]

可选参数

--action --action-filter

变量组的操作筛选器。 它指定可在变量组上执行的操作。

接受的值: manage, none, use
--continuation-token

获取提供延续标记之后的变量组。

--detect

自动检测组织。

接受的值: false, true
--group-name

变量组的名称。 可以使用通配符。 例如var_group*。

--org --organization

Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或通过 git 配置进行选取,则为必需。示例: https://dev.azure.com/MyOrganizationName/.

--project -p

项目的名称或 ID。 可以使用 az devops configure -d project=NAME_OR_ID 配置默认项目。 如果未配置为默认或通过 git 配置进行选取,则为必需。

--query-order

按定义的顺序获取结果。

接受的值: Asc, Desc
默认值: Desc
--top

要获取的变量组数。

az pipelines variable-group show

显示变量组详细信息。

az pipelines variable-group show --group-id
                                 [--detect {false, true}]
                                 [--org]
                                 [--project]

必需参数

--group-id --id

变量组的 ID。

可选参数

--detect

自动检测组织。

接受的值: false, true
--org --organization

Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或通过 git 配置进行选取,则为必需。示例: https://dev.azure.com/MyOrganizationName/.

--project -p

项目的名称或 ID。 可以使用 az devops configure -d project=NAME_OR_ID 配置默认项目。 如果未配置为默认或通过 git 配置进行选取,则为必需。

az pipelines variable-group update

更新变量组。

az pipelines variable-group update --group-id
                                   [--authorize {false, true}]
                                   [--description]
                                   [--detect {false, true}]
                                   [--name]
                                   [--org]
                                   [--project]

必需参数

--group-id --id

变量组的 ID。

可选参数

--authorize

变量组是否应由所有管道访问。

接受的值: false, true
--description

变量组的新说明。

--detect

自动检测组织。

接受的值: false, true
--name

变量组的新名称。

--org --organization

Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或通过 git 配置进行选取,则为必需。示例: https://dev.azure.com/MyOrganizationName/.

--project -p

项目的名称或 ID。 可以使用 az devops configure -d project=NAME_OR_ID 配置默认项目。 如果未配置为默认或通过 git 配置进行选取,则为必需。