Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating the ZoneRedundant property on a namespace is not supported #7606

Closed
dhananjaya94 opened this issue Jul 7, 2020 · 2 comments · Fixed by #7612
Closed

Updating the ZoneRedundant property on a namespace is not supported #7606

dhananjaya94 opened this issue Jul 7, 2020 · 2 comments · Fixed by #7612

Comments

@dhananjaya94
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureRM Provider) Version

Affected Resource(s)

  • azurerm_eventhub_namespace

Terraform Configuration Files

resource "azurerm_eventhub_namespace" "eventhub_namespace" {
  name                = var.namespace_name
  location            = var.location
  resource_group_name = var.resource_group_name
  sku                 = "Standard"
  capacity            = var.capacity
  auto_inflate_enabled = true
  maximum_throughput_units = var.maximum_throughput_units

  zone_redundant = true
...
}

Debug Output

        sku                                 = "Standard"
        tags                                = {
            "environment" = "prod"
            "pattern"     = "choreo-prod"
            "project"     = "choreo"
            "terraform"   = "true"
        }
      ~ zone_redundant                      = false -> true
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

Panic Output

Error: eventhub.NamespacesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="BadRequest" Message="Updating the ZoneRedundant property on a namespace is not supported. CorrelationId: 4028e511-43cc-622e-f7ae-9c2bf0e5d980"

  on ../../../modules/azurerm/EventHub-Namespace/eventhub_namespace.tf line 1, in resource "azurerm_eventhub_namespace" "eventhub_namespace":
   1: resource "azurerm_eventhub_namespace" "eventhub_namespace" {

Expected Behavior

Enable zone_redundant in eventhub namespace.

Actual Behavior

Terraform fails

Steps to Reproduce

  1. terraform apply

Important Factoids

References

@favoretti
Copy link
Collaborator

I suppose I need to force resource re-creation there..

@ghost
Copy link

ghost commented Aug 9, 2020

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 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Aug 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants