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
eventhub.NamespacesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="Conflict" Message="<Error><Code>409</Code><Detail>Namespace tier cannot be changed, as AutoInflate is not available in Basic tier. </Detail></Error>
If I change it so I'm not setting the auto-scale values
, the provider correctly detects I'm in basic mode and set auto_inflate_enabled to false for me, but doesn't adjust the maximum_throughput_units value and I get the errror
Error: eventhub.NamespacesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="BadRequest" Message="Cannot set MaximumThroughputUnits property if AutoInflate is not enabled.
So a suggestion is to also force the maximum_throughput_units to 0 if setting auto_inflate_enabled to false.
I can achieve the change via the portal, so it may be required to do two calls, one to remove auto scale and one to change the Sku from Standard -> Basic, but I'd expect the provider to do this rather than it being a client responsibility.
The text was updated successfully, but these errors were encountered:
Fixes#10244.
In a corner case when we are downgrading from Standard to Basic SKU and namespace had both autoInflate enabled and
maximumThroughputUnits set - we need to force throughput units back to 0, otherwise downgrade fails
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
locked as resolved and limited conversation to collaborators
Mar 13, 2021
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.13.5
Affected Resource(s)
azurerm_eventhub_namespace
Terraform Configuration Files
Here's my module for configuring a Event Hub namespace in either Basic or Standard mode
Expected Behaviour
I should be able to go from Standard -> Basic
Actual Behaviour
If I have the code as is, i.e.
Then I get the error
If I change it so I'm not setting the auto-scale values
, the provider correctly detects I'm in basic mode and set
auto_inflate_enabled
to false for me, but doesn't adjust themaximum_throughput_units
value and I get the errrorSo a suggestion is to also force the maximum_throughput_units to 0 if setting auto_inflate_enabled to false.
I can achieve the change via the portal, so it may be required to do two calls, one to remove auto scale and one to change the Sku from Standard -> Basic, but I'd expect the provider to do this rather than it being a client responsibility.
The text was updated successfully, but these errors were encountered: