Manages an Azure IoT Time Series Insights Standard Environment.
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_iot_time_series_insights_standard_environment" "example" {
name = "example"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
sku_name = "S1_1"
data_retention_time = "P30D"
}
The following arguments are supported:
name
- (Required) Specifies the name of the Azure IoT Time Series Insights Standard Environment. Changing this forces a new resource to be created. Must be globally unique.
resource_group_name
- (Required) The name of the resource group in which to create the Azure IoT Time Series Insights Standard Environment. Changing this forces a new resource to be created.
location
- (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
sku_name
- (Required) Specifies the SKU Name for this IoT Time Series Insights Standard Environment. It is string consisting of two parts separated by an underscore(_).The first part is the name
, valid values include: S1
and S2
. The second part is the capacity
(e.g. the number of deployed units of the sku
), which must be a positive integer
(e.g. S1_1
). Possible values are S1_1
, S1_2
, S1_3
, S1_4
, S1_5
, S1_6
, S1_7
, S1_8
, S1_9
, S1_10
, S2_1
, S2_2
, S2_3
, S2_4
, S2_5
, S2_6
, S2_7
, S2_8
, S2_9
and S2_10
. Changing this forces a new resource to be created.
data_retention_time
- (Required) Specifies the ISO8601 timespan specifying the minimum number of days the environment's events will be available for query. Changing this forces a new resource to be created.
storage_limit_exceeded_behavior
- (Optional) Specifies the behaviour the IoT Time Series Insights service should take when the environment's capacity has been exceeded. Valid values include PauseIngress
and PurgeOldData
. Defaults to PurgeOldData
.
partition_key
- (Optional) The name of the event property which will be used to partition data. Changing this forces a new resource to be created.
tags
- (Optional) A mapping of tags to assign to the resource.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the IoT Time Series Insights Standard Environment.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the IoT Time Series Insights Standard Environment.update
- (Defaults to 30 minutes) Used when updating the IoT Time Series Insights Standard Environment.read
- (Defaults to 5 minutes) Used when retrieving the IoT Time Series Insights Standard Environment.delete
- (Defaults to 30 minutes) Used when deleting the IoT Time Series Insights Standard Environment.Azure IoT Time Series Insights Standard Environment can be imported using the resource id
, e.g.
terraform import azurerm_iot_time_series_insights_standard_environment.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.TimeSeriesInsights/environments/example