Skip to main content

reference_data_sets

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

Overview

Namereference_data_sets
TypeResource
Idazure_extras.time_series_insights.reference_data_sets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
creationTimestring (date-time)The time the resource was created.
dataStringComparisonBehaviorstringThe reference data set key comparison behavior can be set using this property. By default, the value is 'Ordinal' - which means case sensitive key comparison will be performed while joining reference data with events or while adding new reference data. When 'OrdinalIgnoreCase' is set, case insensitive comparison will be used. Known values are: "Ordinal" and "OrdinalIgnoreCase".
keyPropertiesarrayThe list of key properties for the reference data set.
locationstringResource location. Required.
provisioningStatestringProvisioning state of the resource. Known values are: "Accepted", "Creating", "Updating", "Succeeded", "Failed", and "Deleting".
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, environment_name, reference_data_set_name, subscription_idGets the reference data set with the specified name in the specified environment.
list_by_environmentselectresource_group_name, environment_name, subscription_idLists all the available reference data sets associated with the subscription and within the specified resource group and environment.
create_or_updateinsertresource_group_name, environment_name, reference_data_set_name, subscription_id, location, propertiesCreate or update a reference data set in the specified environment.
updateupdateresource_group_name, environment_name, reference_data_set_name, subscription_idUpdates the reference data set with the specified name in the specified subscription, resource group, and environment.
create_or_updatereplaceresource_group_name, environment_name, reference_data_set_name, subscription_id, location, propertiesCreate or update a reference data set in the specified environment.
deletedeleteresource_group_name, environment_name, reference_data_set_name, subscription_idDeletes the reference data set with the specified name in the specified subscription, resource group, and environment.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
environment_namestringThe name of the Time Series Insights environment associated with the specified resource group. Required.
reference_data_set_namestringThe name of the Time Series Insights reference data set associated with the specified environment. Required.
resource_group_namestringName of an Azure Resource group. Required.
subscription_idstring

SELECT examples

Gets the reference data set with the specified name in the specified environment.

SELECT
id,
name,
creationTime,
dataStringComparisonBehavior,
keyProperties,
location,
provisioningState,
tags,
type
FROM azure_extras.time_series_insights.reference_data_sets
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND environment_name = '{{ environment_name }}' -- required
AND reference_data_set_name = '{{ reference_data_set_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update a reference data set in the specified environment.

INSERT INTO azure_extras.time_series_insights.reference_data_sets (
location,
tags,
properties,
resource_group_name,
environment_name,
reference_data_set_name,
subscription_id
)
SELECT
'{{ location }}' /* required */,
'{{ tags }}',
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ environment_name }}',
'{{ reference_data_set_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
tags,
type
;

UPDATE examples

Updates the reference data set with the specified name in the specified subscription, resource group, and environment.

UPDATE azure_extras.time_series_insights.reference_data_sets
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND environment_name = '{{ environment_name }}' --required
AND reference_data_set_name = '{{ reference_data_set_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

REPLACE examples

Create or update a reference data set in the specified environment.

REPLACE azure_extras.time_series_insights.reference_data_sets
SET
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND environment_name = '{{ environment_name }}' --required
AND reference_data_set_name = '{{ reference_data_set_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

DELETE examples

Deletes the reference data set with the specified name in the specified subscription, resource group, and environment.

DELETE FROM azure_extras.time_series_insights.reference_data_sets
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND environment_name = '{{ environment_name }}' --required
AND reference_data_set_name = '{{ reference_data_set_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;