You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 comments along the lines of "+1", "me too" or "any updates", 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 and review the contribution guide to help.
│ Error: `partition_count` cannot be changed unless the namespace sku is `Premium`
│
│ with azurerm_eventhub.my-eh-instance,
│ on eventhub.tf line 44, in resource "azurerm_eventhub""my-eh-instance":
│ 44: resource "azurerm_eventhub""my-eh-instance" {
│
Expected Behaviour
Event Hubs in dedicated clusters should have partition counts that can be modified after creation. Changing the partition counts for such event hubs work in the Azure Portal and via the Azure CLI:
Expected Behavior: Terraform should successfully update the partition_count for the Event Hub
Supporting Notes:
For dedicated clusters, the "Standard" SKU must be used for the Event Hub instance. If Premium is specified, the following error appears:
│ Namespace Name: "my-namespace"): performing CreateOrUpdate: unexpected status 400 (400 Bad Request) with error: PremiumOrBasicEHNamespacesNotSupportedOnDedicateEHCluster: Premium or Basic SKU Namespaces are not supported on Dedicated EventHub clusters. Please use Standard SKU instead.
│
│ with azurerm_eventhub_namespace.my-namespace,
│
│ with azurerm_eventhub_namespace.my-namespace,
│ on eventhub.tf line 36, in resource "azurerm_eventhub_namespace" "my-namespace":
│ 36: resource "azurerm_eventhub_namespace" "my-namespace" {
Actual Behaviour
Actual Behavior: Terraform fails with the error:
Error: 'partition_count' cannot be changed unless the namespace sku is 'Premium'
Steps to Reproduce
Use the sample TF file (modifying the namespace to be globally unique and using your subscription ID), and run terraform apply
Update the partition_count of the Event Hub in the Terraform config file (e.g. change from 3 to 4)
Re-run terraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Community Note
Terraform Version
1.9.6
AzureRM Provider Version
4.14.0
Affected Resource(s)/Data Source(s)
azurerm_eventhub
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Event Hubs in dedicated clusters should have partition counts that can be modified after creation. Changing the partition counts for such event hubs work in the Azure Portal and via the Azure CLI:
via Azure CLI (works):
via Terraform (failure)
Expected Behavior: Terraform should successfully update the
partition_count
for the Event HubSupporting Notes:
For dedicated clusters, the "Standard" SKU must be used for the Event Hub instance. If Premium is specified, the following error appears:
Actual Behaviour
Actual Behavior: Terraform fails with the error:
Error: 'partition_count' cannot be changed unless the namespace sku is 'Premium'
Steps to Reproduce
terraform apply
terraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: