-
Notifications
You must be signed in to change notification settings - Fork 0
/
subnetdeploy.json
49 lines (48 loc) · 1.33 KB
/
subnetdeploy.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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"ExistingvirtualNetworkName": {
"type": "string",
"metadata": {
"description": "Name of the VNET to add a subnet to"
}
},
"SubnetName": {
"type": "string",
"metadata": {
"description": "Name of the subnet to add"
}
},
"SubnetAddressPrefix": {
"type": "string",
"metadata": {
"description": "Address space of the subnet to add"
}
}
},
"variables": {
"apiVersion": "2015-06-15"
},
"resources": [
{
"apiVersion": "[variables('apiVersion')]",
"type": "Microsoft.Network/virtualNetworks/subnets",
"name": "[concat(parameters('ExistingvirtualNetworkName'), '/', parameters('SubnetName'))]",
"location": "[resourceGroup().location]",
"properties": {
"addressPrefix": "[parameters('SubnetAddressPrefix')]"
}
}
],
"outputs": {
"resultsaddressPrefix": {
"type": "string",
"value": "[parameters('SubnetAddressPrefix')]"
},
"resultsSubnetName": {
"type": "string",
"value": "[parameters('SubnetName')]"
}
}
}