Skip to main content

reference_data_sets

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

Overview

Namereference_data_sets
TypeResource
Idazure.time_series_insights.reference_data_sets

Fields

NameDatatypeDescription
creation_timetextfield from the properties object
data_string_comparison_behaviortextfield from the properties object
environmentNametextfield from the properties object
key_propertiestextfield from the properties object
locationtextResource location
provisioning_statetextfield from the properties object
referenceDataSetNametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags

Methods

NameAccessible byRequired ParamsDescription
getSELECTenvironmentName, referenceDataSetName, resourceGroupName, subscriptionIdGets the reference data set with the specified name in the specified environment.
list_by_environmentSELECTenvironmentName, resourceGroupName, subscriptionIdLists all the available reference data sets associated with the subscription and within the specified resource group and environment.
create_or_updateINSERTenvironmentName, referenceDataSetName, resourceGroupName, subscriptionId, data__propertiesCreate or update a reference data set in the specified environment.
deleteDELETEenvironmentName, referenceDataSetName, resourceGroupName, subscriptionIdDeletes the reference data set with the specified name in the specified subscription, resource group, and environment
updateUPDATEenvironmentName, referenceDataSetName, resourceGroupName, subscriptionIdUpdates the reference data set with the specified name in the specified subscription, resource group, and environment.

SELECT examples

Lists all the available reference data sets associated with the subscription and within the specified resource group and environment.

SELECT
creation_time,
data_string_comparison_behavior,
environmentName,
key_properties,
location,
provisioning_state,
referenceDataSetName,
resourceGroupName,
subscriptionId,
tags
FROM azure.time_series_insights.vw_reference_data_sets
WHERE environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.time_series_insights.reference_data_sets (
environmentName,
referenceDataSetName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
location,
tags
)
SELECT
'{{ environmentName }}',
'{{ referenceDataSetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a reference_data_sets resource.

/*+ update */
UPDATE azure.time_series_insights.reference_data_sets
SET
tags = '{{ tags }}'
WHERE
environmentName = '{{ environmentName }}'
AND referenceDataSetName = '{{ referenceDataSetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified reference_data_sets resource.

/*+ delete */
DELETE FROM azure.time_series_insights.reference_data_sets
WHERE environmentName = '{{ environmentName }}'
AND referenceDataSetName = '{{ referenceDataSetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';