Share via


az spring apm

注意

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

(僅限企業層)在 Azure Spring Apps 中管理 APM 的命令。

命令

名稱 Description 類型 狀態
az spring apm create

(僅限企業層)建立 APM。

副檔名 GA
az spring apm delete

(僅限企業層)刪除 APM。

副檔名 GA
az spring apm disable-globally

(僅限企業層)全域停用 APM。

副檔名 GA
az spring apm enable-globally

(僅限企業層)全域啟用 APM。

副檔名 GA
az spring apm list

(僅限企業層)列出 Azure Spring Apps 中的所有 APM。 將會省略秘密。

副檔名 GA
az spring apm list-enabled-globally

(僅限企業層)列出 Azure Spring Apps 中全域啟用的所有 APM。

副檔名 GA
az spring apm list-support-types

(僅限企業層)列出 Azure Spring Apps 中所有支援的 APM 類型。

副檔名 GA
az spring apm show

(僅限企業層)顯示 APM。 秘密將會遮罩。

副檔名 GA
az spring apm update

(僅限企業層)更新 APM。

副檔名 GA

az spring apm create

(僅限企業層)建立 APM。

az spring apm create --name
                     --resource-group
                     --service
                     --type
                     [--no-wait]
                     [--properties]
                     [--secrets]

範例

僅建立具有秘密的 APM。

az spring apm create --name first-apm --type ApplicationInsights --secrets k1=v1 k2=v2 --service MyCluster --resource-group MyResourceGroup

僅建立具有屬性的 APM。

az spring apm create --name first-apm --type ApplicationInsights --properties a=b c=d --service MyCluster --resource-group MyResourceGroup

建立具有屬性和秘密的 APM。

az spring apm create --name first-apm --type ApplicationInsights --properties a=b c=d --secrets k1=v1 k2=v2 --service MyCluster --resource-group MyResourceGroup

必要參數

--name -n

APM 名稱。

--resource-group -g

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

--service -s

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

--type

APM 的必要類型。 執行 「az spring apm list-support-types」,以取得所有支援的 APM 類型。

選擇性參數

--no-wait

請勿等候長時間執行的作業完成。

預設值: False
--properties

APM 的非敏感性屬性。 格式為 “key[=value]”。

--secrets

APM 的敏感性屬性。 一旦放置之後,它就會加密,且永遠不會返回使用者。 格式為 “key[=value]”。

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

(僅限企業層)刪除 APM。

az spring apm delete --name
                     --resource-group
                     --service
                     [--no-wait]
                     [--yes]

範例

刪除 APM。

az spring apm delete --name first-apm --service MyCluster --resource-group MyResourceGroup

必要參數

--name -n

APM 名稱。

--resource-group -g

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

--service -s

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

選擇性參數

--no-wait

請勿等候長時間執行的作業完成。

預設值: False
--yes -y

不提示確認。

預設值: 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 apm disable-globally

(僅限企業層)全域停用 APM。

az spring apm disable-globally --name
                               --resource-group
                               --service
                               [--no-wait]

範例

全域停用 APM。

az spring apm disable-globally --name first-apm --service MyCluster --resource-group MyResourceGroup

必要參數

--name -n

APM 名稱。

--resource-group -g

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

--service -s

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

選擇性參數

--no-wait

請勿等候長時間執行的作業完成。

預設值: 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 apm enable-globally

(僅限企業層)全域啟用 APM。

az spring apm enable-globally --name
                              --resource-group
                              --service
                              [--no-wait]

範例

全域啟用 APM。

az spring apm enable-globally --name first-apm --service MyCluster --resource-group MyResourceGroup

必要參數

--name -n

APM 名稱。

--resource-group -g

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

--service -s

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

選擇性參數

--no-wait

請勿等候長時間執行的作業完成。

預設值: 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 apm list

(僅限企業層)列出 Azure Spring Apps 中的所有 APM。 將會省略秘密。

az spring apm list --resource-group
                   --service

範例

列出 Azure Spring Apps 中的所有 APM。

az spring apm list --service MyCluster --resource-group MyResourceGroup

必要參數

--resource-group -g

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

--service -s

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

全域參數
--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 apm list-enabled-globally

(僅限企業層)列出 Azure Spring Apps 中全域啟用的所有 APM。

az spring apm list-enabled-globally --resource-group
                                    --service

範例

列出 Azure Spring Apps 中全域啟用的所有 APM。

az spring apm list-enabled-globally --service MyCluster --resource-group MyResourceGroup

必要參數

--resource-group -g

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

--service -s

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

全域參數
--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 apm list-support-types

(僅限企業層)列出 Azure Spring Apps 中所有支援的 APM 類型。

az spring apm list-support-types --resource-group
                                 --service

範例

列出 Azure Spring Apps 中所有支援的 APM 類型。

az spring apm list-support-types --service MyCluster --resource-group MyResourceGroup

必要參數

--resource-group -g

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

--service -s

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

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

(僅限企業層)顯示 APM。 秘密將會遮罩。

az spring apm show --name
                   --resource-group
                   --service

範例

顯示 APM。

az spring apm show --name first-apm --service MyCluster --resource-group MyResourceGroup

必要參數

--name -n

APM 名稱。

--resource-group -g

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

--service -s

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

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

(僅限企業層)更新 APM。

az spring apm update --name
                     --resource-group
                     --service
                     --type
                     [--no-wait]
                     [--properties]
                     [--secrets]

範例

使用屬性和秘密更新 APM。

az spring apm update --name first-apm --type ApplicationInsights --properties a=b c=d --secrets k1=v1 k2=v2 --service MyCluster --resource-group MyResourceGroup

必要參數

--name -n

APM 名稱。

--resource-group -g

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

--service -s

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

--type

APM 的必要類型。 執行 「az spring apm list-support-types」,以取得所有支援的 APM 類型。

選擇性參數

--no-wait

請勿等候長時間執行的作業完成。

預設值: False
--properties

APM 的非敏感性屬性。 格式為 “key[=value]”。

--secrets

APM 的敏感性屬性。 一旦放置之後,它就會加密,且永遠不會返回使用者。 格式為 “key[=value]”。

全域參數
--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 來取得完整偵錯記錄。