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.53k stars 4.61k forks source link

Terraform 0.14 plans are broken for dedicated eventhub clusters with capacity > 1 #9650

Closed alex-goncharov closed 3 years ago

alex-goncharov commented 3 years ago

Community Note

Terraform (and AzureRM Provider) Version

Terraform v0.14.0

Affected Resource(s)

Terraform Configuration Files

resource "azurerm_eventhub_cluster" "this" {
  location            = "eastus2"
  name                = "cluster"
  resource_group_name = "my"
  sku_name            = "Dedicated_1"

  lifecycle {
    ignore_changes = [
      sku_name
    ]
  }
}

Debug Output

azurerm_eventhub_cluster.this: Refreshing state... [id=...] ... 2020-12-03T11:45:33.113+0100 [DEBUG] plugin.terraform-provider-azurerm_v2.38.0_x5: [DEBUG] AzureRM Request: ... 2020-12-03T11:45:33.978+0100 [DEBUG] plugin.terraform-provider-azurerm_v2.38.0_x5: {"sku":{"name":"Dedicated","capacity":8},"id":"...","name":"cluster","type":"Microsoft.EventHub/clusters","location":"eastus2","tags":{},"properties":{"createdAt":"2020-08-30T07:59:42.233Z","updatedAt":"2020-09-25T22:10:44.027Z","metricId":"PROD-BN3-570"}}

2020/12/03 11:45:33 [TRACE] EvalWriteState: using RefreshState for azurerm_eventhub_cluster.this 2020/12/03 11:45:33 [TRACE] EvalWriteState: recording 0 dependencies for azurerm_eventhub_cluster.this 2020/12/03 11:45:33 [TRACE] EvalWriteState: writing current state object for azurerm_eventhub_cluster.this 2020/12/03 11:45:33 [TRACE] Re-validating config for "azurerm_eventhub_cluster.this" 2020/12/03 11:45:33 [TRACE] GRPCProvider: ValidateResourceTypeConfig 2020/12/03 11:45:33 [TRACE] vertex "azurerm_eventhub_cluster.this": visit complete 2020/12/03 11:45:33 [TRACE] vertex "azurerm_eventhub_cluster.this": dynamic subgraph encountered errors 2020/12/03 11:45:33 [TRACE] vertex "azurerm_eventhub_cluster.this": visit complete 2020/12/03 11:45:33 [TRACE] vertex "azurerm_eventhub_cluster.this (expand)": dynamic subgraph encountered errors 2020/12/03 11:45:33 [TRACE] vertex "azurerm_eventhub_cluster.this (expand)": visit complete 2020/12/03 11:45:33 [TRACE] dag/walk: upstream of "meta.count-boundary (EachMode fixup)" errored, so skipping 2020/12/03 11:45:33 [TRACE] dag/walk: upstream of "provider[\"registry.terraform.io/hashicorp/azurerm\"] (close)" errored, so skipping

Error: expected sku_name to be one of [Dedicated_1], got Dedicated_8

on ec.tf line 1, in resource "azurerm_eventhub_cluster" "this": 1: resource "azurerm_eventhub_cluster" "this" {

Expected Behaviour

Plan produces no changes

Actual Behaviour

Plan errors

Steps to Reproduce

Run the plan above.

Important Factoids

ghost commented 3 years ago

This has been released in version 2.39.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.39.0"
}
# ... other configuration ...
ghost commented 3 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!