-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo03.SerialCopies.json
77 lines (77 loc) · 2.52 KB
/
demo03.SerialCopies.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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"adminUsername": {
"type": "string",
"metadata": {
"description": "User name for the Virtual Machine."
}
},
"adminPassword": {
"type": "securestring",
"metadata": {
"description": "Password for the Virtual Machine."
}
},
"dnsLabelPrefix": {
"type": "string",
"metadata": {
"description": "Unique DNS Name for the Public IP used to access the Virtual Machine."
}
},
"ubuntuOSVersion": {
"type": "string",
"defaultValue": "16.04.0-LTS",
"allowedValues": [
"12.04.5-LTS",
"14.04.5-LTS",
"15.10",
"16.04.0-LTS"
],
"metadata": {
"description": "The Ubuntu version for the VM. This will pick a fully patched image of this given Ubuntu version."
}
}
},
"variables": {
"templatelink": "https://raw.githubusercontent.com/rjmax/Ready2017/master/demo03.LinuxVM.json"
},
"resources": [
{
"apiVersion": "2015-01-01",
"name": "[concat('nestedDeployment',copyIndex())]",
"type": "Microsoft.Resources/deployments",
"copy": {
"name": "myCopySet",
"count": 4,
"mode": "serial",
"batchSize": 2
},
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('templatelink')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"adminUsername": {
"value": "[parameters('adminUsername')]"
},
"adminPassword": {
"value": "[parameters('adminPassword')]"
},
"dnsLabelPrefix": {
"value": "[parameters('dnsLabelPrefix')]"
},
"ubuntuOSVersion": {
"value": "[parameters('ubuntuOSVersion')]"
},
"index":{
"value": "[copyIndex()]"
}
}
}
}
]
}