Share via


az load test-run app-component

注意

此參考是 Azure CLI 的載入 延伸模組的一部分 (2.41.0 版或更高版本)。 擴充功能會在您第一次執行 az load test-run app-component 命令時自動安裝。 深入了解擴充功能。

命令群組 'load test-run' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

管理負載測試執行應用程式元件的命令群組。

使用新增、列出和移除來管理負載測試執行應用程式元件的命令群組。

命令

名稱 Description 類型 狀態
az load test-run app-component add

將應用程式元件新增至測試回合。

擴充 預覽版
az load test-run app-component list

列出測試回合的所有應用程式元件。

擴充 預覽版
az load test-run app-component remove

從測試回合中移除應用程式元件。

擴充 預覽版

az load test-run app-component add

預覽

命令群組 'load test-run app-component' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

將應用程式元件新增至測試回合。

az load test-run app-component add --app-component-id
                                   --app-component-name
                                   --app-component-type
                                   --load-test-resource
                                   --test-run-id
                                   [--app-component-kind]
                                   [--resource-group]

範例

將應用程式元件新增至測試回合。

az load test-run app-component add --test-run-id sample-test-run-id --load-test-resource sample-alt-resource --resource-group sample-rg --app-component-name appcomponentresource --app-component-type microsoft.insights/components --app-component-id "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource" --app-component-kind web

必要參數

--app-component-id

應用程式元件的完整資源識別碼。 例如,subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}。

--app-component-name

應用程式元件的名稱。 請參閱 https://learn.microsoft.com/cli/azure/resource#az-resource-show

--app-component-type

應用程式元件的資源類型。 請參閱 https://learn.microsoft.com/cli/azure/resource#az-resource-show

--load-test-resource --name -n

負載測試資源的名稱或 ARM 資源識別碼。

--test-run-id -r

負載測試回合的測試回合識別碼。

選擇性參數

--app-component-kind

應用程式元件的種類。 請參閱 https://learn.microsoft.com/cli/azure/resource#az-resource-show

--resource-group -g

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

全域參數
--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 load test-run app-component list

預覽

命令群組 'load test-run app-component' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

列出測試回合的所有應用程式元件。

az load test-run app-component list --load-test-resource
                                    --test-run-id
                                    [--resource-group]

範例

列出測試回合的所有應用程式元件。

az load test-run app-component list --test-run-id sample-test-run-id --load-test-resource sample-alt-resource --resource-group sample-rg

必要參數

--load-test-resource --name -n

負載測試資源的名稱或 ARM 資源識別碼。

--test-run-id -r

負載測試回合的測試回合識別碼。

選擇性參數

--resource-group -g

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

全域參數
--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 load test-run app-component remove

預覽

命令群組 'load test-run app-component' 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

從測試回合中移除應用程式元件。

az load test-run app-component remove --app-component-id
                                      --load-test-resource
                                      --test-run-id
                                      [--resource-group]
                                      [--yes]

範例

從測試回合中移除應用程式元件。

az load test-run app-component remove --test-run-id sample-test-run-id --load-test-resource sample-alt-resource --resource-group sample-rg --app-component-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-rg/providers/Microsoft.Compute/virtualMachineScaleSets/app-comp-name --yes

必要參數

--app-component-id

應用程式元件的完整資源識別碼。 例如,subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}。

--load-test-resource --name -n

負載測試資源的名稱或 ARM 資源識別碼。

--test-run-id -r

負載測試回合的測試回合識別碼。

選擇性參數

--resource-group -g

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

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