Repository navigation
Expand file tree
/
Copy pathVMExtension.json
More file actions
110 lines (110 loc) · 4.07 KB
/
Copy pathVMExtension.json
File metadata and controls
110 lines (110 loc) · 4.07 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
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
110
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"bmVMNamePrefix": {
"type": "string"
},
"numBMs": {
"type": "int"
},
"voterVMNamePrefix": {
"type": "string"
},
"numVoters": {
"type": "int"
},
"observerVMNamePrefix": {
"type": "string"
},
"numObservers": {
"type": "int"
},
"adminUsername": {
"type": "string"
},
"ethereumAccountPsswd": {
"type": "securestring"
},
"passphrase": {
"type": "securestring"
},
"ethereumNetworkID": {
"type": "int"
},
"gethIPCPort": {
"type": "int"
},
"adminSitePort": {
"type": "int"
},
"cakeshopFqdn": {
"type": "string"
},
"cakeshopStartingPort": {
"type": "int"
},
"artifactsLocationURL": {
"type": "string"
},
"location": {
"type": "string"
}
},
"variables": {
"apiVersionVirtualMachinesExtensions": "2016-03-30",
"vnNode": 0,
"bmNode": 1,
"maxPeers": 25
},
"resources": [
{
"apiVersion": "[variables('apiVersionVirtualMachinesExtensions')]",
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('bmVMNamePrefix'), copyIndex(), '/newuserscript')]",
"copy": {
"name": "bmsConfigLoop",
"count": "[parameters('numBMs')]"
},
"location": "[parameters('location')]",
"properties": {
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"https://raw.githubusercontent.com/sysgain/vvivekbc/master/test.sh"
]
},
"protectedSettings": {
"commandToExecute": "[concat('/bin/bash test.sh \"', parameters('adminUsername'), '\" \"', parameters('ethereumAccountPsswd'), '\" \"', parameters('passphrase'), '\" \"', parameters('artifactsLocationURL'), '\" \"', parameters('ethereumNetworkID'), '\" \"', variables('maxPeers'), '\" \"', variables('bmNode'), '\" \"', parameters('gethIPCPort'), '\" \"', parameters('numVoters'), '\" \"', parameters('voterVMNamePrefix'), '\" \"', parameters('numBMs'), '\" \"', parameters('bmVMNamePrefix'), '\" \"', parameters('numObservers'), '\" \"', parameters('observerVMNamePrefix'), '\" \"', copyIndex(), '\" \"', parameters('adminSitePort'), '\" \"', parameters('cakeshopFqdn'), '\" \"', parameters('cakeshopStartingPort'), '\"')]"
}
}
},
{
"apiVersion": "[variables('apiVersionVirtualMachinesExtensions')]",
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('voterVMNamePrefix'), copyIndex(), '/newuserscript')]",
"copy": {
"name": "votersConfigLoop",
"count": "[parameters('numVoters')]"
},
"location": "[parameters('location')]",
"properties": {
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"https://raw.githubusercontent.com/sysgain/vvivekbc/master/test.sh"
]
},
"protectedSettings": {
"commandToExecute": "[concat('/bin/bash test.sh \"', parameters('adminUsername'), '\" \"', parameters('ethereumAccountPsswd'), '\" \"', parameters('passphrase'), '\" \"', parameters('artifactsLocationURL'), '\" \"', parameters('ethereumNetworkID'), '\" \"', variables('maxPeers'), '\" \"', variables('vnNode'), '\" \"', parameters('gethIPCPort'), '\" \"', parameters('numVoters'), '\" \"', parameters('voterVMNamePrefix'), '\" \"', parameters('numBMs'), '\" \"', parameters('bmVMNamePrefix'), '\" \"', parameters('numObservers'), '\" \"', parameters('observerVMNamePrefix'), '\" \"', copyIndex(), '\" \"', parameters('adminSitePort'), '\" \"', parameters('cakeshopFqdn'), '\" \"', parameters('cakeshopStartingPort'), '\"')]"
}
}
}
]
}