hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.6k stars 4.64k forks source link

Support for additional sizes in azurerm_log_analytics_cluster (100, 200, 300, 400, 10000, 25000, 50000) #25286

Open LaurentLesle opened 7 months ago

LaurentLesle commented 7 months ago

Is there an existing issue for this?

Community Note

Description

Current documentation specifies a lower daily commitment to 100 GB per day is supported.

image

It is possible when using the API version '2022-10-01' to use different values for the sku (size_gb):

image

New or Affected Resource(s)/Data Source(s)

azurerm_log_analytics_cluster

Potential Terraform Configuration

resource "azurerm_log_analytics_cluster" "example" {
  name                = "example-cluster"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  size_gb             = 100

  identity {
    type = "SystemAssigned"
  }
}

References

https://learn.microsoft.com/en-us/azure/azure-monitor/logs/logs-dedicated-clusters?tabs=restapi#create-a-dedicated-cluster

https://github.com/Azure/azure-rest-api-specs/blob/9158709864db10cec00c04c6544d6fddf43fcc37/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-10-01/Clusters.json#L530

tombuildsstuff commented 7 months ago

This required an SDK upgrade, available here: https://github.com/hashicorp/go-azure-sdk/tree/main/resource-manager/operationalinsights/2022-10-01

sschmeck commented 3 months ago

Support for 100GB added by #26865.