From 48473cbe5c82334ba018a79670ba08efbde3315e Mon Sep 17 00:00:00 2001 From: Steph Date: Tue, 30 Jul 2024 09:26:00 +0200 Subject: [PATCH] add 100 as valid sku for log analytics cluster --- .../services/loganalytics/log_analytics_cluster_resource.go | 4 ++-- .../loganalytics/log_analytics_cluster_resource_test.go | 1 + website/docs/r/log_analytics_cluster.html.markdown | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/internal/services/loganalytics/log_analytics_cluster_resource.go b/internal/services/loganalytics/log_analytics_cluster_resource.go index a06836849c9c9..f0ac8a91bd19b 100644 --- a/internal/services/loganalytics/log_analytics_cluster_resource.go +++ b/internal/services/loganalytics/log_analytics_cluster_resource.go @@ -61,9 +61,9 @@ func (l LogAnalyticsClusterResource) Arguments() map[string]*schema.Schema { if !features.FourPointOh() { return 1000 } - return 500 + return 100 }(), - ValidateFunc: validation.IntInSlice([]int{500, 1000, 2000, 5000}), + ValidateFunc: validation.IntInSlice([]int{100, 500, 1000, 2000, 5000}), }, "tags": tags.Schema(), diff --git a/internal/services/loganalytics/log_analytics_cluster_resource_test.go b/internal/services/loganalytics/log_analytics_cluster_resource_test.go index 7876a526e58ec..657c4915a1123 100644 --- a/internal/services/loganalytics/log_analytics_cluster_resource_test.go +++ b/internal/services/loganalytics/log_analytics_cluster_resource_test.go @@ -141,6 +141,7 @@ resource "azurerm_log_analytics_cluster" "test" { name = "acctest-LA-%d" resource_group_name = azurerm_resource_group.test.name location = azurerm_resource_group.test.location + size_gb = 100 identity { type = "SystemAssigned" diff --git a/website/docs/r/log_analytics_cluster.html.markdown b/website/docs/r/log_analytics_cluster.html.markdown index a56f88ac0fe3f..21b3c120b012b 100644 --- a/website/docs/r/log_analytics_cluster.html.markdown +++ b/website/docs/r/log_analytics_cluster.html.markdown @@ -47,9 +47,9 @@ The following arguments are supported: * `identity` - (Required) An `identity` block as defined below. Changing this forces a new Log Analytics Cluster to be created. -* `size_gb` - (Optional) The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `500`, `1000`, `2000` or `5000`. Defaults to `1000`. +* `size_gb` - (Optional) The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `1000`. -~> **NOTE:** The cluster capacity must start at 500 GB and can be set to 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `500` GB. +~> **NOTE:** The cluster capacity must start at 500 GB and can be set to 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. * `tags` - (Optional) A mapping of tags which should be assigned to the Log Analytics Cluster.