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"
必要參數
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
Azure Spring Apps 實例的名稱。
已新增組態的 URI。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
暫時將物件儲存在本機快取中,而不是傳送至 Azure。 使用 az cache 命令來檢視/清除。
已新增組態的主機金鑰。
已新增組態的主機密鑰演演算法。
已新增的組態Strict_host_key_checking。
已新增組態的標籤。
已新增組態的密碼。
已新增的組態Private_key。
Search_paths新增的組態,請使用 作為多個路徑的分隔符。
已新增組態的用戶名稱。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |