共用方式為


az spring component instance

備註

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

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

(僅限企業層)用來處理受控元件的實例的命令。

命令

名稱 Description 類型 狀態
az spring component instance list

(僅限企業層)列出 Azure Spring Apps 實例中特定受控元件的所有可用實例。

擴充套件 Deprecated

az spring component instance list

已被取代

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

(僅限企業層)列出 Azure Spring Apps 實例中特定受控元件的所有可用實例。

az spring component instance list --component
                                  --resource-group
                                  --service

範例

列出 Spring-cloud-gateway of Spring Cloud Gateway 的實例

az spring component instance list --component spring-cloud-gateway --service MyAzureSpringAppsInstance --resource-group MyResourceGroup

列出 Spring-cloud-gateway-operator of Spring Cloud Gateway 的實例

az spring component instance list --component spring-cloud-gateway-operator --service MyAzureSpringAppsInstance --resource-group MyResourceGroup

必要參數

--component -c

元件的名稱。 從命令 az spring component list尋找元件。

--resource-group -g

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

--service -s

Azure Spring Apps 實例的名稱,您可以使用 az configure --defaults spring=<name>來設定預設服務。

全域參數
--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