-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvirtualNetworks.json
97 lines (97 loc) · 2.85 KB
/
virtualNetworks.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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "2017.09.01.0",
"parameters": {
"Name": {
"type": "string",
"metadata": {
"description": "Resource name."
}
},
"addressSpace": {
"type": "array",
"metadata": {
"description": "The address prefix for the subnet."
}
},
"dhcpOptions": {
"type": "array",
"defaultValue": [],
"metadata": {
"description": "The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network."
}
},
"enableDdosProtection": {
"type": "bool",
"defaultValue": false,
"metadata": {
"description": "Indicates if DDoS protection is enabled for all the protected resources in a Virtual Network."
}
},
"enableVmProtection": {
"type": "bool",
"defaultValue": false,
"metadata": {
"description": "Indicates if Vm protection is enabled for all the subnets in a Virtual Network."
}
},
"subnets": {
"type": "array",
"metadata": {
"description": "A list of subnets in a Virtual Network."
}
},
"DependsOn": {
"type": "array",
"defaultValue": [],
"metadata": {
"description": "Pass dependencies"
}
}
},
"variables": {
"comment": {
"documentation": "https://docs.microsoft.com/en-us/rest/api/virtualnetwork/virtualnetworks/createorupdate#definitions_virtualnetwork"
},
"virtualNetworks": {
"name": "[parameters('Name')]",
"type": "Microsoft.Network/virtualNetworks",
"location": "[resourceGroup().location]",
"apiVersion": "2017-09-01",
"dependsOn": "[if(empty(parameters('DependsOn')),json('null'),parameters('DependsOn'))]",
"properties": {
"addressSpace": {
"addressPrefixes": "[parameters('addressSpace')]"
},
"dhcpOptions": {
"dnsServers": "[if(empty(parameters('dhcpOptions')),json('null'),parameters('dhcpOptions'))]"
},
"subnets": "[parameters('subnets')]"
}
}
},
"resources": [
{
"name": "[parameters('Name')]",
"type": "Microsoft.Network/virtualNetworks",
"location": "[resourceGroup().location]",
"apiVersion": "2017-09-01",
"dependsOn": "[if(empty(parameters('DependsOn')),json('null'),parameters('DependsOn'))]",
"properties": {
"addressSpace": {
"addressPrefixes": "[parameters('addressSpace')]"
},
"dhcpOptions": {
"dnsServers": "[if(empty(parameters('dhcpOptions')),json('null'),parameters('dhcpOptions'))]"
},
"subnets": "[parameters('subnets')]"
}
}
],
"outputs": {
"virtualNetworks": {
"type": "object",
"value": "[variables('virtualNetworks')]"
}
}
}