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.46k stars 4.54k forks source link

azurerm_log_analytics_workspace "Free" SKU is no longer a valid choice #26410

Open The-Real-Justin opened 2 weeks ago

The-Real-Justin commented 2 weeks ago

Is there an existing issue for this?

Community Note

Terraform Version

1.8.5

AzureRM Provider Version

3.108.0

Affected Resource(s)/Data Source(s)

azurerm_log_analytics_workspace

Terraform Configuration Files

resource "azurerm_log_analytics_workspace" "example" {
  name                = "law-example-aks-test"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  sku                 = "Free"
  retention_in_days   = 7
}

Debug Output/Panic Output

Error: performing CreateOrUpdate: unexpected status 400 (400 Bad Request) with error: InvalidParameter: Workspaces cannot be created or updated to free, standard or premium tiers. see 'https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#free-trial-pricing-tier'. Operation Id: 'c479d5008ead9743b2b368256f78740f'

Expected Behaviour

No response

Actual Behaviour

No response

Steps to Reproduce

No response

Important Factoids

No response

References

https://learn.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#free-trial-pricing-tier

Chambras commented 2 weeks ago

Hi @The-Real-Justin Based on the article Access to the legacy Free Trial pricing tier was limited on July 1, 2022. Pricing information for the Standalone and Per Node pricing tiers is available here. So, I think this behavior is normal.

The-Real-Justin commented 2 weeks ago

correct. After July 1, 2022, the free tier is no longer available.