forked from njray/Hana-Test-Deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vnet.json
99 lines (97 loc) · 3.26 KB
/
vnet.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
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vnetName": {
"defaultValue": "vnet",
"type": "string",
"metadata": {
"description": "Name for the virtual network"
}
},
"addressPrefix": {
"defaultValue": "10.0.0.0/16",
"type": "string",
"metadata": {
"description": "address range for the virtual network in CIDR notation"
} },
"DBSubnetName": {
"defaultValue": "dbsubnet",
"type": "string",
"metadata": {
"description": "subnet name for database tier"
}
},
"DBSubnetPrefix": {
"defaultValue": "10.0.0.0/24",
"type": "string",
"metadata": {
"description": "subnet address range for database tier in CIDR notation"
}
},
"AppSubnetName": {
"defaultValue": "appsubnet",
"type": "string",
"metadata": {
"description": "subnet name for app tier"
}
},
"AppSubnetPrefix": {
"defaultValue": "10.0.1.0/24",
"type": "string",
"metadata": {
"description": "subnet address range for app tier in CIDR notation"
}
},
"MgtSubnetName": {
"defaultValue": "mgtsubnet",
"type": "string",
"metadata": {
"description": "subnet name for shared services tier"
}
},
"MgtSubnetPrefix": {
"defaultValue": "10.0.2.0/24",
"type": "string",
"metadata": {
"description": "subnet address range for shared services tier in CIDR notation"
}
}
},
"variables": {
},
"resources": [{
"type": "Microsoft.Network/virtualNetworks",
"name": "[parameters('vnetName')]",
"apiVersion": "2015-06-15",
"location": "[resourceGroup().location]",
"properties": {
"addressSpace": {
"addressPrefixes": [
"[parameters('addressPrefix')]"
]
},
"subnets": [
{
"name": "[parameters('DBSubnetName')]",
"properties": {
"addressPrefix": "[parameters('DBSubnetPrefix')]"
}
},
{
"name": "[parameters('AppSubnetName')]",
"properties": {
"addressPrefix": "[parameters('AppSubnetPrefix')]"
}
},
{
"name": "[parameters('MgtSubnetName')]",
"properties": {
"addressPrefix": "[parameters('MgtSubnetPrefix')]"
}
}
]
}
}
]
}