-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
azurerm_eventhub_namespace
is incorrectly replaced in 3.25.0+ when used with default zone_redundant
value in regions that support Availability Zones
#18756
Comments
Thanks @noelbundick-msft for raising this issue, I'm afraid that we may not be able to force the Besides, we have some tips in the docs about fact that the user's input will be overridden by api, have you got a chance to confirm about it? feel free to let me know if you have any other questions or concerns. |
@xiaxyi It seems to work fine on first deployment As far as I can tell - then it gets saved into Terraform state with the default value (False) rather than the computed value (True) So on next run - it detects a change, thinks it needs to recreate the namespace, and if allowed to do so - will drop it re: Did you run through the sample configuration and see different results? |
Thanks @noelbundick-msft for the comment, so based on the practice, the I'll try west us 3 and see how the property gets provisioned. |
Right - The planned value shows Running the same configuration a second time will detect that difference between planned (false) vs actual (true) and drop the namespace since |
@noelbundick-msft , I confirmed with service team. for premium namespace, zone_redundant will be enabled by default if the region selected supports availability zone, but it's not the case for standard namespace which will have it turned off by default. Have you tried to add the |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
v1.3.2 linux_amd64
AzureRM Provider Version
3.26.0
Affected Resource(s)/Data Source(s)
azurerm_eventhub_namespace
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Per the docs: "zone_redundant is computed by api based on the availability zone in each region. User's input will be overridden. It will turn into a computed property in 4.0 provider."
Expected behavior:
westus3
supports Availability Zones, so it should create a namespace withzone_redundant = true
terraform apply
will return "No changes. Your infrastructure matches the configuration."Actual Behaviour
zone_redundant=False
in here in the output, but the actual resource is created withzone_redundant=True
:zone_redundant
detects a change, which will destroy the entire namespace:Steps to Reproduce
This behaves correctly in regions without Availability Zones. Ex:
The behavior is different in regions that do support Availability Zones: Ex:
Important Factoids
No response
References
The behavior of
zone_redundant
was changed in3.25.0
(but not listed in the release notes), making it no longer a required property for deploying namespaces with the Premium SKU.In
<3.25.0
, this is not a problem, becausezone_redundant
must always be specified (and must always be True)Relevant PR is here: #18542
The text was updated successfully, but these errors were encountered: