This repository has been archived by the owner on Dec 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 118
/
azuredeploy.json
906 lines (906 loc) · 52.5 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
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "5.5.1.0",
"parameters": {
"vmScaleSetMinCount": {
"allowedValues": [
1,
2,
3,
4,
5,
6
],
"defaultValue": 2,
"metadata": {
"description": "The minimum (and default) number of BIG-IP VEs that will be deployed into the VM Scale Set."
},
"type": "int"
},
"vmScaleSetMaxCount": {
"allowedValues": [
2,
3,
4,
5,
6,
7,
8
],
"defaultValue": 4,
"metadata": {
"description": "The maximum number of BIG-IP VEs that can be deployed into the VM Scale Set."
},
"type": "int"
},
"appInsights": {
"defaultValue": "CREATE_NEW",
"metadata": {
"description": "Enter the name of your existing Application Insights environment that will be used to receive custom BIG-IP metrics you can use for Scale Set rules and device visibility. If the Application Insights environment is in a different Resource Group than this deployment, specify it as **app_insights_name;app_insights_rg**). If you do not have an Application Insights environment, leave the default (CREATE_NEW) and the template will create one. Note: By default, the new Application Insights environment will be created in **East US**, if necessary you can specify a different region as **CREATE_NEW:app_insights_region**)."
},
"type": "string"
},
"scaleOutCpuThreshold": {
"defaultValue": 80,
"maxValue": 100,
"metadata": {
"description": "The percentage of CPU utilization that should trigger a scale out event."
},
"minValue": 1,
"type": "int"
},
"scaleInCpuThreshold": {
"defaultValue": 20,
"maxValue": 100,
"metadata": {
"description": "The percentage of CPU utilization that should trigger a scale in event."
},
"minValue": 1,
"type": "int"
},
"scaleOutThroughputThreshold": {
"defaultValue": 20000000,
"metadata": {
"description": "The amount of throughput (**bytes**) that should trigger a scale out event. Note: The default value is equal to 20 MB"
},
"type": "int"
},
"scaleInThroughputThreshold": {
"defaultValue": 10000000,
"metadata": {
"description": "The amount of throughput (**bytes**) that should trigger a scale in event. Note: The default value is equal to 10 MB"
},
"type": "int"
},
"scaleOutTimeWindow": {
"defaultValue": 10,
"maxValue": 60,
"metadata": {
"description": "The time window required to trigger a scale out event. This is used to determine the amount of time needed for a threshold to be breached, as well as to prevent excessive scaling events (flapping). **Note:** Allowed values are 1-60 (minutes)."
},
"minValue": 1,
"type": "int"
},
"scaleInTimeWindow": {
"defaultValue": 10,
"maxValue": 60,
"metadata": {
"description": "The time window required to trigger a scale in event. This is used to determine the amount of time needed for a threshold to be breached, as well as to prevent excessive scaling events (flapping). **Note:** Allowed values are 1-60 (minutes)."
},
"minValue": 1,
"type": "int"
},
"adminUsername": {
"defaultValue": "azureuser",
"metadata": {
"description": "User name for the Virtual Machine."
},
"type": "string"
},
"authenticationType": {
"allowedValues": [
"password",
"sshPublicKey"
],
"defaultValue": "password",
"metadata": {
"description": "Type of authentication to use on the Virtual Machine, password based authentication or key based authentication."
},
"type": "string"
},
"adminPasswordOrKey": {
"metadata": {
"description": "Password or SSH public key to login to the Virtual Machine. Note: There are a number of special characters that you should avoid using for F5 product user accounts. See [K2873](https://support.f5.com/csp/article/K2873) for details. Note: If using key-based authentication, this should be the public key as a string, typically starting with **---- BEGIN SSH2 PUBLIC KEY ----** and ending with **---- END SSH2 PUBLIC KEY ----**."
},
"type": "securestring"
},
"dnsLabel": {
"defaultValue": "",
"metadata": {
"description": "Unique DNS Name for the Public IP address used to access the Virtual Machine."
},
"type": "string"
},
"instanceType": {
"allowedValues": [
"Standard_A2",
"Standard_A3",
"Standard_A4",
"Standard_A5",
"Standard_A6",
"Standard_A7",
"Standard_D2",
"Standard_D3",
"Standard_D4",
"Standard_D11",
"Standard_D12",
"Standard_D13",
"Standard_D14",
"Standard_DS2",
"Standard_DS3",
"Standard_DS4",
"Standard_DS11",
"Standard_DS12",
"Standard_DS13",
"Standard_DS14",
"Standard_D2_v2",
"Standard_D3_v2",
"Standard_D4_v2",
"Standard_D5_v2",
"Standard_D11_v2",
"Standard_D12_v2",
"Standard_D13_v2",
"Standard_D14_v2",
"Standard_D15_v2",
"Standard_DS2_v2",
"Standard_DS3_v2",
"Standard_DS4_v2",
"Standard_DS5_v2",
"Standard_DS11_v2",
"Standard_DS12_v2",
"Standard_DS13_v2",
"Standard_DS14_v2",
"Standard_DS15_v2",
"Standard_F2",
"Standard_F4",
"Standard_F8",
"Standard_F2S",
"Standard_F4S",
"Standard_F8S",
"Standard_F16S",
"Standard_G2",
"Standard_G3",
"Standard_G4",
"Standard_G5",
"Standard_GS2",
"Standard_GS3",
"Standard_GS4",
"Standard_GS5"
],
"defaultValue": "Standard_DS2_v2",
"metadata": {
"description": "Instance size of the Virtual Machine."
},
"type": "string"
},
"imageName": {
"allowedValues": [
"LTMOneBootLocation",
"LTMTwoBootLocations",
"AllOneBootLocation",
"AllTwoBootLocations"
],
"defaultValue": "AllTwoBootLocations",
"metadata": {
"description": "F5 SKU (image) to you want to deploy. Note: The disk size of the VM will be determined based on the option you select. **Important**: If intending to provision multiple modules, ensure the appropriate value is selected, such as ****AllTwoBootLocations or AllOneBootLocation****."
},
"type": "string"
},
"bigIpVersion": {
"allowedValues": [
"13.1.100000",
"12.1.303000",
"latest"
],
"defaultValue": "13.1.100000",
"metadata": {
"description": "F5 BIG-IP version you want to use."
},
"type": "string"
},
"bigIqAddress": {
"metadata": {
"description": "The IP address (or hostname) for the BIG-IQ to be used when licensing the BIG-IP. Note: The BIG-IP will make a REST call to the BIG-IQ (already existing) to let it know a BIG-IP needs to be licensed. It will then license the BIG-IP using the provided BIG-IQ credentials and license pool."
},
"type": "string"
},
"bigIqUsername": {
"metadata": {
"description": "The BIG-IQ username to use during BIG-IP licensing via BIG-IQ."
},
"type": "string"
},
"bigIqPassword": {
"metadata": {
"description": "The BIG-IQ password to use during BIG-IP licensing via BIG-IQ."
},
"type": "securestring"
},
"bigIqLicensePoolName": {
"metadata": {
"description": "The BIG-IQ license pool to use during BIG-IP licensing via BIG-IQ."
},
"type": "string"
},
"bigIqLicenseSkuKeyword1": {
"defaultValue": "OPTIONAL",
"metadata": {
"description": "The BIG-IQ license filter (based on SKU keyword) you want to use for licensing the BIG-IPs from the BIG-IQ, for example **F5-BIG-MSP-LTM-25M**, **F5-BIG-MSP-BR-200M**, **F5-BIG-MSP-BT-1G** or **F5-BIG-MSP-ASM-1G**. ***Important***: This is only required when licensing with an ELA/subscription (utility) pool on the BIG-IQ, if not using this pool type leave the default of **OPTIONAL**."
},
"type": "string"
},
"bigIqLicenseUnitOfMeasure": {
"defaultValue": "OPTIONAL",
"metadata": {
"description": "The BIG-IQ license unit of measure to use during BIG-IP licensing via BIG-IQ, for example **yearly**, **monthly**, **daily** or **hourly**. ***Important***: This is only required when licensing with an ELA/subscription (utility) pool on the BIG-IQ, if not using this pool type leave the default of **OPTIONAL**."
},
"type": "string"
},
"vnetName": {
"metadata": {
"description": "The name of the existing virtual network to which you want to connect the BIG-IP VEs."
},
"type": "string"
},
"vnetResourceGroupName": {
"metadata": {
"description": "The name of the resource group that contains the Virtual Network where the BIG-IP VE will be placed."
},
"type": "string"
},
"mgmtSubnetName": {
"metadata": {
"description": "Name of the existing mgmt subnet - with external access to the Internet. **Important**: The subnet you provide for the mgmt NIC **must** be unique."
},
"type": "string"
},
"dnsMemberIpType": {
"allowedValues": [
"private",
"public"
],
"defaultValue": "private",
"metadata": {
"description": "The IP type to add as the record when updating the DNS provider."
},
"type": "string"
},
"dnsMemberPort": {
"defaultValue": "80",
"metadata": {
"description": "The port for the DNS member to use for monitoring the members status."
},
"type": "string"
},
"dnsProviderHost": {
"metadata": {
"description": "The management IP address (or hostname) for the DNS provider to use when updating DNS."
},
"type": "string"
},
"dnsProviderPort": {
"defaultValue": "443",
"metadata": {
"description": "The management port for the DNS provider to use when updating DNS."
},
"type": "string"
},
"dnsProviderUser": {
"metadata": {
"description": "The management username for the DNS provider to use when updating DNS."
},
"type": "string"
},
"dnsProviderPassword": {
"metadata": {
"description": "The management password for the DNS provider to use when updating DNS."
},
"type": "securestring"
},
"dnsProviderPool": {
"defaultValue": "autoscale_pool",
"metadata": {
"description": "The GSLB pool on the BIG-IP DNS system to populate."
},
"type": "string"
},
"dnsProviderDataCenter": {
"defaultValue": "azure_datacenter",
"metadata": {
"description": "The GSLB datacenter on the BIG-IP DNS system to use when creating GSLB server(s). Note: If the datacenter provided does not exist the template will create one with the value given."
},
"type": "string"
},
"tenantId": {
"metadata": {
"description": "Your Azure service principal application tenant ID."
},
"type": "string"
},
"clientId": {
"metadata": {
"description": "Your Azure service principal application client ID."
},
"type": "string"
},
"servicePrincipalSecret": {
"metadata": {
"description": "Your Azure service principal application secret."
},
"type": "securestring"
},
"notificationEmail": {
"defaultValue": "OPTIONAL",
"metadata": {
"description": "If you want email notifications on scale events, specify an email address, otherwise leave the parameter as **OPTIONAL**. Note: You can specify multiple emails by separating them with a semi-colon, such as *email@domain.com;email2@domain.com*."
},
"type": "string"
},
"ntpServer": {
"defaultValue": "0.pool.ntp.org",
"metadata": {
"description": "Leave the default NTP server the BIG-IP uses, or replace the default NTP server with the one you want to use."
},
"type": "string"
},
"timeZone": {
"defaultValue": "UTC",
"metadata": {
"description": "If you would like to change the time zone the BIG-IP uses, enter the time zone you want to use. This is based on the tz database found in /usr/share/zoneinfo (see the full list [here](https://github.com/F5Networks/f5-azure-arm-templates/blob/master/azure-timezone-list.md)). Example values: UTC, US/Pacific, US/Eastern, Europe/London or Asia/Singapore."
},
"type": "string"
},
"customImage": {
"defaultValue": "OPTIONAL",
"metadata": {
"description": "If you would like to deploy using a local BIG-IP image, provide either the full URL to the VHD in Azure storage **or** the full resource ID to an existing Microsoft.Compute image resource. **Note**: Unless specifically required, leave the default of **OPTIONAL**."
},
"type": "string"
},
"restrictedSrcAddress": {
"defaultValue": "*",
"metadata": {
"description": "This field restricts management access to a specific network or address. Enter an IP address or address range in CIDR notation, or asterisk for all sources"
},
"type": "string"
},
"tagValues": {
"defaultValue": {
"application": "APP",
"cost": "COST",
"environment": "ENV",
"group": "GROUP",
"owner": "OWNER"
},
"metadata": {
"description": "Default key/value resource tags will be added to the resources in this deployment, if you would like the values to be unique adjust them as needed for each key."
},
"type": "object"
},
"allowUsageAnalytics": {
"allowedValues": [
"Yes",
"No"
],
"defaultValue": "Yes",
"metadata": {
"description": "This deployment can send anonymous statistics to F5 to help us determine how to improve our solutions. If you select **No** statistics are not sent."
},
"type": "string"
}
},
"variables": {
"imageNameArray": {
"12.1.303000": {
"AllOneBootLocation": "big-all-2slot",
"AllTwoBootLocations": "big-all-2slot",
"LTMOneBootLocation": "big-ltm-2slot",
"LTMTwoBootLocations": "big-ltm-2slot"
},
"13.1.100000": {
"AllOneBootLocation": "big-all-1slot",
"AllTwoBootLocations": "big-all-2slot",
"LTMOneBootLocation": "big-ltm-1slot",
"LTMTwoBootLocations": "big-ltm-2slot"
},
"latest": {
"AllOneBootLocation": "big-all-2slot",
"AllTwoBootLocations": "big-all-2slot",
"LTMOneBootLocation": "big-ltm-2slot",
"LTMTwoBootLocations": "big-ltm-2slot"
},
"offerPostfix": {
"big-all-1slot": "byol",
"big-all-2slot": "byol",
"big-ltm-1slot": "byol",
"big-ltm-2slot": "byol",
"bigip-virtual-edition-best": "best",
"bigip-virtual-edition-good": "good"
}
},
"imageNameSub": "[variables('imageNameArray')[parameters('bigIpVersion')][parameters('imageName')]]",
"bigIpNicPortMap": {
"1": {
"Port": "[parameters('bigIpVersion')]"
},
"2": {
"Port": "443"
},
"3": {
"Port": "443"
},
"4": {
"Port": "443"
},
"5": {
"Port": "443"
},
"6": {
"Port": "443"
}
},
"bigIpVersionPortMap": {
"12.1.303000": {
"Port": 443
},
"13.1.100000": {
"Port": 8443
},
"443": {
"Port": 443
},
"latest": {
"Port": 8443
}
},
"computeApiVersion": "2017-12-01",
"networkApiVersion": "2017-11-01",
"storageApiVersion": "2017-10-01",
"appInsightsApiVersion": "2015-04-01",
"appInsightsComponentsApiVersion": "2015-05-01",
"location": "[resourceGroup().location]",
"adminPasswordOrKey": "[replace(parameters('adminPasswordOrKey'),'\\n', '\n')]",
"linuxConfiguration": {
"disablePasswordAuthentication": true,
"ssh": {
"publicKeys": [
{
"keyData": "[variables('adminPasswordOrKey')]",
"path": "[concat('/home/', parameters('adminUsername'), '/.ssh/authorized_keys')]"
}
]
}
},
"defaultAppInsightsLocation": "eastus",
"appInsightsLocation": "[split(concat(parameters('appInsights'), ':', variables('defaultAppInsightsLocation')), ':')[1]]",
"subscriptionID": "[subscription().subscriptionId]",
"resourceGroupName": "[resourceGroup().name]",
"singleQuote": "'",
"f5CloudLibsTag": "v4.5.0",
"f5CloudLibsAzureTag": "v2.5.0",
"f5NetworksTag": "v5.5.1.0",
"f5CloudIappsTag": "v2.2.0",
"verifyHash": "[concat(variables('singleQuote'), 'cli script /Common/verifyHash {\nproc script::run {} {\n if {[catch {\n set hashes(f5-cloud-libs.tar.gz) 2481d285c33b97ed083f6e48edcfbd1d5f8fb1dea0578f429017706a1829d3625fab6aff8f55fe71b2b5929410110043a17d57179d833f0f51c90fb0f6ff292d\n set hashes(f5-cloud-libs-aws.tar.gz) 35361a507a4ef0c8f5205c05d913dbea024f287777e86dccd0c345560a637c106aeab4150af9eafd828929eb7798184e076ea5359e16b4c2d5544cc380800711\n set hashes(f5-cloud-libs-azure.tar.gz) def8780b308a7cfea52d524e5ad07121e7091ecb826e01c87bc758c90fee5c25d12a2a4a06dc78ff64cb478a471f8514bde2cd5da19fb427de28598272a978bb\n set hashes(f5-cloud-libs-gce.tar.gz) 9d0d8c32909a272cc9a56dad60121916830462ba26c9bb1d731c10f4e33ba7a856520db55016097db2043e27d048027924470a8e68f366de0339a43b7b68b0d6\n set hashes(f5-cloud-libs-openstack.tar.gz) 5c83fe6a93a6fceb5a2e8437b5ed8cc9faf4c1621bfc9e6a0779f6c2137b45eab8ae0e7ed745c8cf821b9371245ca29749ca0b7e5663949d77496b8728f4b0f9\n set hashes(asm-policy-linux.tar.gz) 63b5c2a51ca09c43bd89af3773bbab87c71a6e7f6ad9410b229b4e0a1c483d46f1a9fff39d9944041b02ee9260724027414de592e99f4c2475415323e18a72e0\n set hashes(f5.http.v1.2.0rc4.tmpl) 47c19a83ebfc7bd1e9e9c35f3424945ef8694aa437eedd17b6a387788d4db1396fefe445199b497064d76967b0d50238154190ca0bd73941298fc257df4dc034\n set hashes(f5.http.v1.2.0rc6.tmpl) 811b14bffaab5ed0365f0106bb5ce5e4ec22385655ea3ac04de2a39bd9944f51e3714619dae7ca43662c956b5212228858f0592672a2579d4a87769186e2cbfe\n set hashes(f5.http.v1.2.0rc7.tmpl) 21f413342e9a7a281a0f0e1301e745aa86af21a697d2e6fdc21dd279734936631e92f34bf1c2d2504c201f56ccd75c5c13baa2fe7653213689ec3c9e27dff77d\n set hashes(f5.aws_advanced_ha.v1.3.0rc1.tmpl) 9e55149c010c1d395abdae3c3d2cb83ec13d31ed39424695e88680cf3ed5a013d626b326711d3d40ef2df46b72d414b4cb8e4f445ea0738dcbd25c4c843ac39d\n set hashes(f5.aws_advanced_ha.v1.4.0rc1.tmpl) de068455257412a949f1eadccaee8506347e04fd69bfb645001b76f200127668e4a06be2bbb94e10fefc215cfc3665b07945e6d733cbe1a4fa1b88e881590396\n set hashes(f5.aws_advanced_ha.v1.4.0rc2.tmpl) 6ab0bffc426df7d31913f9a474b1a07860435e366b07d77b32064acfb2952c1f207beaed77013a15e44d80d74f3253e7cf9fbbe12a90ec7128de6facd097d68f\n set hashes(f5.aws_advanced_ha.v1.4.0rc3.tmpl) 2f2339b4bc3a23c9cfd42aae2a6de39ba0658366f25985de2ea53410a745f0f18eedc491b20f4a8dba8db48970096e2efdca7b8efffa1a83a78e5aadf218b134\n set hashes(asm-policy.tar.gz) 2d39ec60d006d05d8a1567a1d8aae722419e8b062ad77d6d9a31652971e5e67bc4043d81671ba2a8b12dd229ea46d205144f75374ed4cae58cefa8f9ab6533e6\n set hashes(deploy_waf.sh) 1a3a3c6274ab08a7dc2cb73aedc8d2b2a23cd9e0eb06a2e1534b3632f250f1d897056f219d5b35d3eed1207026e89989f754840fd92969c515ae4d829214fb74\n set hashes(f5.policy_creator.tmpl) 06539e08d115efafe55aa507ecb4e443e83bdb1f5825a9514954ef6ca56d240ed00c7b5d67bd8f67b815ee9dd46451984701d058c89dae2434c89715d375a620\n set hashes(f5.service_discovery.tmpl) 01dc84d4a4be2bc484ab57b771f186f87d4b664e1fb9a073e025b5362ee14d712b970eef4041f794f66286fb1429418aab16e832c89df8a25e02229c68b83de8\n set hashes(f5.cloud_logger.v1.0.0.tmpl) 64a0ed3b5e32a037ba4e71d460385fe8b5e1aecc27dc0e8514b511863952e419a89f4a2a43326abb543bba9bc34376afa114ceda950d2c3bd08dab735ff5ad20\n\n set file_path [lindex $tmsh::argv 1]\n set file_name [file tail $file_path]\n\n if {![info exists hashes($file_name)]} {\n tmsh::log err \"No hash found for $file_name\"\n exit 1\n }\n\n set expected_hash $hashes($file_name)\n set computed_hash [lindex [exec /usr/bin/openssl dgst -r -sha512 $file_path] 0]\n if { $expected_hash eq $computed_hash } {\n exit 0\n }\n tmsh::log err \"Hash does not match for $file_path\"\n exit 1\n }]} {\n tmsh::log err {Unexpected error in verifyHash}\n exit 1\n }\n }\n script-signature rDemf/H1eVNT9zqev0rGMqJMAsDqmxZOsgwl7LuxD0bocfXqCnZyIt5B6e1nAFWJRwI2m4uKeknO58YAoNJo/+HvoG+4ifoAT71d5f0o2JX13kbvb4qEJAdl0nkGjy2j62CeHSl40+XimWzCBn8FA3bFOhfP6kfs/gAo7OhokBbk4YTxa1Y16hI5rf5Z9fS78/Km2Fs55XU18KKwL81lWyA/6by46V2LvmGYc461j8yFGLsaJLOsgJ6HZQBKRyH1ZrVAA5mdqOU7i9P1VsRgvgLhE/WBraHIDz5olowiq5AfiqnRG//Z6Wn4QgZONn4IGPMViPq+f2NxrDHlirfy/A==\n signing-key /Common/f5-irule\n}', variables('singleQuote'))]",
"installCloudLibs": "[concat(variables('singleQuote'), '#!/bin/bash\necho about to execute\nchecks=0\nwhile [ $checks -lt 120 ]; do echo checking mcpd\n/usr/bin/tmsh -a show sys mcp-state field-fmt | grep -q running\nif [ $? == 0 ]; then\necho mcpd ready\nbreak\nfi\necho mcpd not ready yet\nlet checks=checks+1\nsleep 1\ndone\necho loading verifyHash script\n/usr/bin/tmsh load sys config merge file /config/verifyHash\nif [ $? != 0 ]; then\necho cannot validate signature of /config/verifyHash\nexit 1\nfi\necho loaded verifyHash\n\nconfig_loc=\"/config/cloud/\"\nhashed_file_list=\"${config_loc}f5-cloud-libs.tar.gz f5.service_discovery.tmpl f5.cloud_logger.v1.0.0.tmpl ${config_loc}f5-cloud-libs-azure.tar.gz\"\nfor file in $hashed_file_list; do\necho \"verifying $file\"\n/usr/bin/tmsh run cli script verifyHash $file\nif [ $? != 0 ]; then\necho \"$file is not valid\"\nexit 1\nfi\necho \"verified $file\"\ndone\necho \"expanding $hashed_file_list\"\ntar xfz /config/cloud/f5-cloud-libs.tar.gz --warning=no-unknown-keyword -C /config/cloud/azure/node_modules/@f5devcentral\ntar xfz /config/cloud/f5-cloud-libs-azure.tar.gz --warning=no-unknown-keyword -C /config/cloud/azure/node_modules/@f5devcentral\ntouch /config/cloud/cloudLibsReady', variables('singleQuote'))]",
"dnsLabel": "[toLower(parameters('dnsLabel'))]",
"imageNameToLower": "[toLower(parameters('imageName'))]",
"skuToUse": "[concat('f5-', variables('imageNameSub'),'-byol')]",
"offerToUse": "[concat('f5-big-ip-', variables('imageNameArray').offerPostfix[variables('imageNameSub')])]",
"imagePlan": {
"name": "[variables('skuToUse')]",
"product": "[variables('offerToUse')]",
"publisher": "f5-networks"
},
"imageReference": {
"offer": "[variables('offerToUse')]",
"publisher": "f5-networks",
"sku": "[variables('skuToUse')]",
"version": "[parameters('bigIpVersion')]"
},
"bigIpNicPortValue": "[variables('bigIpNicPortMap')['1'].Port]",
"bigIpMgmtPort": 8443,
"availabilitySetName": "[concat(variables('dnsLabel'), '-avset')]",
"virtualNetworkName": "[parameters('vnetName')]",
"vnetId": "[resourceId(parameters('vnetResourceGroupName'),'Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]",
"publicIPAddressType": "Static",
"mgmtPublicIPAddressName": "[concat(variables('dnsLabel'), '-mgmt-pip')]",
"mgmtPublicIPAddressId": "[resourceId('Microsoft.Network/publicIPAddresses', variables('mgmtPublicIPAddressName'))]",
"mgmtNsgID": "[resourceId('Microsoft.Network/networkSecurityGroups/',concat(variables('dnsLabel'),'-mgmt-nsg'))]",
"mgmtNicName": "[concat(variables('dnsLabel'), '-mgmt')]",
"mgmtNicID": "[resourceId('Microsoft.Network/NetworkInterfaces', variables('mgmtNicName'))]",
"mgmtSubnetName": "[parameters('mgmtSubnetName')]",
"mgmtSubnetId": "[concat(variables('vnetId'), '/subnets/', variables('mgmtSubnetName'))]",
"deviceNamePrefix": "[concat(variables('dnsLabel'),'-device')]",
"externalLoadBalancerName": "",
"extLbId": "[resourceId('Microsoft.Network/loadBalancers',variables('externalLoadBalancerName'))]",
"frontEndIPConfigID": "[concat(variables('extLbId'),'/frontendIPConfigurations/loadBalancerFrontEnd')]",
"vmssName": "[concat(parameters('dnsLabel'),'-vmss')]",
"vmssId": "[resourceId('Microsoft.Compute/virtualMachineScaleSets', variables('vmssName'))]",
"appInsightsName": "[replace(split(parameters('appInsights'), ':')[0], 'CREATE_NEW', concat(deployment().name, '-appinsights'))]",
"appInsightsNameArray": "[split(concat(variables('appInsightsName'), ';', variables('resourceGroupName')) , ';')]",
"scaleOutTimeWindow": "[concat('PT', parameters('scaleOutTimeWindow'), 'M')]",
"scaleInTimeWindow": "[concat('PT', parameters('scaleInTimeWindow'), 'M')]",
"cpuMetricName": "F5_TMM_CPU",
"throughputMetricName": "F5_TMM_TRAFFIC",
"scaleMetricMap": {
"F5_TMM_CPU": {
"metricName": "customMetrics/F5_TMM_CPU",
"metricResourceUri": "[resourceId(variables('appInsightsNameArray')[1], 'Microsoft.Insights/components', variables('appInsightsNameArray')[0])]",
"thresholdIn": "[parameters('scaleInCpuThreshold')]",
"thresholdOut": "[parameters('scaleOutCpuThreshold')]"
},
"F5_TMM_Traffic": {
"metricName": "customMetrics/F5_TMM_TRAFFIC",
"metricResourceUri": "[resourceId(variables('appInsightsNameArray')[1], 'Microsoft.Insights/components', variables('appInsightsNameArray')[0])]",
"thresholdIn": "[parameters('scaleInThroughputThreshold')]",
"thresholdOut": "[parameters('scaleOutThroughputThreshold')]"
}
},
"customEmailBaseArray": [
""
],
"customEmail": "[skip(union(variables('customEmailBaseArray'), split(replace(parameters('notificationEmail'), 'OPTIONAL', ''), ';')), 1)]",
"tagValues": "[parameters('tagValues')]",
"newDataStorageAccountName": "[concat(uniqueString(variables('dnsLabel'), resourceGroup().id, deployment().name), 'data000')]",
"dataStorageAccountType": "Standard_LRS",
"deploymentId": "[concat(variables('subscriptionId'), resourceGroup().id, deployment().name, variables('dnsLabel'))]",
"allowUsageAnalytics": {
"No": {
"hashCmd": "echo AllowUsageAnalytics:No",
"metricsCmd": ""
},
"Yes": {
"hashCmd": "[concat('custId=`echo \"', variables('subscriptionId'), '\"|sha512sum|cut -d \" \" -f 1`; deployId=`echo \"', variables('deploymentId'), '\"|sha512sum|cut -d \" \" -f 1`')]",
"metricsCmd": "[concat(' --usageAnalytics \\\" --metrics customerId:${custId},deploymentId:${deployId},templateName:as_ltm_dns-existing-stack-experimental,templateVersion:5.5.1.0,region:', variables('location'), ',bigIpVersion:', parameters('bigIpVersion') ,',licenseType:bigiq,cloudLibsVersion:', variables('f5CloudLibsTag'), ',cloudName:azure\\\"')]"
}
},
"publicIpAddressConfiguration": {
"name": "publicIp01",
"properties": {
"idleTimeoutInMinutes": 15
}
},
"customImage": "[replace(parameters('customImage'), 'OPTIONAL', '')]",
"useCustomImage": "[not(empty(variables('customImage')))]",
"createNewCustomImage": "[contains(variables('customImage'), 'https://')]",
"newCustomImageName": "[concat(variables('dnsLabel'), 'image')]",
"storageProfileArray": {
"customImage": {
"imageReference": {
"id": "[if(variables('createNewCustomImage'), resourceId('Microsoft.Compute/images', variables('newCustomImageName')), variables('customImage'))]"
}
},
"platformImage": {
"imageReference": "[variables('imageReference')]",
"osDisk": {
"createOption": "FromImage"
}
}
},
"premiumInstanceArray": [
"Standard_DS2",
"Standard_DS3",
"Standard_DS4",
"Standard_DS11",
"Standard_DS12",
"Standard_DS13",
"Standard_DS14",
"Standard_DS2_v2",
"Standard_DS3_v2",
"Standard_DS4_v2",
"Standard_DS5_v2",
"Standard_DS11_v2",
"Standard_DS12_v2",
"Standard_DS13_v2",
"Standard_DS14_v2",
"Standard_DS15_v2",
"Standard_F2S",
"Standard_F4S",
"Standard_F8S",
"Standard_F16S",
"Standard_GS2",
"Standard_GS3",
"Standard_GS4",
"Standard_GS5"
],
"customConfig": "### START (INPUT) CUSTOM CONFIGURATION HERE\n",
"installCustomConfig": "[concat(variables('singleQuote'), '#!/bin/bash\n', variables('customConfig'), variables('singleQuote'))]"
},
"resources": [
{
"apiVersion": "[variables('networkApiVersion')]",
"location": "[variables('location')]",
"name": "[concat(variables('dnsLabel'), '-mgmt-nsg')]",
"properties": {
"securityRules": [
{
"name": "mgmt_allow_https",
"properties": {
"access": "Allow",
"description": "",
"destinationAddressPrefix": "*",
"destinationPortRange": "[variables('bigIpMgmtPort')]",
"direction": "Inbound",
"priority": 101,
"protocol": "Tcp",
"sourceAddressPrefix": "[parameters('restrictedSrcAddress')]",
"sourcePortRange": "*"
}
},
{
"name": "ssh_allow_22",
"properties": {
"access": "Allow",
"description": "",
"destinationAddressPrefix": "*",
"destinationPortRange": "22",
"direction": "Inbound",
"priority": 102,
"protocol": "Tcp",
"sourceAddressPrefix": "[parameters('restrictedSrcAddress')]",
"sourcePortRange": "*"
}
}
]
},
"tags": "[if(empty(variables('tagValues')), json('null'), variables('tagValues'))]",
"type": "Microsoft.Network/networkSecurityGroups"
},
{
"apiVersion": "[variables('storageApiVersion')]",
"kind": "Storage",
"location": "[variables('location')]",
"name": "[variables('newDataStorageAccountName')]",
"properties": {
"supportsHttpsTrafficOnly": true
},
"sku": {
"name": "[variables('dataStorageAccountType')]",
"tier": "Standard"
},
"tags": "[if(empty(variables('tagValues')), json('null'), variables('tagValues'))]",
"type": "Microsoft.Storage/storageAccounts"
},
{
"apiVersion": "[variables('computeApiVersion')]",
"condition": "[and(variables('useCustomImage'), variables('createNewCustomImage'))]",
"location": "[variables('location')]",
"name": "[variables('newCustomImageName')]",
"properties": {
"storageProfile": {
"osDisk": {
"blobUri": "[variables('customImage')]",
"osState": "Generalized",
"osType": "Linux",
"storageAccountType": "[if(contains(variables('premiumInstanceArray'), parameters('instanceType')), 'Premium_LRS', 'Standard_LRS')]"
}
}
},
"tags": "[if(empty(variables('tagValues')), json('null'), variables('tagValues'))]",
"type": "Microsoft.Compute/images"
},
{
"apiVersion": "[variables('computeApiVersion')]",
"dependsOn": [],
"location": "[variables('location')]",
"name": "[variables('vmssName')]",
"plan": "[if(variables('useCustomImage'), json('null'), variables('imagePlan'))]",
"properties": {
"overprovision": false,
"upgradePolicy": {
"mode": "Manual"
},
"virtualMachineProfile": {
"extensionProfile": {
"extensions": [
{
"name": "main",
"properties": {
"protectedSettings": {
"commandToExecute": "[concat('function cp_logs() { cd /var/lib/waagent/custom-script/download && cp `ls -r | head -1`/std* /var/log/cloud/azure; cd /var/log/cloud/azure && cat stdout stderr > install.log; }; CLOUD_LIB_DIR=/config/cloud/azure/node_modules/@f5devcentral; mkdir -p $CLOUD_LIB_DIR; mkdir -p /var/log/cloud/azure; /usr/bin/install -m 400 /dev/null /config/cloud/.passwd; /usr/bin/install -m 400 /dev/null /config/cloud/.azCredentials; cp f5-cloud-libs*.tar.gz* /config/cloud; /usr/bin/install -b -m 755 /dev/null /config/verifyHash; /usr/bin/install -b -m 755 /dev/null /config/installCloudLibs.sh; echo -e ', variables('verifyHash'), ' >> /config/verifyHash; echo -e ', variables('installCloudLibs'), ' >> /config/installCloudLibs.sh; echo -e ', variables('installCustomConfig'), ' >> /config/customConfig.sh; bash /config/installCloudLibs.sh; source $CLOUD_LIB_DIR/f5-cloud-libs/scripts/util.sh; encrypt_secret ', variables('singleQuote'), '{\"clientId\": \"', parameters('clientId'), '\", \"tenantId\": \"', parameters('tenantId'), '\", \"secret\": \"', parameters('servicePrincipalSecret'), '\", \"subscriptionId\": \"', variables('subscriptionID'), '\", \"storageAccount\": \"', variables('newDataStorageAccountName'), '\", \"storageKey\": \"', listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('newDataStorageAccountName')), variables('storageApiVersion')).keys[0].value, '\", \"vmssName\": \"', variables('vmssName'), '\", \"resourceGroupName\": \"', variables('resourceGroupName'), '\", \"loadBalancerName\": \"', variables('externalLoadBalancerName'), '\", \"appInsightsName\": \"', variables('appInsightsName'), '\", \"appInsightsId\": \"', reference(resourceId(variables('appInsightsNameArray')[1], 'Microsoft.Insights/components', variables('appInsightsNameArray')[0]), variables('appInsightsComponentsApiVersion')).AppId, '\", \"location\": \"', variables('location'), '\"}', variables('singleQuote'), ' \"/config/cloud/.azCredentials\" \"\" true; encrypt_secret ', variables('singleQuote'), variables('adminPasswordOrKey'), variables('singleQuote'), ' \"/config/cloud/.passwd\" true; $CLOUD_LIB_DIR/f5-cloud-libs/scripts/createUser.sh --user svc_user --password-file /config/cloud/.passwd --password-encrypted; /usr/bin/install -m 400 /dev/null /config/cloud/.bigIqPasswd; encrypt_secret ', variables('singleQuote'), parameters('bigIqPassword'), variables('singleQuote'), ' \"/config/cloud/.bigIqPasswd\"; /usr/bin/install -m 400 /dev/null /config/cloud/.dnsPasswd; encrypt_secret ', variables('singleQuote'), parameters('dnsProviderPassword'), variables('singleQuote'), ' \"/config/cloud/.dnsPasswd\"; ', variables('allowUsageAnalytics')[parameters('allowUsageAnalytics')].hashCmd, '; /usr/bin/f5-rest-node $CLOUD_LIB_DIR/f5-cloud-libs/scripts/runScript.js --output /var/log/cloud/azure/autoscale.log --log-level info --file $CLOUD_LIB_DIR/f5-cloud-libs-azure/scripts/autoscale.sh --shell /bin/bash --cl-args \"--logLevel info --backupUcs 7 --resourceGroup ', resourceGroup().name, ' --vmssName ', variables('vmssName'), ' --userName svc_user --password /config/cloud/.passwd --azureSecretFile /config/cloud/.azCredentials --managementPort ', variables('bigIpMgmtPort'), ' --ntpServer ', parameters('ntpServer'), ' --timeZone ', parameters('timeZone'), variables('allowUsageAnalytics')[parameters('allowUsageAnalytics')].metricsCmd, ' --dnsOptions \\\"--dns gtm --dns-ip-type ', parameters('dnsMemberIpType'), ' --dns-app-port ', parameters('dnsMemberPort'), ' --dns-provider-options host:', parameters('dnsProviderHost'), ',port:', parameters('dnsProviderPort'), ',user:', parameters('dnsProviderUser'), ',passwordUrl:file:///config/cloud/.dnsPasswd,passwordEncrypted:true,serverName:', variables('vmssName'), ',poolName:', parameters('dnsProviderPool'), ',datacenter:', parameters('dnsProviderDataCenter'), '\\\"', ' --appInsightsKey ', reference(resourceId(variables('appInsightsNameArray')[1], 'Microsoft.Insights/components', variables('appInsightsNameArray')[0]), variables('appInsightsComponentsApiVersion')).InstrumentationKey, ' --bigIqAddress ', parameters('bigIqAddress'), ' --bigIqUsername ', parameters('bigIqUsername'), ' --bigIqPassword /config/cloud/.bigIqPasswd --bigIqLicensePoolName ', parameters('bigIqLicensePoolName'), ' --bigIqExtraLicenseOptions \\\"$(format_args sku-keyword-1:', parameters('bigIqLicenseSkuKeyWord1'), ',unit-of-measure:', parameters('bigIqLicenseUnitOfMeasure'), ')\\\" --bigIpExtMgmtAddress via-api --bigIpExtMgmtPort ', variables('bigIpMgmtPort'), '\" --signal AUTOSCALE_SCRIPT_DONE', '; if [[ $? == 0 ]]; then tmsh load sys application template f5.service_discovery.tmpl; tmsh load sys application template f5.cloud_logger.v1.0.0.tmpl; bash /config/customConfig.sh; reboot_signal=\"/tmp/f5-cloud-libs-signals/REBOOT_REQUIRED\"; if [ -f $reboot_signal ]; then echo \"Reboot signaled by cloud libs, rebooting\"; rm -f $reboot_signal; reboot; else echo \"Cloud libs did not signal a reboot\"; fi; $(cp_logs); else $(cp_logs); exit 1; fi', '; if grep -i \"PUT failed\" /var/log/waagent.log -q; then echo \"Killing waagent exthandler, daemon should restart it\"; pkill -f \"python -u /usr/sbin/waagent -run-exthandlers\"; fi')]"
},
"publisher": "Microsoft.Azure.Extensions",
"settings": {
"fileUris": [
"[concat('https://raw.githubusercontent.com/F5Networks/f5-cloud-libs/', variables('f5CloudLibsTag'), '/dist/f5-cloud-libs.tar.gz')]",
"[concat('https://raw.githubusercontent.com/F5Networks/f5-cloud-iapps/', variables('f5CloudIappsTag'), '/f5-service-discovery/f5.service_discovery.tmpl')]",
"[concat('https://raw.githubusercontent.com/F5Networks/f5-cloud-iapps/', variables('f5CloudIappsTag'), '/f5-cloud-logger/f5.cloud_logger.v1.0.0.tmpl')]",
"[concat('https://raw.githubusercontent.com/F5Networks/f5-cloud-libs-azure/', variables('f5CloudLibsAzureTag'), '/dist/f5-cloud-libs-azure.tar.gz')]"
]
},
"type": "CustomScript",
"typeHandlerVersion": "2.0"
}
}
]
},
"networkProfile": {
"networkInterfaceConfigurations": [
{
"name": "nic1",
"properties": {
"ipConfigurations": [
{
"name": "ipconfig1",
"properties": {
"publicIpAddressConfiguration": "[variables('publicIpAddressConfiguration')]",
"subnet": {
"id": "[variables('mgmtSubnetId')]"
}
}
}
],
"networkSecurityGroup": {
"id": "[variables('mgmtNsgID')]"
},
"primary": true
}
}
]
},
"osProfile": {
"adminPassword": "[variables('adminPasswordOrKey')]",
"adminUsername": "[parameters('adminUsername')]",
"computerNamePrefix": "[variables('vmssName')]",
"linuxConfiguration": "[if(equals(parameters('authenticationType'), 'password'), json('null'), variables('linuxConfiguration'))]"
},
"storageProfile": "[if(variables('useCustomImage'), variables('storageProfileArray').customImage, variables('storageProfileArray').platformImage)]"
}
},
"sku": {
"capacity": "[parameters('vmScaleSetMinCount')]",
"name": "[parameters('instanceType')]",
"tier": "Standard"
},
"tags": "[if(empty(variables('tagValues')), json('null'), variables('tagValues'))]",
"type": "Microsoft.Compute/virtualMachineScaleSets"
},
{
"apiVersion": "[variables('appInsightsApiVersion')]",
"dependsOn": [
"[variables('vmssId')]"
],
"location": "[variables('location')]",
"name": "autoscaleconfig",
"properties": {
"enabled": true,
"name": "autoscaleconfig",
"notifications": [
{
"email": {
"customEmails": "[variables('customEmail')]",
"sendToSubscriptionAdministrator": false,
"sendToSubscriptionCoAdministrators": false
},
"operation": "Scale",
"webhooks": []
}
],
"profiles": [
{
"capacity": {
"default": "[parameters('vmScaleSetMinCount')]",
"maximum": "[parameters('vmScaleSetMaxCount')]",
"minimum": "[parameters('vmScaleSetMinCount')]"
},
"name": "Profile1",
"rules": [
{
"metricTrigger": {
"metricName": "[variables('scaleMetricMap')[variables('cpuMetricName')].metricName]",
"metricNamespace": "",
"metricResourceUri": "[variables('scaleMetricMap')[variables('cpuMetricName')].metricResourceUri]",
"operator": "GreaterThan",
"statistic": "Average",
"threshold": "[variables('scaleMetricMap')[variables('cpuMetricName')].thresholdOut]",
"timeAggregation": "Average",
"timeGrain": "PT1M",
"timeWindow": "[variables('scaleOutTimeWindow')]"
},
"scaleAction": {
"cooldown": "PT1M",
"direction": "Increase",
"type": "ChangeCount",
"value": "1"
}
},
{
"metricTrigger": {
"metricName": "[variables('scaleMetricMap')[variables('cpuMetricName')].metricName]",
"metricNamespace": "",
"metricResourceUri": "[variables('scaleMetricMap')[variables('cpuMetricName')].metricResourceUri]",
"operator": "LessThan",
"statistic": "Average",
"threshold": "[variables('scaleMetricMap')[variables('cpuMetricName')].thresholdIn]",
"timeAggregation": "Average",
"timeGrain": "PT1M",
"timeWindow": "[variables('scaleInTimeWindow')]"
},
"scaleAction": {
"cooldown": "PT1M",
"direction": "Decrease",
"type": "ChangeCount",
"value": "1"
}
},
{
"metricTrigger": {
"metricName": "[variables('scaleMetricMap')[variables('throughputMetricName')].metricName]",
"metricNamespace": "",
"metricResourceUri": "[variables('scaleMetricMap')[variables('throughputMetricName')].metricResourceUri]",
"operator": "GreaterThan",
"statistic": "Average",
"threshold": "[variables('scaleMetricMap')[variables('throughputMetricName')].thresholdOut]",
"timeAggregation": "Average",
"timeGrain": "PT1M",
"timeWindow": "[variables('scaleOutTimeWindow')]"
},
"scaleAction": {
"cooldown": "PT1M",
"direction": "Increase",
"type": "ChangeCount",
"value": "1"
}
},
{
"metricTrigger": {
"metricName": "[variables('scaleMetricMap')[variables('throughputMetricName')].metricName]",
"metricNamespace": "",
"metricResourceUri": "[variables('scaleMetricMap')[variables('throughputMetricName')].metricResourceUri]",
"operator": "LessThan",
"statistic": "Average",
"threshold": "[variables('scaleMetricMap')[variables('throughputMetricName')].thresholdIn]",
"timeAggregation": "Average",
"timeGrain": "PT1M",
"timeWindow": "[variables('scaleInTimeWindow')]"
},
"scaleAction": {
"cooldown": "PT1M",
"direction": "Decrease",
"type": "ChangeCount",
"value": "1"
}
}
]
}
],
"targetResourceUri": "[variables('vmssId')]"
},
"type": "Microsoft.Insights/autoscaleSettings"
},
{
"apiVersion": "[variables('appInsightsComponentsApiVersion')]",
"condition": "[contains(toUpper(parameters('appInsights')), 'CREATE_NEW')]",
"dependsOn": [],
"kind": "other",
"location": "[variables('appInsightsLocation')]",
"name": "[variables('appInsightsName')]",
"properties": {
"ApplicationId": "[variables('appInsightsName')]",
"Application_Type": "other"
},
"tags": "[if(empty(variables('tagValues')), json('null'), variables('tagValues'))]",
"type": "Microsoft.Insights/components"
}
],
"outputs": {
"GUI-URL": {
"type": "string",
"value": "N/A"
},
"SSH-URL": {
"type": "string",
"value": "N/A"
}
}
}