az load test-run app-component
Note
This reference is part of the load extension for the Azure CLI (version 2.66.0 or higher). 擴充功能會在您第一次執行 az load test-run app-component 命令時自動安裝。 Learn more about extensions.
命令群組 『load test-run』 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
管理負載測試執行應用程式元件的命令群組。
使用新增、列出和移除來管理負載測試執行應用程式元件的命令群組。
命令
名稱 | Description | 類型 | 狀態 |
---|---|---|---|
az load test-run app-component add |
將應用程式元件新增至測試回合。 |
Extension | Preview |
az load test-run app-component list |
列出測試回合的所有應用程式元件。 |
Extension | Preview |
az load test-run app-component remove |
從測試回合中移除應用程式元件。 |
Extension | Preview |
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 --name
--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
必要參數
應用程式元件的完整資源識別碼。 例如,subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}。
應用程式元件的名稱。 請參閱 https://learn.microsoft.com/cli/azure/resource#az-resource-show。
應用程式元件的資源類型。 請參閱 https://learn.microsoft.com/cli/azure/resource#az-resource-show。
負載測試資源的名稱或 ARM 資源識別碼。
負載測試回合的測試回合標識碼。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
應用程式元件的種類。 請參閱 https://learn.microsoft.com/cli/azure/resource#az-resource-show。
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |
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 --name
--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
必要參數
負載測試資源的名稱或 ARM 資源識別碼。
負載測試回合的測試回合標識碼。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |
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 --name
--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
必要參數
應用程式元件的完整資源識別碼。 例如,subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}。
負載測試資源的名稱或 ARM 資源識別碼。
負載測試回合的測試回合標識碼。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
請勿提示確認。
屬性 | 值 |
---|---|
預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |