From 100f9a7cb53b514f4056446e2c9d684f6e93172d Mon Sep 17 00:00:00 2001 From: sreallymatt <106555974+sreallymatt@users.noreply.github.com> Date: Wed, 18 Dec 2024 10:45:10 -0700 Subject: [PATCH] Remove fourpointoh flag from service/loganalytics --- .../loganalytics/log_analytics_cluster_resource.go | 12 +++--------- website/docs/r/log_analytics_cluster.html.markdown | 2 +- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/internal/services/loganalytics/log_analytics_cluster_resource.go b/internal/services/loganalytics/log_analytics_cluster_resource.go index ed189fb3a766..9908313d293c 100644 --- a/internal/services/loganalytics/log_analytics_cluster_resource.go +++ b/internal/services/loganalytics/log_analytics_cluster_resource.go @@ -16,7 +16,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/loganalytics/validate" @@ -55,14 +54,9 @@ func (l LogAnalyticsClusterResource) Arguments() map[string]*schema.Schema { "identity": commonschema.SystemOrUserAssignedIdentityRequiredForceNew(), "size_gb": { - Type: pluginsdk.TypeInt, - Optional: true, - Default: func() int { - if !features.FourPointOh() { - return 1000 - } - return 100 - }(), + Type: pluginsdk.TypeInt, + Optional: true, + Default: 100, ValidateFunc: validation.IntInSlice([]int{100, 200, 300, 400, 500, 1000, 2000, 5000, 10000, 25000, 50000}), }, diff --git a/website/docs/r/log_analytics_cluster.html.markdown b/website/docs/r/log_analytics_cluster.html.markdown index 3c41bebacc10..38ec4794e145 100644 --- a/website/docs/r/log_analytics_cluster.html.markdown +++ b/website/docs/r/log_analytics_cluster.html.markdown @@ -49,7 +49,7 @@ The following arguments are supported: * `size_gb` - (Optional) The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. -~> **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 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. +~> **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 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). * `tags` - (Optional) A mapping of tags which should be assigned to the Log Analytics Cluster.