az load test app-component
Note
This reference is part of the load extension for the Azure CLI (version 2.41.0 or higher). The extension will automatically install the first time you run an az load test app-component command. Learn more about extensions.
Command group 'load test' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Command group to manage app components.
Command group to manage load test app-components with add, list and remove.
Commands
Name | Description | Type | Status |
---|---|---|---|
az load test app-component add |
Add an app component to a test. |
Extension | Preview |
az load test app-component list |
List all app components for a test. |
Extension | Preview |
az load test app-component remove |
Remove the given app component from a test. |
Extension | Preview |
az load test app-component add
Command group 'load test app-component' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Add an app component to a test.
az load test app-component add --app-component-id
--app-component-name
--app-component-type
--load-test-resource
--test-id
[--app-component-kind]
[--resource-group]
Examples
Add an app component to a test.
az load test app-component add --test-id sample-test-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
Required Parameters
Fully qualified resource ID of the App Component. For example, subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}.
Name of the app component. Refer https://learn.microsoft.com/cli/azure/resource#az-resource-show.
Type of resource of the app component. Refer https://learn.microsoft.com/cli/azure/resource#az-resource-show.
Name or ARM resource ID of the Load Testing resource.
Test ID of the load test.
Optional Parameters
Kind of the app component. Refer https://learn.microsoft.com/cli/azure/resource#az-resource-show.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az load test app-component list
Command group 'load test app-component' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List all app components for a test.
az load test app-component list --load-test-resource
--test-id
[--resource-group]
Examples
List all app components for a test.
az load test app-component list --test-id sample-test-id --load-test-resource sample-alt-resource --resource-group sample-rg
Required Parameters
Name or ARM resource ID of the Load Testing resource.
Test ID of the load test.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az load test app-component remove
Command group 'load test app-component' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Remove the given app component from a test.
az load test app-component remove --app-component-id
--load-test-resource
--test-id
[--resource-group]
[--yes]
Examples
Remove an app component from a test.
az load test app-component remove --test-id sample-test-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
Required Parameters
Fully qualified resource ID of the App Component. For example, subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName}.
Name or ARM resource ID of the Load Testing resource.
Test ID of the load test.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.