-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtesttemplate.json
More file actions
81 lines (81 loc) · 2.46 KB
/
testtemplate.json
File metadata and controls
81 lines (81 loc) · 2.46 KB
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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"startIndex": {
"type": "int",
"defaultValue": 230,
"metadata": {
"description": "First integer to add"
}
},
"count": {
"type": "int",
"defaultValue": 20,
"metadata": {
"description": "Second integer to add"
}
}
},
"variables": {
"networkSettings": {
"virtualNetworkName": "virtualnetwork",
"addressPrefix": "10.0.0.0/16",
"subnet": {
"dse": {
"name": "dse",
"prefix": "10.0.0.0/22",
"vnet": "virtualnetwork"
}
},
"statics": {
"workerRange": {
"base": "10.0.0.",
"start": 5
},
"auxRange": {
"base": "10.0.0.",
"start": 250
},
"infraRange": {
"base": "10.0.0.",
"start": 240
},
"lbIP": "10.0.0.4"
}
},
"realIndex": "[add(parameters('startIndex'),5)]",
"thirdOctet": "[div(variables('realIndex'),240)]",
"overflow": "[if(greaterOrEquals(add(variables('realIndex'),parameters('count')),240), 1, 0)]",
"beginIndex1":"[mod(variables('realIndex'),240)]",
"firstCount":"[if(equals(variables('overflow'),0),parameters('count'),sub(240,variables('beginIndex1')))]",
"secondCount":"[if(equals(variables('overflow'),0),0,sub(parameters('count'),variables('firstCount')))]"
},
"resources": [],
"outputs": {
"rI": {
"type": "int",
"value": "[variables('realIndex')]"
},
"thirdO": {
"type": "int",
"value": "[variables('thirdOctet')]"
},
"of": {
"type": "int",
"value": "[variables('overflow')]"
},
"bI": {
"type": "int",
"value": "[variables('beginIndex1')]"
},
"fC": {
"type": "int",
"value": "[variables('firstCount')]"
},
"sC": {
"type": "int",
"value": "[variables('secondCount')]"
}
}
}