az spring config-server
備註
此參考是 Azure CLI 的 spring 延伸模組的一部分(2.56.0 版或更高版本)。 擴充功能會在您第一次執行 az spring config-server 命令時自動安裝
此命令群組已隱含取代,因為命令群組 'spring' 已被取代,並將在未來版本中移除。
(支援標準層和基本層)在 Azure Spring Apps 中管理組態伺服器的命令。
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az spring config-server bind |
(僅限企業層)將應用程式系結至 Config Server。 |
擴充套件 | Deprecated |
| az spring config-server clear |
清除 Config Server 中的所有設定。 |
擴充套件 | Deprecated |
| az spring config-server create |
(僅限企業層)建立組態伺服器。 |
擴充套件 | Deprecated |
| az spring config-server delete |
(僅限企業層)刪除組態伺服器。 |
擴充套件 | Deprecated |
| az spring config-server disable |
(僅限標準使用量層)停用組態伺服器。 |
擴充套件 | Deprecated |
| az spring config-server enable |
(僅限標準使用量層)啟用組態伺服器。 |
擴充套件 | Deprecated |
| az spring config-server git |
在 Azure Spring Apps 中管理 Config Server git 屬性的命令。 |
擴充套件 | Deprecated |
| 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 set |
從 yaml 檔案設定組態伺服器。 |
擴充套件 | Deprecated |
| az spring config-server show |
顯示組態伺服器。 |
擴充套件 | Deprecated |
| az spring config-server unbind |
(僅限企業層)從 Config Server 解除系結應用程式。 |
擴充套件 | Deprecated |
az spring config-server bind
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
(僅限企業層)將應用程式系結至 Config Server。
az spring config-server bind --resource-group
--service
[--app]
[--job]
範例
將應用程式系結至服務實例 MyService 中的預設組態伺服器。
az spring config-server bind --app MyApp -s MyService -g MyResourceGroup
將作業系結至服務實例 MyService 中的預設組態伺服器。
az spring config-server bind --job job-name -s MyService -g MyResourceGroup
必要參數
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
Azure Spring Apps 實例的名稱,您可以使用 az configure --defaults spring=<name>來設定預設服務。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
應用程式的名稱。
在指定的 Azure Spring Apps 實例中執行的工作名稱。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring config-server clear
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
清除 Config Server 中的所有設定。
az spring config-server clear --resource-group
--service
[--yes]
範例
將服務實例 MyService 中預設組態伺服器的設定更新為空白。
az spring config-server clear -s MyService -g MyResourceGroup
必要參數
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
Azure Spring Apps 實例的名稱。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring config-server create
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
(僅限企業層)建立組態伺服器。
az spring config-server create --resource-group
--service
範例
在服務實例 MyService 中建立不含存放庫設定的組態伺服器。
az spring config-server create -s MyService -g MyResourceGroup
必要參數
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
Azure Spring Apps 實例的名稱,您可以使用 az configure --defaults spring=<name>來設定預設服務。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring config-server delete
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
(僅限企業層)刪除組態伺服器。
az spring config-server delete --resource-group
--service
[--yes]
範例
刪除服務實例 MyService 中的預設組態伺服器。
az spring config-server delete -s MyService -g MyResourceGroup
必要參數
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
Azure Spring Apps 實例的名稱,您可以使用 az configure --defaults spring=<name>來設定預設服務。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring config-server disable
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
(僅限標準使用量層)停用組態伺服器。
az spring config-server disable --resource-group
--service
必要參數
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
Azure Spring Apps 實例的名稱。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring config-server enable
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
(僅限標準使用量層)啟用組態伺服器。
az spring config-server enable --resource-group
--service
必要參數
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
Azure Spring Apps 實例的名稱。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring config-server set
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
從 yaml 檔案設定組態伺服器。
az spring config-server set --config-file
--resource-group
--service
[--no-wait]
範例
從 yaml 檔案載入,並在服務實例 MyService 中設定預設組態伺服器。
az spring config-server set -s MyService -g MyResourceGroup --config-file MyConfigFile.yaml
必要參數
Spring Cloud 組態伺服器的 yaml 檔案路徑。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
Azure Spring Apps 實例的名稱。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring config-server show
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
顯示組態伺服器。
az spring config-server show --resource-group
--service
範例
在服務實例 MyService 中顯示預設組態伺服器的元數據。
az spring config-server show -s MyService -g MyResourceGroup
必要參數
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
Azure Spring Apps 實例的名稱。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring config-server unbind
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
(僅限企業層)從 Config Server 解除系結應用程式。
az spring config-server unbind --resource-group
--service
[--app]
[--job]
[--yes]
範例
將應用程式從服務實例 MyService 中的預設組態伺服器解除系結。
az spring config-server unbind --app MyApp -s MyService -g MyResourceGroup
從服務實例 MyService 中的預設組態伺服器解除系結作業。
az spring config-server unbind --job job-name -s MyService -g MyResourceGroup
必要參數
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
Azure Spring Apps 實例的名稱,您可以使用 az configure --defaults spring=<name>來設定預設服務。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
應用程式的名稱。
在指定的 Azure Spring Apps 實例中執行的工作名稱。
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |