Microsoft.EventHub/namespaces - When isAutoInflateEnabled=true the maximumThroughputUnits needs to be 1 - 40, not 0
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 21m
- Merged PRs (30d)
- 79
Description
**Bicep version**
Bicep CLI v0.9.1
**Describe the bug**
When creating an EventHub Namespace with `isAutoInflateEnabled: true` the `maximumThroughputUnits` needs to be 1 - 40, however the documentation states it should be set to 0

**To Reproduce**
Create a bicep template with the following
```bicep
resource ehns 'Microsoft.EventHub/namespaces@2021-11-01' = {
name: 'myehns'
location: location
sku: {
name: 'Standard'
tier: 'Standard'
capacity: 1
}
properties: {
isAutoInflateEnabled: true
maximumThroughputUnits: 0
}
}
```
When deploying (via an Azure DevOps Pipeline) the following error is returned `EventHub capacity out of range for AutoInflate.`
Update template to be `maximumThroughputUnits: 10`
```bicep
resource ehns 'Microsoft.EventHub/namespaces@2021-11-01' = {
name: 'myehns'
location: location
sku: {
name: 'Standard'
tier: 'Standard'
capacity: 1
}
properties: {
isAutoInflateEnabled: true
maximumThroughputUnits: 10
}
}
```
**Additional context**
Also mentioned on here https://docs.microsoft.com/en-us/azure/templates/microsoft.eventhub/namespaces?pivots=deployment-language-bicep#ehnamespaceproperties

But has the correct example on https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.eventhub/eventhubs-create-namespace-and-enable-inflate
Contributor guide
Assessment
This issue has not been assessed yet.