-
Notifications
You must be signed in to change notification settings - Fork 0
/
eventHub.json
132 lines (129 loc) · 4.55 KB
/
eventHub.json
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"resourceTags": {
"type": "object",
"metadata": {
"description": "The tags that will be assigned to the EventHub namespace"
}
},
"namespaceName": {
"type": "string",
"metadata": {
"description": "Name of the EventHub namespace"
}
},
"eventHubName": {
"type": "string",
"metadata": {
"description": "Name of the EventHub instance"
}
},
"skipNamespaceDeployment": {
"type": "string",
"metadata": {
"description": "Set to yes to only deploy EventHub instance"
}
},
"isAutoInflateEnabled": {
"type": "string",
"metadata": {
"description": "Enable or disable AutoInflate TPUs"
}
},
"maximumThroughputUnits": {
"type": "string",
"metadata": {
"description": "Configure min and max TPUs"
}
},
"eventHubSku": {
"type": "string",
"metadata": {
"description": "Specifies the messaging tier for the Event Hub namespace"
}
},
"messageRetentionInDays": {
"type": "string",
"metadata": {
"description": "How long to retain the data in Event Hub"
}
},
"partitionCount": {
"type": "string",
"metadata": {
"description": "Number of partitions chosen"
}
},
"accessPolicyName": {
"type": "string",
"metadata": {
"description": "Number of partitions chosen"
}
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "The resource group name where the Event Hub will be deployed."
}
}
},
"variables": {
},
"resources": [
{
"condition": "[equals(parameters('skipNamespaceDeployment'),'yes')]",
"apiVersion": "2017-04-01",
"name": "[parameters('namespaceName')]",
"type": "Microsoft.EventHub/namespaces",
"location": "[parameters('location')]",
"tags": "[parameters('resourceTags')]",
"sku": {
"name": "[parameters('eventHubSku')]",
"tier": "[parameters('eventHubSku')]"
},
"properties": {
"isAutoInflateEnabled": "[parameters('isAutoInflateEnabled')]",
"messageRetentionInDays": "[parameters('messageRetentionInDays')]",
"partitionCount": "[parameters('partitionCount')]",
"maximumThroughputUnits": "[parameters('maximumThroughputUnits')]"
},
"resources": [
{
"apiVersion": "2017-04-01",
"name": "[parameters('eventHubName')]",
"tags": "[parameters('resourceTags')]",
"type": "eventhubs",
"dependsOn": [
"[concat('Microsoft.EventHub/namespaces/', parameters('namespaceName'))]"
],
"properties": {
"messageRetentionInDays": "[parameters('messageRetentionInDays')]",
"partitionCount": "[parameters('partitionCount')]"
},
"resources": [
{
"apiVersion": "2017-04-01",
"name": "[parameters('accessPolicyName')]",
"type": "authorizationRules",
"dependsOn": [
"[concat('Microsoft.EventHub/namespaces/',parameters('namespaceName'),'/eventhubs/',parameters('eventHubName'))]"
],
"location": "[parameters('location')]",
"properties": {
"Rights": [
"Send",
"Listen"
]
}
}
]
}
]
}
],
"outputs": {
}
}