Skip to main content

environments

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

Overview

Nameenvironments
TypeResource
Idazure.time_series_insights.environments

Fields

NameDatatypeDescription
kindstringThe kind of the environment.
locationstringResource location
skuobjectThe sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 environments the sku determines the capacity of the environment, the ingress rate, and the billing rate.
tagsobjectResource tags

Methods

NameAccessible byRequired ParamsDescription
getSELECTenvironmentName, resourceGroupName, subscriptionIdGets the environment with the specified name in the specified subscription and resource group.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all the available environments associated with the subscription and within the specified resource group.
list_by_subscriptionSELECTsubscriptionIdLists all the available environments within a subscription, irrespective of the resource groups.
create_or_updateINSERTenvironmentName, resourceGroupName, subscriptionId, data__kind, data__skuCreate or update an environment in the specified subscription and resource group.
deleteDELETEenvironmentName, resourceGroupName, subscriptionIdDeletes the environment with the specified name in the specified subscription and resource group.
updateUPDATEenvironmentName, resourceGroupName, subscriptionId, data__kindUpdates the environment with the specified name in the specified subscription and resource group.

SELECT examples

Lists all the available environments within a subscription, irrespective of the resource groups.

SELECT
kind,
location,
sku,
tags
FROM azure.time_series_insights.environments
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.time_series_insights.environments (
environmentName,
resourceGroupName,
subscriptionId,
data__kind,
data__sku,
kind,
sku,
location,
tags
)
SELECT
'{{ environmentName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__kind }}',
'{{ data__sku }}',
'{{ kind }}',
'{{ sku }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a environments resource.

/*+ update */
UPDATE azure.time_series_insights.environments
SET
kind = '{{ kind }}',
tags = '{{ tags }}'
WHERE
environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND data__kind = '{{ data__kind }}';

DELETE example

Deletes the specified environments resource.

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