Skip to main content

load_tests

Creates, updates, deletes, gets or lists a load_tests resource.

Overview

Nameload_tests
TypeResource
Idazure.load_testing.load_tests

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
data_plane_uritextfield from the properties object
encryptiontextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
loadTestNametextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTloadTestName, resourceGroupName, subscriptionIdGet a LoadTestResource
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList LoadTestResource resources by resource group
list_by_subscriptionSELECTsubscriptionIdList LoadTestResource resources by subscription ID
create_or_updateINSERTloadTestName, resourceGroupName, subscriptionIdCreate a LoadTestResource
deleteDELETEloadTestName, resourceGroupName, subscriptionIdDelete a LoadTestResource
updateUPDATEloadTestName, resourceGroupName, subscriptionIdUpdate a LoadTestResource

SELECT examples

List LoadTestResource resources by subscription ID

SELECT
description,
data_plane_uri,
encryption,
identity,
loadTestName,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.load_testing.vw_load_tests
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new load_tests resource.

/*+ create */
INSERT INTO azure.load_testing.load_tests (
loadTestName,
resourceGroupName,
subscriptionId,
properties,
identity,
tags,
location
)
SELECT
'{{ loadTestName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a load_tests resource.

/*+ update */
UPDATE azure.load_testing.load_tests
SET
identity = '{{ identity }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
loadTestName = '{{ loadTestName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified load_tests resource.

/*+ delete */
DELETE FROM azure.load_testing.load_tests
WHERE loadTestName = '{{ loadTestName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';