Skip to main content

service_runners

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

Overview

Nameservice_runners
TypeResource
Idazure.dev_test_labs.service_runners

Fields

NameDatatypeDescription
idstringThe identifier of the resource.
namestringThe name of the resource.
identityobjectProperties of a managed identity
locationstringThe location of the resource.
tagsobjectThe tags of the resource.
typestringThe type of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlabName, name, resourceGroupName, subscriptionIdGet service runner.
create_or_updateINSERTlabName, name, resourceGroupName, subscriptionIdCreate or replace an existing service runner.
deleteDELETElabName, name, resourceGroupName, subscriptionIdDelete service runner.

SELECT examples

Get service runner.

SELECT
id,
name,
identity,
location,
tags,
type
FROM azure.dev_test_labs.service_runners
WHERE labName = '{{ labName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.dev_test_labs.service_runners (
labName,
name,
resourceGroupName,
subscriptionId,
location,
tags,
identity
)
SELECT
'{{ labName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ identity }}'
;

DELETE example

Deletes the specified service_runners resource.

/*+ delete */
DELETE FROM azure.dev_test_labs.service_runners
WHERE labName = '{{ labName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';