az pipelines variable-group

注意

此參考是 Azure CLI 的 azure-devops 延伸模組的一部分 (2.30.0 版或更高版本)。 擴充功能會在您第一次執行 az pipelines variable-group 命令時自動安裝。 深入了解擴充功能。

管理變數群組。

命令

名稱 Description 類型 狀態
az pipelines variable-group create

建立變數群組。

擴充 GA
az pipelines variable-group delete

刪除變數群組。

擴充 GA
az pipelines variable-group list

列出變數群組。

擴充 GA
az pipelines variable-group show

顯示變數群組詳細資料。

擴充 GA
az pipelines variable-group update

更新變數群組。

擴充 GA
az pipelines variable-group variable

管理變數群組中的變數。

擴充 GA
az pipelines variable-group variable create

將變數新增至變數群組。

擴充 GA
az pipelines variable-group variable delete

從變數群組中刪除變數。

擴充 GA
az pipelines variable-group variable list

列出變數群組中的變數。

擴充 GA
az pipelines variable-group variable update

更新變數群組中的變數。

擴充 GA

az pipelines variable-group create

建立變數群組。

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

必要參數

--name

變數群組的名稱。

--variables

格式為 key=value 空格分隔組的變數。 秘密變數應該使用 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

專案的名稱或識別碼。 您可以使用 az devops configure -d project=NAME_OR_ID 來設定預設專案。 如果未設定為預設,或透過 git 組態挑選,則為必要專案。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az pipelines variable-group delete

刪除變數群組。

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

必要參數

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

專案的名稱或識別碼。 您可以使用 az devops configure -d project=NAME_OR_ID 來設定預設專案。 如果未設定為預設,或透過 git 組態挑選,則為必要專案。

--yes -y

不提示確認。

預設值: False
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

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

專案的名稱或識別碼。 您可以使用 az devops configure -d project=NAME_OR_ID 來設定預設專案。 如果未設定為預設,或透過 git 組態挑選,則為必要專案。

--query-order

取得定義順序的結果。

接受的值: Asc, Desc
預設值: Desc
--top

要取得的變數群組數目。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az pipelines variable-group show

顯示變數群組詳細資料。

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

必要參數

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

專案的名稱或識別碼。 您可以使用 az devops configure -d project=NAME_OR_ID 來設定預設專案。 如果未設定為預設,或透過 git 組態挑選,則為必要專案。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

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

變數群組的識別碼。

選擇性參數

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

專案的名稱或識別碼。 您可以使用 az devops configure -d project=NAME_OR_ID 來設定預設專案。 如果未設定為預設,或透過 git 組態挑選,則為必要專案。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。