Skip to content

Commit

Permalink
Remove fourpointoh flag from service/loganalytics
Browse files Browse the repository at this point in the history
  • Loading branch information
sreallymatt committed Dec 18, 2024
1 parent 4a6054e commit 100f9a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 3 additions & 9 deletions internal/services/loganalytics/log_analytics_cluster_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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}),
},

Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/log_analytics_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 100f9a7

Please sign in to comment.