-
Notifications
You must be signed in to change notification settings - Fork 0
/
azuredeploy-hsr-sw.json
154 lines (154 loc) · 6.37 KB
/
azuredeploy-hsr-sw.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"VMName1": {
"type": "string",
"metadata": {
"description": "First VM Name"
}
},
"VMName2": {
"type": "string",
"metadata": {
"description": "Second VM Name"
}
},
"customURI": {
"type": "string",
"metadata": {
"description": "URI where SAP bits are uploaded"
}
},
"VMUserName": {
"type": "string",
"metadata": {
"description": "Username for the Virtual Machines"
},
"defaultValue": "testuser"
},
"VMPassword": {
"type": "securestring",
"metadata": {
"description": "Password for the Virtual Machine"
}
},
"HANASID": {
"type": "string",
"metadata": {
"description": "SAP HANA System ID"
},
"defaultValue": "H10"
},
"HANANumber": {
"type": "string",
"metadata": {
"description": "SAP HANA Instance Number"
},
"defaultValue": "00"
},
"StaticIP1": {
"type": "string",
"metadata": {
"description": "IP Address for the first HANA VM when Static IP Allocation Method has been selected"
},
"defaultValue": "10.0.5.4"
},
"StaticIP2": {
"type": "string",
"metadata": {
"description": "IP Address for the firssecondt HANA VM when Static IP Allocation Method has been selected"
},
"defaultValue": "10.0.5.5"
},
"iSCSIIP": {
"type": "string",
"metadata": {
"description": "IP Address for the iscsi server"
},
"defaultValue": "10.0.6.4"
},
"ILBIP": {
"type": "string",
"metadata": {
"description": "IP Address for the internal load balancer"
},
"defaultValue": "10.0.5.10"
},
"SubscriptionEmail": {
"type": "string",
"metadata": {
"description": "OS Subscription Email for BYOS, blank for PAYG"
},
"defaultValue": ""
},
"SubscriptionID": {
"type": "string",
"metadata": {
"description": "OS Subscription ID for BYOS, blank for PAYG"
},
"defaultValue": ""
},
"SMTUri": {
"type": "string",
"metadata": {
"description": "SMT URI, blank for none"
},
"defaultValue": ""
}
},
"variables": {
"vmName1": "[toLower(parameters('vmName1'))]",
"vmName2": "[toLower(parameters('vmName2'))]",
"baseUri": "https://raw.githubusercontent.com/egondalia/SAP-HANA-ARM/master",
"swUri": "[concat(variables('baseUri'), '/scripts/allvmsizes-hsr-cluster.sh')]",
"repoUri": "[variables('baseUri')]",
"smallUri": "[concat(variables('baseUri'), '/Vms/small-hsr.json')]",
"mediumUri": "[concat(variables('baseUri'), '/Vms/medium-hsr.json')]",
"largeUri": "[concat(variables('baseUri'), '/Vms/large-hsr.json')]",
"extralargeUri": "[concat(variables('baseUri'), '/Vms/extralarge-hsr.json')]",
"hanajbUri": "[concat(variables('baseUri'), '/Vms/hanajb-hsr.json')]",
"hanaUri": "[concat(variables('baseUri'), '/hanastudio-hsr.ps1')] ",
"sidlower": "[toLower(parameters('HANASID'))]",
"avSetNameDB": "[concat(variables('sidlower'), '-avset-db')]",
"loadBalancerName": "[concat(variables('sidlower'), 'hanalb')]"
},
"resources": [
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(variables('vmName1'),'/', 'CustomScript')]",
"apiVersion": "2015-06-15",
"location": "[resourceGroup().location]",
"properties": {
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"[variables('swUri')]"
],
"commandToExecute": "[concat('sh allvmsizes-hsr-cluster.sh \"', parameters('customUri'), '\" \"' , parameters('vmUserName'), '\" \"', parameters('vmPassword'),'\" \"', parameters('HANASID'), '\" \"', parameters('HANANUMBER'),'\" \"',parameters('vmName1'),'\" \"',parameters('vmName2'),'\" \"',parameters('StaticIP1'),'\" \"',parameters('StaticIP2'),'\" \"yes\" \"yes\" \"',variables('repoUri'),'\" \"',parameters('ISCSIIP'),'\" \"',parameters('ILBIP'), '\" \"',parameters('SubscriptionEmail'), '\" \"', parameters('SubscriptionID'),'\" \"', parameters('SMTUri'),'\"')]"
}
}
},
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(variables('vmName2'),'/', 'CustomScript')]",
"apiVersion": "2015-06-15",
"location": "[resourceGroup().location]",
"properties": {
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"[variables('swUri')]"
],
"commandToExecute": "[concat('sh allvmsizes-hsr-cluster.sh \"', parameters('customUri'), '\" \"' , parameters('vmUserName'), '\" \"', parameters('vmPassword'),'\" \"', parameters('HANASID'), '\" \"', parameters('HANANUMBER'),'\" \"',parameters('vmName2'),'\" \"',parameters('vmName1'),'\" \"',parameters('StaticIP2'),'\" \"',parameters('StaticIP1'),'\" \"yes\" \"no\" \"',variables('repoUri'),'\" \"',parameters('ISCSIIP'),'\" \"',parameters('ILBIP'), '\" \"',parameters('SubscriptionEmail'), '\" \"', parameters('SubscriptionID'),'\" \"', parameters('SMTUri'),'\"')]"
}
}
}
]
}