-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathevent-hubs-namespace.bicep
44 lines (36 loc) · 1.49 KB
/
event-hubs-namespace.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//=============================================================================
// Event Hubs namespace
//=============================================================================
//=============================================================================
// Imports
//=============================================================================
import { eventHubSettingsType } from '../../types/settings.bicep'
//=============================================================================
// Parameters
//=============================================================================
@description('Location to use for all resources')
param location string
@description('The tags to associate with the resource')
param tags object
@description('The settings for the Event Hubs namespace that will be created')
param eventHubSettings eventHubSettingsType
//=============================================================================
// Resources
//=============================================================================
resource eventHubsNamespace 'Microsoft.EventHub/namespaces@2024-01-01' = {
name: eventHubSettings.namespaceName
location: location
tags: tags
sku: {
name: 'Standard' // Standard is the minimum version that supports multiple consumer groups on an event hub
tier: 'Standard'
capacity: 1
}
identity: {
type: 'SystemAssigned'
}
properties: {
isAutoInflateEnabled: false
maximumThroughputUnits: 0
}
}