Skip to main content

solutions

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

Overview

Namesolutions
TypeResource
Idazure.iot_orchestrator.solutions

Fields

NameDatatypeDescription
nametextfield from the properties object
componentstextfield from the properties object
extended_locationtextfield 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.
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, subscriptionIdGet a Solution
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList Solution resources by resource group
list_by_subscriptionSELECTsubscriptionIdList Solution resources by subscription ID
create_or_updateINSERTname, resourceGroupName, subscriptionId, data__extendedLocationCreate a Solution
deleteDELETEname, resourceGroupName, subscriptionIdDelete a Solution
updateUPDATEname, resourceGroupName, subscriptionIdUpdate a Solution

SELECT examples

List Solution resources by subscription ID

SELECT
name,
components,
extended_location,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
version
FROM azure.iot_orchestrator.vw_solutions
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.iot_orchestrator.solutions (
name,
resourceGroupName,
subscriptionId,
data__extendedLocation,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__extendedLocation }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a solutions resource.

/*+ update */
UPDATE azure.iot_orchestrator.solutions
SET
tags = '{{ tags }}'
WHERE
name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified solutions resource.

/*+ delete */
DELETE FROM azure.iot_orchestrator.solutions
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';