Skip to main content

environments

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

Overview

Nameenvironments
TypeResource
Idazure.time_series_insights.environments

Fields

The following fields are returned by SELECT queries:

The environment definition was successfully retrieved and is in the response. If you are polling for the completion of a provisioning or scale operation, you can check its status via the provisioningState property.

NameDatatypeDescription
kindstringThe kind of the environment.
locationstringThe geo-location where the resource lives
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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, environmentName$expandGets the environment with the specified name in the specified subscription and resource group.
list_by_resource_groupselectsubscriptionId, resourceGroupNameLists 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_updateinsertsubscriptionId, resourceGroupName, environmentName, data__kind, data__skuCreate or update an environment in the specified subscription and resource group.
updateupdatesubscriptionId, resourceGroupName, environmentName, data__kindUpdates the environment with the specified name in the specified subscription and resource group.
deletedeletesubscriptionId, resourceGroupName, environmentNameDeletes the environment with the specified name in the specified subscription and resource group.

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
environmentNamestringThe name of the Time Series Insights environment associated with the specified resource group.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
$expandstringSetting $expand=status will include the status of the internal services of the environment in the Time Series Insights service.

SELECT examples

Gets the environment with the specified name in the specified subscription and resource group.

SELECT
kind,
location,
sku,
tags
FROM azure.time_series_insights.environments
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND environmentName = '{{ environmentName }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Create or update an environment in the specified subscription and resource group.

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

UPDATE examples

Updates the environment with the specified name in the specified subscription and resource group.

UPDATE azure.time_series_insights.environments
SET
data__kind = '{{ kind }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND environmentName = '{{ environmentName }}' --required
AND data__kind = '{{ kind }}' --required
RETURNING
kind,
location,
sku,
tags;

DELETE examples

Deletes the environment with the specified name in the specified subscription and resource group.

DELETE FROM azure.time_series_insights.environments
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND environmentName = '{{ environmentName }}' --required
;