forked from venu-sivanadham/Moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azuredeploy.json
1280 lines (1280 loc) · 57.8 KB
/
azuredeploy.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"_artifactsLocation": {
"type": "string",
"metadata": {
"description": "The base URI where artifacts required by this template are located. When the template is deployed using the accompanying scripts, a private location in the subscription will be used and this value will be automatically generated."
},
"defaultValue": "https://raw.githubusercontent.com/Azure/Moodle/master/"
},
"_artifactsLocationSasToken": {
"type": "securestring",
"metadata": {
"description": "The sasToken required to access _artifactsLocation. When the template is deployed using the accompanying scripts, a sasToken will be automatically generated."
},
"defaultValue": ""
},
"applyScriptsSwitch": {
"defaultValue": true,
"metadata": {
"description": "Switch to process or bypass all scripts/extensions"
},
"type": "bool"
},
"azureBackupSwitch": {
"defaultValue": false,
"metadata": {
"description": "Switch to configure AzureBackup and enlist VM's"
},
"type": "bool"
},
"redisDeploySwitch": {
"defaultValue": false,
"metadata": {
"description": "Switch to deploy a redis cache or not. Note that certain versions of Moodle (e.g., 3.1) don't work well with Redis, so use this only for known well-working Moodle versions (e.g., 3.4)."
},
"type": "bool"
},
"vnetGwDeploySwitch": {
"defaultValue": false,
"metadata": {
"description": "Switch to deploy a virtual network gateway or not"
},
"type": "bool"
},
"installObjectFsSwitch": {
"defaultValue": false,
"metadata": {
"description": "Switch to install Moodle Object FS plugins (with Azure Blob storage)"
},
"type": "bool"
},
"installO365pluginsSwitch": {
"defaultValue": false,
"metadata": {
"description": "Switch to install Moodle Office 365 plugins. As of May 22, 2018, O365 plugins for Moodle 3.5 haven't been released, so to set this true, you must set the moodleVersion to 3.4 or below."
},
"type": "bool"
},
"installGdprPluginsSwitch": {
"defaultValue": false,
"metadata": {
"description": "(Should be used only for Moodle 3.4 & 3.3) Switch to install Moodle GDPR plugins. Note these require Moodle versions 3.4.2+ or 3.3.5+ and these are included by default in Moodle 3.5. So if you choose MOODLE_35_STABLE as your moodleVersion, do not set this to true."
},
"type": "bool"
},
"htmlLocalCopySwitch": {
"defaultValue": true,
"metadata": {
"description": "Switch to create a local copy of /moodle/html or not"
},
"type": "bool"
},
"ddosSwitch": {
"defaultValue": false,
"metadata": {
"description": "Switch to create a DDoS protection plan"
},
"type": "bool"
},
"enableAccelNwForCtlrVmSwitch": {
"defaultValue": false,
"metadata": {
"description": "Switch to enable Azure Accelerated Networking on the controller VM. Default to false because currently the default controller VM SKU (D1) doesn't support AN. Change this to true if you set the controller VM SKU to eligibible ones (e.g., D2) for better performance."
},
"type": "bool"
},
"enableAccelNwForOtherVmsSwitch": {
"defaultValue": true,
"metadata": {
"description": "Switch to enable Azure Accelerated Networking on all other VMs. Default to true because currently the default controller VM SKU for all other VMS (D2) does support AN. Change this to false if you set the SKU of any other VMs to an ineligibible one (e.g., D1) to avoid deployment failure."
},
"type": "bool"
},
"httpsTermination": {
"allowedValues": [
"VMSS",
"AppGw",
"None"
],
"defaultValue": "VMSS",
"metadata": {
"description": "Indicates where https termination occurs. 'VMSS' is for https termination at the VMSS instance VMs (using nginx https proxy). 'AppGw' is for https termination with an Azure Application Gateway. When selecting this, you need to specify all appGw* parameters. 'None' is for testing only with no https. 'None' may not be used with a separately configured https termination layer. If you want to use the 'None' option with your separately configured https termination layer, you'll need to update your Moodle config.php manually for $cfg->wwwroot and $cfg->sslproxy."
},
"type": "string"
},
"siteURL": {
"defaultValue": "www.example.org",
"metadata": {
"description": "URL for Moodle site"
},
"type": "string"
},
"moodleVersion": {
"allowedValues": [
"MOODLE_39_STABLE",
"MOODLE_38_STABLE"
],
"defaultValue": "MOODLE_38_STABLE",
"metadata": {
"description": "The Moodle version you want to install."
},
"type": "string"
},
"sshPublicKey": {
"metadata": {
"description": "ssh public key"
},
"type": "string"
},
"sshUsername": {
"defaultValue": "azureadmin",
"metadata": {
"description": "ssh user name"
},
"type": "string"
},
"controllerVmSku": {
"defaultValue": "Standard_DS1_v2",
"metadata": {
"description": "VM size for the controller VM"
},
"type": "string"
},
"webServerType": {
"defaultValue": "nginx",
"allowedValues": [
"apache",
"nginx"
],
"metadata": {
"description": "Web server type"
},
"type": "string"
},
"autoscaleVmSku": {
"defaultValue": "Standard_DS2_v2",
"metadata": {
"description": "VM size for autoscaled web VMs"
},
"type": "string"
},
"autoscaleVmCountMax": {
"defaultValue": 10,
"metadata": {
"description": "Maximum number of autoscaled web VMs"
},
"type": "int"
},
"autoscaleVmCountMin": {
"defaultValue": 1,
"metadata": {
"description": "Minimum (also initial) number of autoscaled web VMs"
},
"type": "int"
},
"osDiskStorageType": {
"defaultValue": "Premium_LRS",
"allowedValues": [
"Premium_LRS",
"Standard_LRS"
],
"metadata": {
"description": "Azure storage type for all VMs' OS disks. With htmlLocalCopySwith true, Premium_LRS (SSD) is strongly recommended, as PHP files will be served from OS disks."
},
"type": "string"
},
"phpVersion": {
"allowedValues": [
"7.2",
"7.3",
"7.4"
],
"defaultValue": "7.4",
"metadata": {
"description": "php version"
},
"type": "string"
},
"dbServerType": {
"defaultValue": "mysql",
"allowedValues": [
"postgres",
"mysql",
"mssql"
],
"metadata": {
"description": "Database type"
},
"type": "string"
},
"dbLogin": {
"defaultValue": "dbadmin",
"metadata": {
"description": "Database admin username"
},
"type": "string"
},
"moodleDbName": {
"defaultValue": "moodle",
"metadata": {
"description": "Moodle Database name"
},
"type": "string"
},
"moodleDbUser": {
"defaultValue": "moodle",
"metadata": {
"description": "Moodle Database username. This user is different from Database admin user."
},
"type": "string"
},
"mysqlPgresVcores": {
"allowedValues": [
1,
2,
4,
8,
16,
32
],
"defaultValue": 2,
"metadata": {
"description": "MySql/Postgresql vCores. For Basic tier, only 1 & 2 are allowed. For GeneralPurpose tier, 2, 4, 8, 16, 32 are allowed. For MemoryOptimized, 2, 4, 8, 16 are allowed."
},
"type": "int"
},
"mysqlPgresStgSizeGB": {
"defaultValue": 125,
"minValue": 5,
"maxValue": 1024,
"metadata": {
"description": "MySql/Postgresql storage size in GB. Minimum 5GB, increase by 1GB, up to 1TB (1024 GB)"
},
"type": "int"
},
"mysqlPgresSkuTier": {
"allowedValues": [
"Basic",
"GeneralPurpose",
"MemoryOptimized"
],
"defaultValue": "GeneralPurpose",
"metadata": {
"description": "MySql/Postgresql sku tier"
},
"type": "string"
},
"mysqlPgresSkuHwFamily": {
"allowedValues": [
"Gen4",
"Gen5"
],
"defaultValue": "Gen5",
"metadata": {
"description": "MySql/Postgresql sku hardware family. Central US is Gen4 only, so make sure to change this parameter to Gen4 if your deployment is on Central US."
},
"type": "string"
},
"mysqlVersion": {
"allowedValues": [
"5.6",
"5.7"
],
"defaultValue": "5.7",
"metadata": {
"description": "Mysql version"
},
"type": "string"
},
"postgresVersion": {
"allowedValues": [
"9.5",
"9.6"
],
"defaultValue": "9.6",
"metadata": {
"description": "Postgresql version"
},
"type": "string"
},
"sslEnforcement": {
"allowedValues": [
"Disabled",
"Enabled"
],
"defaultValue": "Disabled",
"metadata": {
"description": "MySql/Postgresql SSL connection"
},
"type": "string"
},
"mssqlDbServiceObjectiveName": {
"allowedValues": [
"S1",
"S2",
"S3",
"S4",
"S5",
"S6",
"S7",
"S9"
],
"defaultValue": "S1",
"metadata": {
"description": "MS SQL database service object names"
},
"type": "string"
},
"mssqlDbSize": {
"allowedValues": [
"100MB",
"250MB",
"500MB",
"1GB",
"2GB",
"5GB",
"10GB",
"20GB",
"30GB",
"40GB",
"50GB",
"100GB",
"250GB",
"300GB",
"400GB",
"500GB",
"750GB",
"1024GB"
],
"defaultValue": "250GB",
"metadata": {
"description": "MS SQL database size"
},
"type": "string"
},
"mssqlDbEdition": {
"allowedValues": [
"Basic",
"Standard"
],
"defaultValue": "Standard",
"metadata": {
"description": "MS SQL DB edition"
},
"type": "string"
},
"mssqlVersion": {
"allowedValues": [
"12.0"
],
"defaultValue": "12.0",
"metadata": {
"description": "Mssql version"
},
"type": "string"
},
"fileServerType": {
"defaultValue": "nfs",
"allowedValues": [
"gluster",
"nfs",
"nfs-ha",
"nfs-byo",
"azurefiles"
],
"metadata": {
"description": "File server type: GlusterFS, NFS, and NFS-HA (2-VM highly available NFS cluster)"
},
"type": "string"
},
"nfsByoIpExportPath": {
"defaultValue": "",
"metadata": {
"description": "IP address and export path of the BYO-NFS share when fileServerType == nfs-byo. E.g., 172.16.1.8:/msazure"
},
"type": "string"
},
"fileServerDiskSize": {
"defaultValue": 127,
"metadata": {
"description": "Size per disk for gluster nodes or nfs server"
},
"type": "int"
},
"fileServerDiskCount": {
"defaultValue": 4,
"minValue": 2,
"maxValue": 8,
"metadata": {
"description": "Number of disks in raid0 per gluster node or nfs server"
},
"type": "int"
},
"fileServerVmSku": {
"defaultValue": "Standard_DS2_v2",
"metadata": {
"description": "VM size for the gluster or NFS-HA nodes"
},
"type": "string"
},
"keyVaultResourceId": {
"defaultValue": "",
"metadata": {
"description": "(VMSS https termination only) Azure Resource Manager resource ID of the Key Vault in case you stored your SSL cert in an Azure Key Vault (Note that this Key Vault must have been pre-created on the same Azure region where this template is being deployed). Leave this blank if you didn't. Resource ID example: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xxx/providers/Microsoft.KeyVault/vaults/yyy. This value can be obtained from keyvault.sh output if you used the script to store your SSL cert in your Key Vault."
},
"type": "string"
},
"sslCertKeyVaultURL": {
"defaultValue": "",
"metadata": {
"description": "(VMSS https termination only) Azure Key Vault URL for your stored SSL cert. This value can be obtained from keyvault.sh output if you used the script to store your SSL cert in your Key Vault. This parameter is ignored if the keyVaultResourceId parameter is blank."
},
"type": "string"
},
"sslCertThumbprint": {
"defaultValue": "",
"metadata": {
"description": "(VMSS https termination only) Thumbprint of your stored SSL cert. This value can be obtained from keyvault.sh output if you used the script to store your SSL cert in your Key Vault. This parameter is ignored if the keyVaultResourceId parameter is blank."
},
"type": "string"
},
"caCertKeyVaultURL": {
"defaultValue": "",
"metadata": {
"description": "(VMSS https termination only) Azure Key Vault URL for your stored CA (Certificate Authority) cert. This value can be obtained from keyvault.sh output if you used the script to store your CA cert in your Key Vault. This parameter is ignored if the keyVaultResourceId parameter is blank."
},
"type": "string"
},
"caCertThumbprint": {
"defaultValue": "",
"metadata": {
"description": "(VMSS https termination only) Thumbprint of your stored CA cert. This value can be obtained from keyvault.sh output if you used the script to store your CA cert in your Key Vault. This parameter is ignored if the keyVaultResourceId parameter is blank."
},
"type": "string"
},
"appGwSslCertKeyVaultResourceId": {
"defaultValue": "",
"metadata": {
"description": "(App Gateway https termination only) Azure Key Vault URL for your stored SSL cert, again for App Gateway https termination case only. (Note that this Key Vault must have been pre-created on the same Azure region where this template is being deployed). Leave this blank if you didn't. Resource ID example: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xxx/providers/Microsoft.KeyVault/vaults/yyy."
},
"type": "string"
},
"appGwSslCertKeyVaultSecretName": {
"defaultValue": "",
"metadata": {
"description": "(App Gateway https termination only) Name of the Azure Key Vault secret that's stored in the previously specified Key Vault as a PFX certificate (with no password) for your site's SSL cert. This secret must be pre-populated in the specified Key Vault with the matching name."
},
"type": "string"
},
"appGwSkuName": {
"defaultValue": "Standard_v2",
"allowedValues": [
"Standard_Small",
"Standard_Medium",
"Standard_Large",
"Standard_v2",
"WAF_Medium",
"WAF_Large",
"WAF_v2"
],
"metadata": {
"description": "(App Gateway https termination only) Name of the Applicate Gateway SKU"
},
"type": "string"
},
"appGwSkuTier": {
"defaultValue": "Standard_v2",
"allowedValues": [
"Standard",
"Standard_v2",
"WAF",
"WAF_v2"
],
"metadata": {
"description": "(App Gateway https termination only) Tier of the Applicate Gateway"
},
"type": "string"
},
"appGwSkuCapacity": {
"defaultValue": 2,
"maxValue": 10,
"minValue": 2,
"metadata": {
"description": "(App Gateway https termination only) Capacity instance count) of the Applicate Gateway"
},
"type": "int"
},
"storageAccountType": {
"defaultValue": "Standard_LRS",
"allowedValues": [
"Standard_LRS",
"Standard_GRS",
"Standard_ZRS",
"Premium_LRS"
],
"metadata": {
"description": "Storage Account type. This storage account is only for the Moodle ObjectFS plugin and/or the (currently disabled) Azure Files file share option"
},
"type": "string"
},
"searchType": {
"defaultValue": "none",
"allowedValues": [
"none",
"azure",
"elastic"
],
"metadata": {
"description": "options of moodle global search"
},
"type": "string"
},
"tikaService": {
"defaultValue": "none",
"allowedValues": [
"none",
"tika"
],
"metadata": {
"description": "options of enabling tika service for file searching in moodle"
},
"type": "string"
},
"azureSearchSku": {
"defaultValue": "basic",
"allowedValues": [
"free",
"basic",
"standard",
"standard2",
"standard3"
],
"metadata": {
"description": "the search service level you want to create."
},
"type": "string"
},
"azureSearchReplicaCount": {
"defaultValue": 3,
"minValue": 1,
"maxValue": 12,
"metadata": {
"description": "Replicas distribute search workloads across the service. You need 2 or more to support high availability (applies to Basic and Standard only)."
},
"type": "int"
},
"azureSearchPartitionCount": {
"defaultValue": 1,
"allowedValues": [
1,
2,
3,
4,
6,
12
],
"metadata": {
"description": "Partitions allow for scaling of document count as well as faster indexing by sharding your index over multiple Azure Search units."
},
"type": "int"
},
"azureSearchHostingMode": {
"defaultValue": "default",
"allowedValues": [
"default",
"highDensity"
],
"metadata": {
"description": "Applicable only for azureSearchSku set to standard3. You can set this property to enable a single, high density partition that allows up to 1000 indexes, which is much higher than the maximum indexes allowed for any other azureSearchSku."
},
"type": "string"
},
"elasticVmSku": {
"defaultValue": "Standard_DS2_v2",
"metadata": {
"description": "VM size for the elastic search nodes"
},
"type": "string"
},
"tikaVmSku": {
"defaultValue": "Standard_DS2_v2",
"metadata": {
"description": "VM size for the tika search nodes"
},
"type": "string"
},
"customVnetId": {
"defaultValue": "",
"metadata": {
"description": "Azure Resource ID of the Azure virtual network where you want to deploy your Moodle resources. A vnet resource ID is of the following format: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx/resourceGroups/gggg/providers/Microsoft.Network/virtualNetworks/vvvv. Note that this virtual network must be on the same Azure location as this template deployment location. If this parameter is blank, a new Azure virtual network will be created and used. In that case, the address space of the newly created virtual network will be */16 of the following vNetAddressSpace parameter value below."
},
"type": "string"
},
"vNetAddressSpace": {
"defaultValue": "172.31.0.0",
"metadata": {
"description": "Address range for the Moodle virtual network and various subnets - presumed /16 for a newly created vnet in case customVnetId is blank. Further subneting (a number of */24 subnets starting from the xxx.yyy.zzz.0/24 will be created on a newly created vnet or your BYO-vnet (specified in customVnetId parameter)."
},
"type": "string"
},
"gatewayType": {
"allowedValues": [
"Vpn",
"ER"
],
"defaultValue": "Vpn",
"metadata": {
"description": "Virtual network gateway type"
},
"type": "string"
},
"vpnType": {
"allowedValues": [
"RouteBased",
"PolicyBased"
],
"defaultValue": "RouteBased",
"metadata": {
"description": "Virtual network gateway vpn type"
},
"type": "string"
},
"loadBalancerSku": {
"defaultValue": "Basic",
"allowedValues": [
"Basic",
"Standard"
],
"metadata": {
"description": "Loadbalancer SKU"
},
"type": "string"
},
"ubuntuVersion": {
"type": "string",
"allowedValues": [
"16.04-LTS",
"18.04-LTS"
],
"defaultValue": "18.04-LTS"
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Azure Location for all resources."
}
},
"isMigration": {
"type": "bool",
"defaultValue": false,
"metadata": {
"description": "Indicates whether the this template is using for migration scenario."
}
}
},
"resources": [
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2017-05-10",
"name": "pid-738e3eec-68d4-4667-8377-c05c77c21f1b",
"properties": {
"mode": "Incremental",
"template": {
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": []
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2017-05-10",
"name": "networkTemplate",
"properties": {
"mode": "Incremental",
"parameters": {
"moodleCommon": {
"value": "[variables('moodleCommon')]"
}
},
"templateLink": {
"uri": "[concat(variables('moodleCommon').baseTemplateUrl,'network.json',parameters('_artifactsLocationSasToken'))]"
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2017-05-10",
"name": "storageAccountTemplate",
"properties": {
"mode": "Incremental",
"parameters": {
"moodleCommon": {
"value": "[variables('moodleCommon')]"
}
},
"templateLink": {
"uri": "[concat(variables('moodleCommon').baseTemplateUrl,'storageAccount.json',parameters('_artifactsLocationSasToken'))]"
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2017-05-10",
"dependsOn": [
"Microsoft.Resources/deployments/networkTemplate"
],
"name": "dbTemplate",
"properties": {
"mode": "Incremental",
"parameters": {
"moodleCommon": {
"value": "[variables('moodleCommon')]"
},
"lbPubIp": {
"value": "[reference('networkTemplate').outputs.lbPubIp.value]"
},
"ctlrPubIp": {
"value": "[reference('networkTemplate').outputs.ctlrPubIp.value]"
}
},
"templateLink": {
"uri": "[concat(variables('moodleCommon').baseTemplateUrl, 'db-', parameters('dbServerType'), '.json', parameters('_artifactsLocationSasToken'))]"
}
}
},
{
"condition": "[parameters('azureBackupSwitch')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2017-05-10",
"name": "recoveryTemplate",
"properties": {
"mode": "Incremental",
"parameters": {
"moodleCommon": {
"value": "[variables('moodleCommon')]"
}
},
"templateLink": {
"uri": "[concat(variables('moodleCommon').baseTemplateUrl,'recoveryservices.json',parameters('_artifactsLocationSasToken'))]"
}
}
},
{
"condition": "[parameters('redisDeploySwitch')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2017-05-10",
"name": "redisTemplate",
"dependsOn": [
"Microsoft.Resources/deployments/networkTemplate"
],
"properties": {
"mode": "Incremental",
"parameters": {
"moodleCommon": {
"value": "[variables('moodleCommon')]"
},
"subnetIdRedis": {
"value": "[reference('networkTemplate').outputs.subnetIdRedis.value]"
}
},
"templateLink": {
"uri": "[concat(variables('moodleCommon').baseTemplateUrl, 'redis.json', parameters('_artifactsLocationSasToken'))]"
}
}
},
{
"condition": "[not(equals(parameters('searchType'), 'none'))]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2017-05-10",
"dependsOn": [
"Microsoft.Resources/deployments/networkTemplate",
"Microsoft.Resources/deployments/recoveryTemplate"
],
"name": "searchTemplate",
"properties": {
"mode": "Incremental",
"parameters": {
"moodleCommon": {
"value": "[variables('moodleCommon')]"
},
"subnetIdElastic": {
"value": "[reference('networkTemplate').outputs.subnetIdElastic.value]"
}
},
"templateLink": {
"uri": "[concat(variables('moodleCommon').baseTemplateUrl, 'search-', parameters('searchType'), '.json', parameters('_artifactsLocationSasToken'))]"
}
}
},
{
"condition": "[and(equals(parameters('tikaService'), 'tika'), not(equals(parameters('searchType'), 'none')))]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2017-05-10",
"dependsOn": [
"Microsoft.Resources/deployments/networkTemplate",
"Microsoft.Resources/deployments/recoveryTemplate"
],
"name": "tikaTemplate",
"properties": {
"mode": "Incremental",
"parameters": {
"moodleCommon": {
"value": "[variables('moodleCommon')]"
},
"subnetIdTika": {
"value": "[reference('networkTemplate').outputs.subnetIdTika.value]"
}
},
"templateLink": {
"uri": "[concat(variables('moodleCommon').baseTemplateUrl, 'tika.json', parameters('_artifactsLocationSasToken'))]"
}
}
},
{
"condition": "[equals(parameters('fileServerType'),'gluster')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2017-05-10",
"dependsOn": [
"Microsoft.Resources/deployments/networkTemplate",
"Microsoft.Resources/deployments/recoveryTemplate"
],
"name": "glusterTemplate",
"properties": {
"mode": "Incremental",
"parameters": {
"moodleCommon": {
"value": "[variables('moodleCommon')]"
},
"subnetIdSan": {
"value": "[reference('networkTemplate').outputs.subnetIdSan.value]"
}
},
"templateLink": {
"uri": "[concat(variables('moodleCommon').baseTemplateUrl,'gluster.json',parameters('_artifactsLocationSasToken'))]"
}
}
},
{
"condition": "[equals(parameters('fileServerType'),'nfs-ha')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2017-05-10",
"dependsOn": [
"Microsoft.Resources/deployments/networkTemplate",
"Microsoft.Resources/deployments/recoveryTemplate"
],
"name": "nfsHaTemplate",
"properties": {
"mode": "Incremental",
"parameters": {
"_artifactsLocation": {
"value": "[parameters('_artifactsLocation')]"
},
"_artifactsLocationSasToken": {
"value": "[parameters('_artifactsLocationSasToken')]"
},
"location": {
"value": "[parameters('location')]"
},
"subnetId": {
"value": "[reference('networkTemplate').outputs.subnetIdSan.value]"
},
"node0IPAddr": {
"value": "[variables('moodleCommon').nfsHaNode0IP]"
},
"node1IPAddr": {
"value": "[variables('moodleCommon').nfsHaNode1IP]"
},
"nfsClientsIPRange": {
"value": "[variables('moodleCommon').nfsHaClientsIPRange]"
},
"lbFrontEndIpAddr": {
"value": "[variables('moodleCommon').nfsHaLbIP]"
},
"enableAccelNwSwitch": {
"value": "[parameters('enableAccelNwForOtherVmsSwitch')]"
},
"vmSku": {
"value": "[variables('moodleCommon').fileServerVmSku]"
},
"adminUserName": {
"value": "[parameters('sshUsername')]"
},
"sshPublicKey": {
"value": "[parameters('sshPublicKey')]"
},
"osType": {
"value": "[variables('moodleCommon').osType]"
},
"osDiskStorageType": {
"value": "[parameters('osDiskStorageType')]"
},
"dataDiskCountPerVM": {
"value": "[parameters('fileServerDiskCount')]"
},
"dataDiskSizeInGB": {
"value": "[parameters('fileServerDiskSize')]"
},
"resourcesUniqueString": {
"value": "[variables('resourceprefix')]"
}
},
"templateLink": {
"uri": "[concat(variables('moodleCommon').baseTemplateUrl, 'nfs-ha.json', parameters('_artifactsLocationSasToken'))]"
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2017-05-10",
"dependsOn": [
"Microsoft.Resources/deployments/networkTemplate",
"Microsoft.Resources/deployments/dbTemplate",
"Microsoft.Resources/deployments/redisTemplate",
"Microsoft.Resources/deployments/searchTemplate",
"Microsoft.Resources/deployments/storageAccountTemplate"
],
"name": "vmSetupParamsTemplate",
"properties": {
"mode": "Incremental",
"parameters": {
"moodleCommon": {
"value": "[variables('moodleCommon')]"
},
"dbFQDN": {
"value": "[reference('dbTemplate').outputs.dbFQDN.value]"
},
"storageAccountName": {
"value": "[reference('storageAccountTemplate').outputs.storageAccountName.value]"
},
"storageAccountKey": {
"value": "[reference('storageAccountTemplate').outputs.storageAccountKey.value]"
},
"redisKey": {
"value": "[if(parameters('redisDeploySwitch'), reference('redisTemplate').outputs.redisKey.value, 'None')]"
},
"azureSearchKey": {
"value": "[if(equals(parameters('searchType'), 'azure'), reference('searchTemplate').outputs.azureSearchKey.value, 'None')]"
}
},
"templateLink": {
"uri": "[concat(variables('moodleCommon').baseTemplateUrl,'vmsetupparams.json',parameters('_artifactsLocationSasToken'))]"
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2017-05-10",
"dependsOn": [
"Microsoft.Resources/deployments/vmSetupParamsTemplate",
"Microsoft.Resources/deployments/glusterTemplate",
"Microsoft.Resources/deployments/nfsHaTemplate",
"Microsoft.Resources/deployments/recoveryTemplate",
"Microsoft.Resources/deployments/networkTemplate",
"Microsoft.Resources/deployments/dbTemplate",
"Microsoft.Resources/deployments/redisTemplate",
"Microsoft.Resources/deployments/searchTemplate",
"Microsoft.Resources/deployments/storageAccountTemplate"
],
"name": "controllerTemplate",
"properties": {
"mode": "Incremental",
"parameters": {
"moodleCommon": {
"value": "[variables('moodleCommon')]"
},
"subnetIdWeb": {
"value": "[reference('networkTemplate').outputs.subnetIdWeb.value]"
},
"ctlrPubIpId": {
"value": "[reference('networkTemplate').outputs.ctlrPubIpId.value]"
},
"vmSetupParamsObj": {
"value": "[reference('vmSetupParamsTemplate').outputs.vmSetupParamsObj.value]"
}
},
"templateLink": {