Azure / Azure/bicep

Microsoft.EventHub/namespaces - When isAutoInflateEnabled=true the maximumThroughputUnits needs to be 1 - 40, not 0

Open
#7,900 0 comments 0 reactions 0 assignees View on GitHub
provider bug
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

![image](https://user-images.githubusercontent.com/42029884/183599590-375ead64-bc9c-4247-93d8-30a2b0795196.png)

**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

![image](https://user-images.githubusercontent.com/42029884/183601220-8692e9e1-b0b7-4d91-bc29-17d3ed0fd977.png)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.