-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvnet.json
More file actions
53 lines (53 loc) · 1.29 KB
/
vnet.json
File metadata and controls
53 lines (53 loc) · 1.29 KB
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
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.4.63.48766",
"templateHash": "882654641070826945"
}
},
"parameters": {
"location": {
"type": "string"
},
"vNetName": {
"type": "string"
},
"vNetAddressPrefix": {
"type": "string"
},
"subnets": {
"type": "array"
}
},
"functions": [],
"resources": [
{
"type": "Microsoft.Network/virtualNetworks",
"apiVersion": "2018-11-01",
"name": "[parameters('vNetName')]",
"location": "[parameters('location')]",
"properties": {
"copy": [
{
"name": "subnets",
"count": "[length(parameters('subnets'))]",
"input": {
"name": "[parameters('subnets')[copyIndex('subnets')].name]",
"properties": {
"addressPrefix": "[parameters('subnets')[copyIndex('subnets')].prefix]"
}
}
}
],
"addressSpace": {
"addressPrefixes": [
"[parameters('vNetAddressPrefix')]"
]
}
}
}
]
}