-
Notifications
You must be signed in to change notification settings - Fork 6
/
Redeploy a template in different deployment modes ARM template.json
109 lines (109 loc) · 2.73 KB
/
Redeploy a template in different deployment modes ARM template.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
100
101
102
103
104
105
106
107
108
109
{
"$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."
}
},
"storageAccountName": {
"defaultValue": "strdev012",
"type": "String",
"metadata": {
"description": "Storage account name."
}
},
"storageAccountType": {
"defaultValue": "Standard_LRS",
"type": "String",
"metadata": {
"description": "Storage account type."
}
}
},
"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')]"
}
}
]
}
},
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[parameters('storageAccountName')]",
"location": "[parameters('location')]",
"apiVersion": "2018-07-01",
"sku": {
"name": "[parameters('storageAccountType')]"
},
"kind": "StorageV2",
"properties": {}
}
]
}