environments
Creates, updates, deletes, gets or lists a environments
resource.
Overview
Name | environments |
Type | Resource |
Id | azure.time_series_insights.environments |
Fields
Name | Datatype | Description |
---|---|---|
kind | string | The kind of the environment. |
location | string | Resource location |
sku | object | The 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. |
tags | object | Resource tags |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | environmentName, resourceGroupName, subscriptionId | Gets the environment with the specified name in the specified subscription and resource group. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Lists all the available environments associated with the subscription and within the specified resource group. |
list_by_subscription | SELECT | subscriptionId | Lists all the available environments within a subscription, irrespective of the resource groups. |
create_or_update | INSERT | environmentName, resourceGroupName, subscriptionId, data__kind, data__sku | Create or update an environment in the specified subscription and resource group. |
delete | DELETE | environmentName, resourceGroupName, subscriptionId | Deletes the environment with the specified name in the specified subscription and resource group. |
update | UPDATE | environmentName, resourceGroupName, subscriptionId, data__kind | Updates 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: kind
value: string
- name: sku
value:
- name: name
value: string
- name: capacity
value: integer
- name: location
value: string
- name: tags
value: object
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 }}';