-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEvenhubARM.json
63 lines (61 loc) · 2.11 KB
/
EvenhubARM.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
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"projectName": {
"type": "string",
"metadata": {
"description":"Specifies a project name that is used to generate the Event Hub name and the Namespace name."
}
},
"location":{
"type": "string",
"defaultValue":"[resourceGroup().location]",
"metadata": {
"description":"location of the eventhubName space"
}
},
"eventHubSku": {
"type": "string",
"allowedValues":["Basic","standard"],
"defaultValue":"Basic",
"metadata": {
"description":"specifies the message Tier for service Bus NameSpace"
}
}
},
"variables": {
"eventHubNamespaceName":"[concat(parameters('projectName'),'ns')]",
"eventHubName":"[parameters('projectName')]"
},
"resources": [
{
"apiVersion":"2017-04-01",
"type": "Microsoft.EventHub/namespaces",
"name":"[variables('eventHubNamespaceName')]",
"location":"[parameters('location')]",
"sku":{
"name": "[parameters('eventHubSku')]",
"tier": "[parameters('eventHubSku')]",
"capacity":1
},
"properties": {
"isAutoInflateEnabled": false,
"maximumThroughputUnits":0
}
},
{
"apiVersion":"2017-04-01",
"type": "Microsoft.EventHub/namespaces/eventhubs",
"name":"[concat(variables('eventHubNamespaceName'),'/',variables('eventHubName'))]",
"location":"[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.EventHub/namespaces', variables('eventHubNamespaceName'))]"
],
"properties": {
"messageRetentionInDays":1,
"partitionCount":1
}
}
]
}