共用方式為


az spring config-server git

備註

此參考是 Azure CLI 的 spring 延伸模組的一部分(2.56.0 版或更高版本)。 當您第一次執行 az spring config-server git 命令時,擴充功能會自動安裝。 深入瞭解擴充功能

此命令群組已隱含取代,因為命令群組 'spring' 已被取代,並將在未來版本中移除。

在 Azure Spring Apps 中管理 Config Server git 屬性的命令。

命令

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

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

擴充套件 Deprecated
az spring config-server git repo add

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

擴充套件 Deprecated
az spring config-server git repo list

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

擴充套件 Deprecated
az spring config-server git repo remove

拿掉 Config Server 之 git 屬性的現有存放庫。

擴充套件 Deprecated
az spring config-server git repo update

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

擴充套件 Deprecated
az spring config-server git set

設定 Config Server 的 git 屬性,將會完全覆寫舊的。

擴充套件 Deprecated

az spring config-server git set

已被取代

此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。

設定 Config Server 的 git 屬性,將會完全覆寫舊的。

az spring config-server git set --resource-group
                                --service
                                --uri
                                [--defer]
                                [--host-key]
                                [--host-key-algorithm]
                                [--host-key-check --strict-host-key-checking]
                                [--label]
                                [--password]
                                [--private-key]
                                [--search-paths]
                                [--username]

範例

在服務實例 MyService 中設定公用 Git 存放庫,而不需認證的預設組態伺服器。

az spring config-server git set -s MyService -g MyResourceGroup --uri UrlOfGitRepository --label LabelOfGitRepository --search-paths "/path1,/path2"

必要參數

--resource-group -g

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

--service -s

Azure Spring Apps 實例的名稱。

--uri

已新增組態的 URI。

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--defer

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

--host-key

已新增組態的主機金鑰。

--host-key-algorithm

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

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

已新增的組態Strict_host_key_checking。

--label

已新增組態的標籤。

--password

已新增組態的密碼。

--private-key

已新增的組態Private_key。

--search-paths

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

--username

已新增組態的用戶名稱。

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False