-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Event hub zone_redundant attribute - deprecated but can't remove (premium sku namespace) #26779
Comments
I have tried to remove this parameter from existing code, which leads to remove and re-create existing EH Namespace with no zone redundancy. Reason for recreation EH Namespace - zone_redundant is set to true in my code and default value for this parameter is false. However removing it forcing EH removal and recreation which should not happen. Please have a look. |
Hi @stephybun, Since v4.0 has been released today, and zone_redundant parameter is removed from azurerm_eventhub_namespace. Could you please guide us how to remove this parameter without dropping EventHub as it contains multiple messages in production which can't be removed. |
Hey @saujanya-ikea When you upgrade to 4.0 you will be able to remove the |
All looks good now. @AlexcFrench You can close this request I believe, issue fixed in the latest release. Thanks to @stephybun for replying and updating. |
Hi, agreed, this is resolved in the azurerm v4.00.0+ provider. Time to upgrade (again!) :-) |
@saujanya-ikea did you have to do anything special in preparation of the upgrade of the provider? When I attempt to apply with v4 of the provider I get the error
Looking in the json object in azure, I can indeed see that property is still on the object (value |
We see the same issue as @KYannick after updating azurerm and removing zone_redundant from the code terraform tries to update ZoneRedundant setting and getting same error message |
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
1.9.2
AzureRM Provider Version
3.113.0
Affected Resource(s)/Data Source(s)
azurerm_eventhub_namespace
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Be able to remove the 'zone_redundant' attribute (to clean up the deprecation warning) and let the premium sku determine the Az configuration.
(This appears to just be a logic error in how this setting is handled for the premium sku vs the deprecation mesage)
Actual Behaviour
Removing this attribute should not cause the event hub to rebuild. However, it has to be left and set to 'True' even though it is a computed attribute for Preimum event hubs and not required.
The documentation clearly states that it must be set to True but the deprecation warning infers it needs to be removed
Steps to Reproduce
Latest code - terraform apply will give the deprecation warning.
remove the zone_redundant value and it will want to force a rebuild even for a premium SKU
Important Factoids
Not a massive issue - just get an unwanted deprecation warning.
References
n/a
The text was updated successfully, but these errors were encountered: