-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazuredeployresources.json
101 lines (101 loc) · 3.3 KB
/
azuredeployresources.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
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"apiManagementServiceName": {
"type": "string",
"metadata": {
"description": "Name of your existing API Management instance"
}
},
"eventHubsNamespaceName": {
"type": "string",
"defaultValue": "GraylogAPISecurityEH",
"metadata": {
"description": "Name of the EventHubs namespace to be created"
}
},
"eventHubsInstanceName": {
"type": "string",
"defaultValue": "APIM-01",
"metadata": {
"description": "Name of the EventHubs instance to be created"
}
}
},
"variables": {
},
"resources": [
{
"apiVersion": "2021-04-01",
"type": "Microsoft.Resources/deployments",
"name": "linkedEventHubsTemplate",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "https://raw.githubusercontent.com/resurfaceio/iac-templates/master/azure/event-hub.json"
},
"parameters": {
"eventHubsNamespaceName": {
"value": "[parameters('eventHubsNamespaceName')]"
},
"eventHubsInstanceName": {
"value": "[parameters('eventHubsInstanceName')]"
}
}
}
},
{
"apiVersion": "2021-04-01",
"type": "Microsoft.Resources/deployments",
"name": "linkedLoggerAndPolicyTemplate",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "https://raw.githubusercontent.com/resurfaceio/iac-templates/master/azure/logger-and-policy.json"
},
"parameters": {
"apiManagementServiceName": {
"value": "[parameters('apiManagementServiceName')]"
},
"eventHubsNamespaceName": {
"value": "[parameters('eventHubsNamespaceName')]"
},
"eventHubsInstanceName": {
"value": "[parameters('eventHubsInstanceName')]"
}
}
},
"dependsOn": ["[resourceId('Microsoft.Resources/deployments', 'linkedEventHubsTemplate')]"]
},
{
"apiVersion": "2021-04-01",
"type": "Microsoft.Resources/deployments",
"name": "linkedStorageAccountTemplate",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "https://raw.githubusercontent.com/resurfaceio/iac-templates/master/azure/storageaccount.json"
}
}
}
],
"outputs": {
"azureEHConnectionString": {
"type": "string",
"value": "[reference('linkedEventHubsTemplate').outputs.azureEventHubConnectionString.value]"
},
"eventHubName": {
"type": "string",
"value": "[reference('linkedEventHubsTemplate').outputs.eventHubName.value]"
},
"azureStorageConnectionString": {
"type": "string",
"value": "[reference('linkedStorageAccountTemplate').outputs.storageConnectionString.value]"
},
"storageContainerName": {
"type": "string",
"value": "[reference('linkedStorageAccountTemplate').outputs.storageContainerName.value]"
}
}
}