-
Notifications
You must be signed in to change notification settings - Fork 5
/
Effect of updating a resource's property in incremental mode - armtemplate.json
84 lines (84 loc) · 2.54 KB
/
Effect of updating a resource's property in incremental mode - armtemplate.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
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vnetName": {
"defaultValue": "vnet01",
"type": "String",
"metadata": {
"description": "VNet name"
}
},
"vnetAddressPrefix": {
"defaultValue": "10.0.0.0/16",
"type": "String",
"metadata": {
"description": "Address prefix"
}
},
"subnet1Prefix": {
"defaultValue": "10.0.0.0/24",
"type": "String",
"metadata": {
"description": "Subnet 1 Prefix"
}
},
"subnet1Name": {
"defaultValue": "Subnet1",
"type": "String",
"metadata": {
"description": "Subnet 1 Name"
}
},
"subnet2Prefix": {
"defaultValue": "10.0.1.0/24",
"type": "String",
"metadata": {
"description": "Subnet 2 Prefix"
}
},
"subnet2Name": {
"defaultValue": "Subnet2",
"type": "String",
"metadata": {
"description": "Subnet 2 Name"
}
},
"location": {
"defaultValue": "[resourceGroup().location]",
"type": "String",
"metadata": {
"description": "Location for all resources."
}
}
},
"resources": [
{
"type": "Microsoft.Network/virtualNetworks",
"apiVersion": "2021-08-01",
"name": "[parameters('vnetName')]",
"location": "[parameters('location')]",
"properties": {
"addressSpace": {
"addressPrefixes": [
"[parameters('vnetAddressPrefix')]"
]
},
"subnets": [
{
"name": "[parameters('subnet1Name')]",
"properties": {
"addressPrefix": "[parameters('subnet1Prefix')]"
}
},
{
"name": "[parameters('subnet2Name')]",
"properties": {
"addressPrefix": "[parameters('subnet2Prefix')]"
}
}
]
}
}
]
}