-
Notifications
You must be signed in to change notification settings - Fork 0
/
azuredeploy.json
202 lines (202 loc) · 7.46 KB
/
azuredeploy.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"deploymentPrefix": {
"type": "string"
},
"storageAccountName": {
"type": "string",
"defaultValue": "[concat(parameters('deploymentPrefix'),'datastorage')]",
"metadata": {
"description": "Specifies the name of the Data / File Share Storage account."
}
},
"batchStorageAccountName": {
"type": "string",
"defaultValue": "[concat(parameters('deploymentPrefix'),'batchstorage')]",
"metadata": {
"description": "Specifies the name of the Batch Azure Storage account."
}
},
"fileShareName": {
"type": "string",
"minLength": 3,
"maxLength": 63,
"defaultValue": "[concat(parameters('deploymentPrefix'),'-share')]",
"metadata": {
"description": "Specifies the name of the File Share. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only."
}
},
"vnetName": {
"type": "string",
"defaultValue": "[concat(parameters('deploymentPrefix'),'-vnet')]",
"metadata": {
"description": "Specifies the name of the VNet."
}
},
"vnetAddressSpace":{
"type": "string",
"defaultValue": "10.10.0.0/16",
"metadata": {
"description": "Address space of the VNet."
}
},
"subnetName": {
"type": "string",
"defaultValue": "[concat(parameters('deploymentPrefix'),'-batch-subnet')]",
"metadata": {
"description": "Name the batch subNet."
}
},
"subnetAddressSpace":{
"type": "string",
"defaultValue": "10.10.10.0/24",
"metadata": {
"description": "Address space of the batch subnet."
}
},
"batchAccountName": {
"type": "string",
"defaultValue": "[concat(parameters('deploymentPrefix'),'batch')]",
"metadata": {
"description": "Name of the Batch Account."
}
},
"appInsightsName":{
"type": "string",
"defaultValue": "[concat(parameters('deploymentPrefix'),'-appInsights')]",
"metadata": {
"description": "Name of the App Insights instance"
}
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Specifies the location in which the Azure Storage resources should be deployed."
}
}
},
"variables":{
"batchStorageSKU": "Standard_LRS",
"batchAppName01": "ACIInterchangeStep1"
},
"resources": [
{
"comments": "Storage Account",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2018-07-01",
"name": "[parameters('storageAccountName')]",
"location": "[parameters('location')]",
"kind": "FileStorage",
"sku": {
"name": "Premium_LRS"
},
"properties": {
"accessTier": "Hot"
}
},
{
"comments": "File Share",
"type": "Microsoft.Storage/storageAccounts/fileServices/shares",
"apiVersion": "2019-06-01",
"name": "[concat(parameters('storageAccountName'), '/default/', parameters('fileShareName'))]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]"
]
},
{
"comments": "This storage account is used to associate to a batch account",
"type": "Microsoft.Storage/storageAccounts",
"name": "[parameters('batchstorageAccountname')]",
"apiVersion": "2019-06-01",
"location": "[parameters('location')]",
"sku": {
"name": "[variables('batchStorageSKU')]"
},
"kind": "Storage",
"properties": {}
},
{
"comments": "VNet and Subnets",
"apiVersion": "2018-04-01",
"type": "Microsoft.Network/virtualNetworks",
"name": "[parameters('vnetName')]",
"location": "[resourcegroup().location]",
"properties": {
"addressSpace": {
"addressPrefixes": [
"[parameters('vnetAddressSpace')]"
]
},
"subnets": [
{
"name": "[parameters('subnetName')]",
"properties": {
"addressPrefix": "[parameters('subnetAddressSpace')]",
"serviceEndpoints": [
{
"service": "Microsoft.Storage",
"locations": [
"[resourcegroup().location]"
]
},
{
"service": "Microsoft.KeyVault",
"locations": [
"[resourcegroup().location]"
]
}
]
}
}
]
}
},
{
"type": "Microsoft.Batch/batchAccounts",
"name": "[parameters('batchAccountName')]",
"apiVersion": "2019-04-01",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', parameters('batchStorageAccountName'))]"
],
"tags": {
"ObjectName": "[parameters('batchAccountName')]"
},
"properties": {
"autoStorage": {
"storageAccountId": "[resourceId('Microsoft.Storage/storageAccounts', parameters('batchStorageAccountName'))]"
}
},
"resources": [
{
"name": "[concat(parameters('batchAccountName'),'/',variables('batchAppName01'))]",
"type": "Microsoft.Batch/batchAccounts/applications",
"apiVersion": "2019-04-01",
"dependsOn": [
"[resourceId('Microsoft.Batch/batchAccounts', parameters('batchAccountName'))]"
],
"properties": {
"displayName": "[variables('batchAppName01')]",
"allowUpdates": "true"
},
"resources": []
}
]
},
{
"comments":"App Insights Instance to be used by Batch Applications",
"name": "[parameters('appInsightsName')]",
"type": "Microsoft.Insights/components",
"apiVersion": "2015-05-01",
"location": "[parameters('location')]",
"tags": {},
"kind": "string",
"properties": {
"Application_Type": "other"
}
}
]
}