Skip to main content

app_components

Creates, updates, deletes, gets or lists an app_components resource.

Overview

Nameapp_components
TypeResource
Idazure.developer_loadtesting.app_components

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
componentsobjectAzure resource collection { resource id (fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName})
createdBystringThe user that created.
createdDateTimestring (date-time)The creation datetime(RFC 3339 literal format).
lastModifiedBystringThe user that last modified.
lastModifiedDateTimestring (date-time)The last Modified datetime(RFC 3339 literal format).
testIdstringTest identifier.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_app_componentsselecttest_id, endpointGet associated app component (collection of azure resources) for the given test. Get associated app component (collection of azure resources) for the given test.
create_or_update_app_componentsinserttest_id, endpoint, componentsAdd an app component to a test. Add an app component to a test by providing the resource Id, name and type.
create_or_update_app_componentsreplacetest_id, endpoint, componentsAdd an app component to a test. Add an app component to a test by providing the resource Id, name and type.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
test_idstringUnique name for the load test, must contain only lower-case alphabetic, numeric, underscore or hyphen characters. Required.

SELECT examples

Get associated app component (collection of azure resources) for the given test. Get associated app component (collection of azure resources) for the given test.

SELECT
components,
createdBy,
createdDateTime,
lastModifiedBy,
lastModifiedDateTime,
testId
FROM azure.developer_loadtesting.app_components
WHERE test_id = '{{ test_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples

Add an app component to a test. Add an app component to a test by providing the resource Id, name and type.

INSERT INTO azure.developer_loadtesting.app_components (
components,
test_id,
endpoint
)
SELECT
'{{ components }}' /* required */,
'{{ test_id }}',
'{{ endpoint }}'
RETURNING
components,
createdBy,
createdDateTime,
lastModifiedBy,
lastModifiedDateTime,
testId
;

REPLACE examples

Add an app component to a test. Add an app component to a test by providing the resource Id, name and type.

REPLACE azure.developer_loadtesting.app_components
SET
components = '{{ components }}'
WHERE
test_id = '{{ test_id }}' --required
AND endpoint = '{{ endpoint }}' --required
AND components = '{{ components }}' --required
RETURNING
components,
createdBy,
createdDateTime,
lastModifiedBy,
lastModifiedDateTime,
testId;