az spring config-server git repo

注意

此參考是 Azure CLI 的 Spring 擴充功能的一部分 (2.45.0 版或更高版本)。 擴充功能會在您第一次執行 az spring config-server git 存放庫 命令時自動安裝。 深入了解擴充功能。

在 Azure Spring Apps 中管理 Config Server Git 存放庫的命令。

命令

名稱 Description 類型 狀態
az spring config-server git repo add

新增 Config Server Git 屬性的新存放庫。

擴充 GA
az spring config-server git repo list

列出 Config Server 之 git 屬性的所有存放庫。

擴充 GA
az spring config-server git repo remove

移除 Config Server 之 git 屬性的現有存放庫。

擴充 GA
az spring config-server git repo update

覆寫 Config Server 之 git 屬性的現有存放庫,將會完全覆寫舊的存放庫。

擴充 GA

az spring config-server git repo add

新增 Config Server Git 屬性的新存放庫。

az spring config-server git repo add --name
                                     --repo-name
                                     --resource-group
                                     --uri
                                     [--defer]
                                     [--host-key]
                                     [--host-key-algorithm]
                                     [--host-key-check]
                                     [--label]
                                     [--password]
                                     [--pattern]
                                     [--private-key]
                                     [--search-paths]
                                     [--username]

必要參數

--name -n

Azure Spring Apps 實例的名稱。

--repo-name

存放庫的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--uri

已新增組態的 URI。

選擇性參數

--defer

暫時將物件儲存在本機快取中,而不是傳送至 Azure。 使用 az cache 命令來檢視/清除。

--host-key

已新增組態的主機金鑰。

--host-key-algorithm

已新增組態的主機金鑰演算法。

--host-key-check --strict-host-key-checking

已新增的組態Strict_host_key_checking。

--label

已新增組態的標籤。

--password

已新增組態的密碼。

--pattern

存放庫的模式,使用 作為多個模式的分隔符號。

--private-key

已新增的組態Private_key。

--search-paths

Search_paths新增的組態,請使用 作為多個路徑的分隔符號。

--username

已新增組態的使用者名稱。

全域參數
--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 spring config-server git repo list

列出 Config Server 之 git 屬性的所有存放庫。

az spring config-server git repo list --name
                                      --resource-group
                                      [--defer]

必要參數

--name -n

Azure Spring Apps 實例的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

選擇性參數

--defer

暫時將物件儲存在本機快取中,而不是傳送至 Azure。 使用 az cache 命令來檢視/清除。

全域參數
--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 spring config-server git repo remove

移除 Config Server 之 git 屬性的現有存放庫。

az spring config-server git repo remove --name
                                        --repo-name
                                        --resource-group
                                        [--defer]

必要參數

--name -n

Azure Spring Apps 實例的名稱。

--repo-name

存放庫的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

選擇性參數

--defer

暫時將物件儲存在本機快取中,而不是傳送至 Azure。 使用 az cache 命令來檢視/清除。

全域參數
--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 spring config-server git repo update

覆寫 Config Server 之 git 屬性的現有存放庫,將會完全覆寫舊的存放庫。

az spring config-server git repo update --name
                                        --repo-name
                                        --resource-group
                                        [--defer]
                                        [--host-key]
                                        [--host-key-algorithm]
                                        [--host-key-check]
                                        [--label]
                                        [--password]
                                        [--pattern]
                                        [--private-key]
                                        [--search-paths]
                                        [--uri]
                                        [--username]

必要參數

--name -n

Azure Spring Apps 實例的名稱。

--repo-name

存放庫的名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

選擇性參數

--defer

暫時將物件儲存在本機快取中,而不是傳送至 Azure。 使用 az cache 命令來檢視/清除。

--host-key

已新增組態的主機金鑰。

--host-key-algorithm

已新增組態的主機金鑰演算法。

--host-key-check --strict-host-key-checking

已新增的組態Strict_host_key_checking。

--label

已新增組態的標籤。

--password

已新增組態的密碼。

--pattern

存放庫的模式,使用 作為多個模式的分隔符號。

--private-key

已新增的組態Private_key。

--search-paths

Search_paths新增的組態,請使用 作為多個路徑的分隔符號。

--uri

已新增組態的 URI。

--username

已新增組態的使用者名稱。

全域參數
--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 來取得完整偵錯記錄。