共用方式為


az spring-cloud app binding redis

備註

此參考是 Azure CLI 的 spring-cloud 延伸模組的一部分(2.45.0 版或更高版本)。 擴充功能會在您第一次執行 az spring-cloud app binding redis 命令時自動安裝。 深入瞭解擴充功能

此命令群組已隱含取代,因為命令群組 'spring-cloud app binding' 已被取代,且將在未來的版本中移除。 請改用「Spring 應用程式系結」。

管理 Azure Cache for Redis 系結的命令。

命令

名稱 Description 類型 狀態
az spring-cloud app binding redis add

將 Azure Cache for Redis 與應用程式系結。

擴充套件 已廢棄
az spring-cloud app binding redis update

更新應用程式的 Azure Cache for Redis 服務系結。

擴充套件 已廢棄

az spring-cloud app binding redis add

已被取代

此命令已隱含取代,因為命令群組 'spring-cloud app binding' 已被取代,且將在未來的版本中移除。 請改用「Spring 應用程式系結」。

將 Azure Cache for Redis 與應用程式系結。

az spring-cloud app binding redis add --app
                                      --name
                                      --resource-group
                                      --resource-id
                                      --service
                                      [--disable-ssl {false, true}]

必要參數

--app

應用程式的名稱。

--name -n

服務系結的名稱。

--resource-group -g

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

--resource-id

要系結之服務的 Azure 資源識別碼。

--service -s

Azure Spring Cloud 的名稱,您可以使用 az configure --defaults spring-cloud=來設定預設服務。

選擇性參數

--disable-ssl

如果為 true,請停用 SSL。 如果為 false,請啟用 SSL。

接受的值: false, true
預設值: 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 spring-cloud app binding redis update

已被取代

此命令已隱含取代,因為命令群組 'spring-cloud app binding' 已被取代,且將在未來的版本中移除。 請改用「Spring 應用程式系結」。

更新應用程式的 Azure Cache for Redis 服務系結。

az spring-cloud app binding redis update --app
                                         --name
                                         --resource-group
                                         --service
                                         [--disable-ssl {false, true}]

必要參數

--app

應用程式的名稱。

--name -n

服務系結的名稱。

--resource-group -g

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

--service -s

Azure Spring Cloud 的名稱,您可以使用 az configure --defaults spring-cloud=來設定預設服務。

選擇性參數

--disable-ssl

如果為 true,請停用 SSL。 如果為 false,請啟用 SSL。

接受的值: false, true
預設值: 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。