Skip to main content

instances

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

Overview

Nameinstances
TypeResource
Idazure.iot_data_processor.instances

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
extended_locationtextfield from the properties object
instanceNametextfield 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
getSELECTinstanceName, resourceGroupName, subscriptionIdGet a Instance
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList Instance resources by resource group
list_by_subscriptionSELECTsubscriptionIdList Instance resources by subscription ID
create_or_updateINSERTinstanceName, resourceGroupName, subscriptionId, data__extendedLocationCreate a Instance
deleteDELETEinstanceName, resourceGroupName, subscriptionIdDelete a Instance
updateUPDATEinstanceName, resourceGroupName, subscriptionIdUpdate a Instance

SELECT examples

List Instance resources by subscription ID

SELECT
description,
extended_location,
instanceName,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.iot_data_processor.vw_instances
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.iot_data_processor.instances (
instanceName,
resourceGroupName,
subscriptionId,
data__extendedLocation,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ instanceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__extendedLocation }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a instances resource.

/*+ update */
UPDATE azure.iot_data_processor.instances
SET
tags = '{{ tags }}'
WHERE
instanceName = '{{ instanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified instances resource.

/*+ delete */
DELETE FROM azure.iot_data_processor.instances
WHERE instanceName = '{{ instanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';