-
Notifications
You must be signed in to change notification settings - Fork 112
/
azuredeploy-nested.bicep
2117 lines (2072 loc) · 77.7 KB
/
azuredeploy-nested.bicep
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
param projectLocation string
param templateLocation string
param storageAccountName string
param automationAccountName string
param sqlServerName string
param sqlDatabaseName string
param logAnalyticsReuse bool
param logAnalyticsWorkspaceName string
param logAnalyticsWorkspaceRG string
param logAnalyticsRetentionDays int
param sqlBackupRetentionDays int
param sqlAdminLogin string
@secure()
param sqlAdminPassword string
param cloudEnvironment string
param authenticationOption string
param baseTime string
param resourceTags object
param contributorRoleAssignmentGuid string
param argDiskExportJobId string = newGuid()
param argVhdExportJobId string = newGuid()
param argVmExportJobId string = newGuid()
param argVmssExportJobId string = newGuid()
param argAvailSetExportJobId string = newGuid()
param advisorExportJobId string = newGuid()
param consumptionExportJobId string = newGuid()
param aadObjectsExportJobId string = newGuid()
param argLoadBalancersExportJobId string = newGuid()
param argAppGWsExportJobId string = newGuid()
param rbacExportJobId string = newGuid()
param argResContainersExportJobId string = newGuid()
param argNICExportJobId string = newGuid()
param argNSGExportJobId string = newGuid()
param argPublicIPExportJobId string = newGuid()
param argVNetExportJobId string = newGuid()
param argSqlDbExportJobId string = newGuid()
param policyStateExportJobId string = newGuid()
param monitorVmssCpuMaxExportJobId string = newGuid()
param monitorVmssCpuAvgExportJobId string = newGuid()
param monitorVmssMemoryMinExportJobId string = newGuid()
param monitorSqlDbDtuMaxExportJobId string = newGuid()
param monitorSqlDbDtuAvgExportJobId string = newGuid()
param monitorAppServiceCpuMaxExportJobId string = newGuid()
param monitorAppServiceCpuAvgExportJobId string = newGuid()
param monitorAppServiceMemoryMaxExportJobId string = newGuid()
param monitorAppServiceMemoryAvgExportJobId string = newGuid()
param monitorDiskIOPSAvgExportJobId string = newGuid()
param monitorDiskMBPsAvgExportJobId string = newGuid()
param argAppServicePlanExportJobId string = newGuid()
param pricesheetExportJobId string = newGuid()
param reservationPricesExportJobId string = newGuid()
param reservationUsageExportJobId string = newGuid()
param savingsPlansUsageExportJobId string = newGuid()
param argDiskIngestJobId string = newGuid()
param argVhdIngestJobId string = newGuid()
param argVmIngestJobId string = newGuid()
param argVmssIngestJobId string = newGuid()
param argAvailSetIngestJobId string = newGuid()
param advisorIngestJobId string = newGuid()
param remediationLogsIngestJobId string = newGuid()
param consumptionIngestJobId string = newGuid()
param aadObjectsIngestJobId string = newGuid()
param argLoadBalancersIngestJobId string = newGuid()
param argAppGWsIngestJobId string = newGuid()
param argResContainersIngestJobId string = newGuid()
param rbacIngestJobId string = newGuid()
param argNICIngestJobId string = newGuid()
param argNSGIngestJobId string = newGuid()
param argPublicIPIngestJobId string = newGuid()
param argVNetIngestJobId string = newGuid()
param argSqlDbIngestJobId string = newGuid()
param policyStateIngestJobId string = newGuid()
param monitorIngestJobId string = newGuid()
param argAppServicePlanIngestJobId string = newGuid()
param pricesheetIngestJobId string = newGuid()
param reservationPricesIngestJobId string = newGuid()
param reservationUsageIngestJobId string = newGuid()
param savingsPlansUsageIngestJobId string = newGuid()
param unattachedDisksRecommendationJobId string = newGuid()
param advisorCostAugmentedRecommendationJobId string = newGuid()
param advisorAsIsRecommendationJobId string = newGuid()
param vmsHaRecommendationJobId string = newGuid()
param vmOptimizationsRecommendationJobId string = newGuid()
param aadExpiringCredsRecommendationJobId string = newGuid()
param unusedLoadBalancersRecommendationJobId string = newGuid()
param unusedAppGWsRecommendationJobId string = newGuid()
param armOptimizationsRecommendationJobId string = newGuid()
param vnetOptimizationsRecommendationJobId string = newGuid()
param vmssOptimizationsRecommendationJobId string = newGuid()
param sqldbOptimizationsRecommendationJobId string = newGuid()
param storageOptimizationsRecommendationJobId string = newGuid()
param appServiceOptimizationsRecommendationJobId string = newGuid()
param diskOptimizationsRecommendationJobId string = newGuid()
param recommendationsIngestJobId string = newGuid()
param recommendationsLogAnalyticsIngestJobId string = newGuid()
param suppressionsLogAnalyticsIngestJobId string = newGuid()
param recommendationsCleanUpJobId string = newGuid()
param roleContributor string = '/subscriptions/${subscription().subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c'
var advisorExportsRunbookName = 'Export-AdvisorRecommendationsToBlobStorage'
var argVmExportsRunbookName = 'Export-ARGVirtualMachinesPropertiesToBlobStorage'
var argVmssExportsRunbookName = 'Export-ARGVMSSPropertiesToBlobStorage'
var argDisksExportsRunbookName = 'Export-ARGManagedDisksPropertiesToBlobStorage'
var argVhdExportsRunbookName = 'Export-ARGUnmanagedDisksPropertiesToBlobStorage'
var argAvailSetExportsRunbookName = 'Export-ARGAvailabilitySetPropertiesToBlobStorage'
var consumptionExportsRunbookName = 'Export-ConsumptionToBlobStorage'
var aadObjectsExportsRunbookName = 'Export-AADObjectsToBlobStorage'
var argLoadBalancersExportsRunbookName = 'Export-ARGLoadBalancerPropertiesToBlobStorage'
var argAppGWsExportsRunbookName = 'Export-ARGAppGatewayPropertiesToBlobStorage'
var argResContainersExportsRunbookName = 'Export-ARGResourceContainersPropertiesToBlobStorage'
var rbacExportsRunbookName = 'Export-RBACAssignmentsToBlobStorage'
var argNICExportsRunbookName = 'Export-ARGNICPropertiesToBlobStorage'
var argNSGExportsRunbookName = 'Export-ARGNSGPropertiesToBlobStorage'
var argVNetExportsRunbookName = 'Export-ARGVNetPropertiesToBlobStorage'
var argPublicIpExportsRunbookName = 'Export-ARGPublicIpPropertiesToBlobStorage'
var argSqlDbExportsRunbookName = 'Export-ARGSqlDatabasePropertiesToBlobStorage'
var policyStateExportsRunbookName = 'Export-PolicyComplianceToBlobStorage'
var monitorExportsRunbookName = 'Export-AzMonitorMetricsToBlobStorage'
var argAppServicePlanExportsRunbookName = 'Export-ARGAppServicePlanPropertiesToBlobStorage'
var reservationsExportsRunbookName = 'Export-ReservationsUsageToBlobStorage'
var reservationsPriceExportsRunbookName = 'Export-ReservationsPriceToBlobStorage'
var priceSheetExportsRunbookName = 'Export-PriceSheetToBlobStorage'
var savingsPlansExportsRunbookName = 'Export-SavingsPlansUsageToBlobStorage'
var advisorExportsScheduleName = 'AzureOptimization_ExportAdvisorWeekly'
var argExportsScheduleName = 'AzureOptimization_ExportARGDaily'
var consumptionExportsScheduleName = 'AzureOptimization_ExportConsumptionDaily'
var aadObjectsExportsScheduleName = 'AzureOptimization_ExportAADObjectsDaily'
var rbacExportsScheduleName = 'AzureOptimization_ExportRBACDaily'
var policyStateExportsScheduleName = 'AzureOptimization_ExportPolicyStateDaily'
var monitorVmssCpuMaxExportsScheduleName = 'AzureOptimization_ExportMonitorVmssCpuMaxHourly'
var monitorVmssCpuAvgExportsScheduleName = 'AzureOptimization_ExportMonitorVmssCpuAvgHourly'
var monitorVmssMemoryMinExportsScheduleName = 'AzureOptimization_ExportMonitorVmssMemoryMinHourly'
var monitorSqlDbDtuMaxExportsScheduleName = 'AzureOptimization_ExportMonitorSqlDbDtuMaxHourly'
var monitorSqlDbDtuAvgExportsScheduleName = 'AzureOptimization_ExportMonitorSqlDbDtuAvgHourly'
var monitorAppServiceCpuMaxExportsScheduleName = 'AzureOptimization_ExportMonitorAppServiceCpuMaxHourly'
var monitorAppServiceCpuAvgExportsScheduleName = 'AzureOptimization_ExportMonitorAppServiceCpuAvgHourly'
var monitorAppServiceMemoryMaxExportsScheduleName = 'AzureOptimization_ExportMonitorAppServiceMemoryMaxHourly'
var monitorAppServiceMemoryAvgExportsScheduleName = 'AzureOptimization_ExportMonitorAppServiceMemoryAvgHourly'
var monitorDiskIOPSAvgExportsScheduleName = 'AzureOptimization_ExportMonitorDiskIOPSHourly'
var monitorDiskMBPsAvgExportsScheduleName = 'AzureOptimization_ExportMonitorDiskMBPsHourly'
var priceExportsScheduleName = 'AzureOptimization_ExportPricesWeekly'
var reservationsUsageExportsScheduleName = 'AzureOptimization_ExportReservationsDaily'
var savingsPlansUsageExportsScheduleName = 'AzureOptimization_ExportSavingsPlansDaily'
var csvExportsSchedules = [
{
exportSchedule: argExportsScheduleName
exportDescription: 'Daily Azure Resource Graph exports'
exportTimeOffset: 'PT1H05M'
exportFrequency: 'Day'
}
{
exportSchedule: advisorExportsScheduleName
exportDescription: 'Weekly Azure Advisor exports'
exportTimeOffset: 'PT1H15M'
exportFrequency: 'Week'
}
{
exportSchedule: consumptionExportsScheduleName
exportDescription: 'Daily Azure Consumption exports'
exportTimeOffset: 'PT1H'
exportFrequency: 'Day'
}
{
exportSchedule: aadObjectsExportsScheduleName
exportDescription: 'Daily Microsoft Entra Objects exports'
exportTimeOffset: 'PT1H'
exportFrequency: 'Day'
}
{
exportSchedule: rbacExportsScheduleName
exportDescription: 'Daily Azure RBAC exports'
exportTimeOffset: 'PT1H02M'
exportFrequency: 'Day'
}
{
exportSchedule: policyStateExportsScheduleName
exportDescription: 'Daily Azure Policy State exports'
exportTimeOffset: 'PT1H'
exportFrequency: 'Day'
}
{
exportSchedule: monitorVmssCpuAvgExportsScheduleName
exportDescription: 'Hourly Azure Monitor metrics exports for VMSS Percentage CPU (Avg.)'
exportTimeOffset: 'PT1H15M'
exportFrequency: 'Hour'
}
{
exportSchedule: monitorVmssCpuMaxExportsScheduleName
exportDescription: 'Hourly Azure Monitor metrics exports for VMSS Percentage CPU (Max.)'
exportTimeOffset: 'PT1H15M'
exportFrequency: 'Hour'
}
{
exportSchedule: monitorVmssMemoryMinExportsScheduleName
exportDescription: 'Hourly Azure Monitor metrics exports for VMSS Available Memory (Min.)'
exportTimeOffset: 'PT1H15M'
exportFrequency: 'Hour'
}
{
exportSchedule: monitorSqlDbDtuMaxExportsScheduleName
exportDescription: 'Hourly Azure Monitor metrics exports for SQL Database Percentage DTU (Max.)'
exportTimeOffset: 'PT1H15M'
exportFrequency: 'Hour'
}
{
exportSchedule: monitorSqlDbDtuAvgExportsScheduleName
exportDescription: 'Hourly Azure Monitor metrics exports for SQL Database Percentage DTU (Avg.)'
exportTimeOffset: 'PT1H16M'
exportFrequency: 'Hour'
}
{
exportSchedule: monitorAppServiceCpuAvgExportsScheduleName
exportDescription: 'Hourly Azure Monitor metrics exports for App Service Percentage CPU (Avg.)'
exportTimeOffset: 'PT1H16M'
exportFrequency: 'Hour'
}
{
exportSchedule: monitorAppServiceCpuMaxExportsScheduleName
exportDescription: 'Hourly Azure Monitor metrics exports for App Service Percentage CPU (Max.)'
exportTimeOffset: 'PT1H16M'
exportFrequency: 'Hour'
}
{
exportSchedule: monitorAppServiceMemoryAvgExportsScheduleName
exportDescription: 'Hourly Azure Monitor metrics exports for App Service Percentage RAM (Avg.)'
exportTimeOffset: 'PT1H16M'
exportFrequency: 'Hour'
}
{
exportSchedule: monitorAppServiceMemoryMaxExportsScheduleName
exportDescription: 'Hourly Azure Monitor metrics exports for App Service Percentage RAM (Max.)'
exportTimeOffset: 'PT1H17M'
exportFrequency: 'Hour'
}
{
exportSchedule: monitorDiskIOPSAvgExportsScheduleName
exportDescription: 'Hourly Azure Monitor metrics exports for Disk IOPS (Avg.)'
exportTimeOffset: 'PT1H17M'
exportFrequency: 'Hour'
}
{
exportSchedule: monitorDiskMBPsAvgExportsScheduleName
exportDescription: 'Hourly Azure Monitor metrics exports for Disk MBPs (Avg.)'
exportTimeOffset: 'PT1H17M'
exportFrequency: 'Hour'
}
{
exportSchedule: priceExportsScheduleName
exportDescription: 'Weekly Pricesheet and Reservation Prices exports'
exportTimeOffset: 'PT1H35M'
exportFrequency: 'Week'
}
{
exportSchedule: reservationsUsageExportsScheduleName
exportDescription: 'Daily Reservation Usage exports'
exportTimeOffset: 'PT2H'
exportFrequency: 'Day'
}
{
exportSchedule: savingsPlansUsageExportsScheduleName
exportDescription: 'Daily Savings Plans Usage exports'
exportTimeOffset: 'PT2H05M'
exportFrequency: 'Day'
}
]
var csvExports = [
{
runbookName: advisorExportsRunbookName
isOneToMany: false
containerName: 'advisorexports'
variableName: 'AzureOptimization_AdvisorContainer'
variableDescription: 'The Storage Account container where Azure Advisor exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestAdvisorWeekly'
ingestDescription: 'Weekly Azure Advisor recommendations ingests'
ingestTimeOffset: 'PT1H45M'
ingestFrequency: 'Week'
ingestJobId: advisorIngestJobId
exportSchedule: advisorExportsScheduleName
exportJobId: advisorExportJobId
}
{
runbookName: argVmExportsRunbookName
isOneToMany: false
containerName: 'argvmexports'
variableName: 'AzureOptimization_ARGVMContainer'
variableDescription: 'The Storage Account container where Azure Resource Graph Virtual Machine exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestARGVMsDaily'
ingestDescription: 'Daily Azure Resource Graph Virtual Machines ingests'
ingestTimeOffset: 'PT1H30M'
ingestFrequency: 'Day'
ingestJobId: argVmIngestJobId
exportSchedule: argExportsScheduleName
exportJobId: argVmExportJobId
}
{
runbookName: argVmssExportsRunbookName
isOneToMany: false
containerName: 'argvmssexports'
variableName: 'AzureOptimization_ARGVMSSContainer'
variableDescription: 'The Storage Account container where Azure Resource Graph VMSS exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestARGVMSSDaily'
ingestDescription: 'Daily Azure Resource Graph VMSS ingests'
ingestTimeOffset: 'PT1H30M'
ingestFrequency: 'Day'
ingestJobId: argVmssIngestJobId
exportSchedule: argExportsScheduleName
exportJobId: argVmssExportJobId
}
{
runbookName: argDisksExportsRunbookName
isOneToMany: false
containerName: 'argdiskexports'
variableName: 'AzureOptimization_ARGDiskContainer'
variableDescription: 'The Storage Account container where Azure Resource Graph Managed Disks exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestARGDisksDaily'
ingestDescription: 'Daily Azure Resource Graph Managed Disks ingests'
ingestTimeOffset: 'PT1H30M'
ingestFrequency: 'Day'
ingestJobId: argDiskIngestJobId
exportSchedule: argExportsScheduleName
exportJobId: argDiskExportJobId
}
{
runbookName: argVhdExportsRunbookName
isOneToMany: false
containerName: 'argvhdexports'
variableName: 'AzureOptimization_ARGVhdContainer'
variableDescription: 'The Storage Account container where Azure Resource Graph Unmanaged Disks exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestARGVHDsDaily'
ingestDescription: 'Daily Azure Resource Graph Unmanaged Disks ingests'
ingestTimeOffset: 'PT1H30M'
ingestFrequency: 'Day'
ingestJobId: argVhdIngestJobId
exportSchedule: argExportsScheduleName
exportJobId: argVhdExportJobId
}
{
runbookName: argAvailSetExportsRunbookName
isOneToMany: false
containerName: 'argavailsetexports'
variableName: 'AzureOptimization_ARGAvailabilitySetContainer'
variableDescription: 'The Storage Account container where Azure Resource Graph Availability Set exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestARGAvailSetsDaily'
ingestDescription: 'Daily Azure Resource Graph Availability Sets ingests'
ingestTimeOffset: 'PT1H31M'
ingestFrequency: 'Day'
ingestJobId: argAvailSetIngestJobId
exportSchedule: argExportsScheduleName
exportJobId: argAvailSetExportJobId
}
{
runbookName: consumptionExportsRunbookName
isOneToMany: false
containerName: 'consumptionexports'
variableName: 'AzureOptimization_ConsumptionContainer'
variableDescription: 'The Storage Account container where Azure Consumption exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestConsumptionDaily'
ingestDescription: 'Daily Azure Consumption ingests'
ingestTimeOffset: 'PT2H'
ingestFrequency: 'Day'
ingestJobId: consumptionIngestJobId
exportSchedule: consumptionExportsScheduleName
exportJobId: consumptionExportJobId
}
{
runbookName: aadObjectsExportsRunbookName
isOneToMany: false
containerName: 'aadobjectsexports'
variableName: 'AzureOptimization_AADObjectsContainer'
variableDescription: 'The Storage Account container where Microsoft Entra Objects exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestAADObjectsDaily'
ingestDescription: 'Daily Microsoft Entra Objects ingests'
ingestTimeOffset: 'PT2H'
ingestFrequency: 'Day'
ingestJobId: aadObjectsIngestJobId
exportSchedule: aadObjectsExportsScheduleName
exportJobId: aadObjectsExportJobId
}
{
runbookName: argLoadBalancersExportsRunbookName
isOneToMany: false
containerName: 'arglbexports'
variableName: 'AzureOptimization_ARGLoadBalancerContainer'
variableDescription: 'The Storage Account container where Azure Resource Graph Load Balancer exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestARGLoadBalancersDaily'
ingestDescription: 'Daily Azure Resource Graph Load Balancers ingests'
ingestTimeOffset: 'PT1H31M'
ingestFrequency: 'Day'
ingestJobId: argLoadBalancersIngestJobId
exportSchedule: argExportsScheduleName
exportJobId: argLoadBalancersExportJobId
}
{
runbookName: argAppGWsExportsRunbookName
isOneToMany: false
containerName: 'argappgwexports'
variableName: 'AzureOptimization_ARGAppGatewayContainer'
variableDescription: 'The Storage Account container where Azure Resource Graph Application Gateway exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestARGAppGWsDaily'
ingestDescription: 'Daily Azure Resource Graph Application Gateways ingests'
ingestTimeOffset: 'PT1H31M'
ingestFrequency: 'Day'
ingestJobId: argAppGWsIngestJobId
exportSchedule: argExportsScheduleName
exportJobId: argAppGWsExportJobId
}
{
runbookName: argResContainersExportsRunbookName
isOneToMany: false
containerName: 'argrescontainersexports'
variableName: 'AzureOptimization_ARGResourceContainersContainer'
variableDescription: 'The Storage Account container where Azure Resource Graph Resource Containers exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestARGResourceContainersDaily'
ingestDescription: 'Daily Azure Resource Graph Resource Containers ingests'
ingestTimeOffset: 'PT1H32M'
ingestFrequency: 'Day'
ingestJobId: argResContainersIngestJobId
exportSchedule: argExportsScheduleName
exportJobId: argResContainersExportJobId
}
{
runbookName: rbacExportsRunbookName
isOneToMany: false
containerName: 'rbacexports'
variableName: 'AzureOptimization_RBACAssignmentsContainer'
variableDescription: 'The Storage Account container where RBAC Assignments exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestRBACDaily'
ingestDescription: 'Daily Azure RBAC ingests'
ingestTimeOffset: 'PT1H32M'
ingestFrequency: 'Day'
ingestJobId: rbacIngestJobId
exportSchedule: rbacExportsScheduleName
exportJobId: rbacExportJobId
}
{
runbookName: argNICExportsRunbookName
isOneToMany: false
containerName: 'argnicexports'
variableName: 'AzureOptimization_ARGNICContainer'
variableDescription: 'The Storage Account container where Azure Resource Graph NIC exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestARGNICsDaily'
ingestDescription: 'Daily Azure Resource Graph NIC ingests'
ingestTimeOffset: 'PT1H32M'
ingestFrequency: 'Day'
ingestJobId: argNICIngestJobId
exportSchedule: argExportsScheduleName
exportJobId: argNICExportJobId
}
{
runbookName: argNSGExportsRunbookName
isOneToMany: false
containerName: 'argnsgexports'
variableName: 'AzureOptimization_ARGNSGContainer'
variableDescription: 'The Storage Account container where Azure Resource Graph NSG exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestARGNSGsDaily'
ingestDescription: 'Daily Azure Resource Graph NSG ingests'
ingestTimeOffset: 'PT1H32M'
ingestFrequency: 'Day'
ingestJobId: argNSGIngestJobId
exportSchedule: argExportsScheduleName
exportJobId: argNSGExportJobId
}
{
runbookName: argVNetExportsRunbookName
isOneToMany: false
containerName: 'argvnetexports'
variableName: 'AzureOptimization_ARGVNetContainer'
variableDescription: 'The Storage Account container where Azure Resource Graph VNet exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestARGVNetsDaily'
ingestDescription: 'Daily Azure Resource Graph Virtual Network ingests'
ingestTimeOffset: 'PT1H33M'
ingestFrequency: 'Day'
ingestJobId: argVNetIngestJobId
exportSchedule: argExportsScheduleName
exportJobId: argVNetExportJobId
}
{
runbookName: argPublicIpExportsRunbookName
isOneToMany: false
containerName: 'argpublicipexports'
variableName: 'AzureOptimization_ARGPublicIpContainer'
variableDescription: 'The Storage Account container where Azure Resource Graph Public IP exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestARGPublicIPsDaily'
ingestDescription: 'Daily Azure Resource Graph Public IP ingests'
ingestTimeOffset: 'PT1H33M'
ingestFrequency: 'Day'
ingestJobId: argPublicIPIngestJobId
exportSchedule: argExportsScheduleName
exportJobId: argPublicIPExportJobId
}
{
runbookName: argSqlDbExportsRunbookName
isOneToMany: false
containerName: 'argsqldbexports'
variableName: 'AzureOptimization_ARGSqlDatabaseContainer'
variableDescription: 'The Storage Account container where Azure Resource Graph SQL DB exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestARGSqlDbDaily'
ingestDescription: 'Daily Azure Resource Graph SQL DB ingests'
ingestTimeOffset: 'PT1H33M'
ingestFrequency: 'Day'
ingestJobId: argSqlDbIngestJobId
exportSchedule: argExportsScheduleName
exportJobId: argSqlDbExportJobId
}
{
runbookName: policyStateExportsRunbookName
isOneToMany: false
containerName: 'policystateexports'
variableName: 'AzureOptimization_PolicyStatesContainer'
variableDescription: 'The Storage Account container where Azure Policy State exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestPolicyStateDaily'
ingestDescription: 'Daily Azure Policy State ingests'
ingestTimeOffset: 'PT1H33M'
ingestFrequency: 'Day'
ingestJobId: policyStateIngestJobId
exportSchedule: policyStateExportsScheduleName
exportJobId: policyStateExportJobId
}
{
runbookName: monitorExportsRunbookName
isOneToMany: true
containerName: 'azmonitorexports'
variableName: 'AzureOptimization_AzMonitorContainer'
variableDescription: 'The Storage Account container where Azure Monitor metrics exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestAzMonitorMetricsHourly'
ingestDescription: 'Hourly Azure Monitor metrics ingests'
ingestTimeOffset: 'PT2H'
ingestFrequency: 'Hour'
ingestJobId: monitorIngestJobId
exportSchedule: null
exportJobId: 'dummy'
}
{
runbookName: argAppServicePlanExportsRunbookName
isOneToMany: false
containerName: 'argappserviceplanexports'
variableName: 'AzureOptimization_ARGAppServicePlanContainer'
variableDescription: 'The Storage Account container where Azure Resource Graph App Service Plan exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestARGAppServicePlanDaily'
ingestDescription: 'Daily Azure Resource Graph App Service Plan ingests'
ingestTimeOffset: 'PT1H34M'
ingestFrequency: 'Day'
ingestJobId: argAppServicePlanIngestJobId
exportSchedule: argExportsScheduleName
exportJobId: argAppServicePlanExportJobId
}
{
runbookName: priceSheetExportsRunbookName
isOneToMany: false
containerName: 'pricesheetexports'
variableName: 'AzureOptimization_PriceSheetContainer'
variableDescription: 'The Storage Account container where Pricesheet exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestPricesheetWeekly'
ingestDescription: 'Weekly Pricesheet ingests'
ingestTimeOffset: 'PT2H'
ingestFrequency: 'Week'
ingestJobId: pricesheetIngestJobId
exportSchedule: priceExportsScheduleName
exportJobId: pricesheetExportJobId
}
{
runbookName: reservationsPriceExportsRunbookName
isOneToMany: false
containerName: 'reservationspriceexports'
variableName: 'AzureOptimization_ReservationsPriceContainer'
variableDescription: 'The Storage Account container where Reservations Prices exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestReservationsPriceWeekly'
ingestDescription: 'Weekly Reservations Prices ingests'
ingestTimeOffset: 'PT2H'
ingestFrequency: 'Week'
ingestJobId: reservationPricesIngestJobId
exportSchedule: priceExportsScheduleName
exportJobId: reservationPricesExportJobId
}
{
runbookName: reservationsExportsRunbookName
isOneToMany: false
containerName: 'reservationsexports'
variableName: 'AzureOptimization_ReservationsContainer'
variableDescription: 'The Storage Account container where Reservations Usage exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestReservationsUsageDaily'
ingestDescription: 'Daily Reservations Usage ingests'
ingestTimeOffset: 'PT2H30M'
ingestFrequency: 'Day'
ingestJobId: reservationUsageIngestJobId
exportSchedule: reservationsUsageExportsScheduleName
exportJobId: reservationUsageExportJobId
}
{
runbookName: savingsPlansExportsRunbookName
isOneToMany: false
containerName: 'savingsplansexports'
variableName: 'AzureOptimization_SavingsPlansContainer'
variableDescription: 'The Storage Account container where Savings Plans Usage exports are dumped to'
ingestSchedule: 'AzureOptimization_IngestSavingsPlansUsageDaily'
ingestDescription: 'Daily Savings Plans Usage ingests'
ingestTimeOffset: 'PT2H35M'
ingestFrequency: 'Day'
ingestJobId: savingsPlansUsageIngestJobId
exportSchedule: savingsPlansUsageExportsScheduleName
exportJobId: savingsPlansUsageExportJobId
}
]
var csvParameterizedExports = [
{
runbookName: monitorExportsRunbookName
exportSchedule: monitorVmssCpuMaxExportsScheduleName
exportJobId: monitorVmssCpuMaxExportJobId
parameters: {
ResourceType: 'microsoft.compute/virtualmachinescalesets'
TimeSpan: '01:00:00'
aggregationType: 'Maximum'
MetricNames: 'Percentage CPU'
TimeGrain: '01:00:00'
}
}
{
runbookName: monitorExportsRunbookName
exportSchedule: monitorVmssCpuAvgExportsScheduleName
exportJobId: monitorVmssCpuAvgExportJobId
parameters: {
ResourceType: 'microsoft.compute/virtualmachinescalesets'
TimeSpan: '01:00:00'
aggregationType: 'Average'
MetricNames: 'Percentage CPU'
TimeGrain: '01:00:00'
}
}
{
runbookName: monitorExportsRunbookName
exportSchedule: monitorVmssMemoryMinExportsScheduleName
exportJobId: monitorVmssMemoryMinExportJobId
parameters: {
ResourceType: 'microsoft.compute/virtualmachinescalesets'
TimeSpan: '01:00:00'
aggregationType: 'Minimum'
MetricNames: 'Available Memory Bytes'
TimeGrain: '01:00:00'
}
}
{
runbookName: monitorExportsRunbookName
exportSchedule: monitorSqlDbDtuMaxExportsScheduleName
exportJobId: monitorSqlDbDtuMaxExportJobId
parameters: {
ResourceType: 'microsoft.sql/servers/databases'
ARGFilter: 'sku.tier in (\'Standard\',\'Premium\')'
TimeSpan: '01:00:00'
aggregationType: 'Maximum'
MetricNames: 'dtu_consumption_percent'
TimeGrain: '01:00:00'
}
}
{
runbookName: monitorExportsRunbookName
exportSchedule: monitorSqlDbDtuAvgExportsScheduleName
exportJobId: monitorSqlDbDtuAvgExportJobId
parameters: {
ResourceType: 'microsoft.sql/servers/databases'
ARGFilter: 'sku.tier in (\'Standard\',\'Premium\')'
TimeSpan: '01:00:00'
aggregationType: 'Average'
AggregationOfType: 'Maximum'
MetricNames: 'dtu_consumption_percent'
TimeGrain: '00:01:00'
}
}
{
runbookName: monitorExportsRunbookName
exportSchedule: monitorAppServiceCpuMaxExportsScheduleName
exportJobId: monitorAppServiceCpuMaxExportJobId
parameters: {
ResourceType: 'microsoft.web/serverfarms'
ARGFilter: 'properties.computeMode == \'Dedicated\' and sku.tier != \'Free\''
TimeSpan: '01:00:00'
aggregationType: 'Maximum'
MetricNames: 'CpuPercentage'
TimeGrain: '01:00:00'
}
}
{
runbookName: monitorExportsRunbookName
exportSchedule: monitorAppServiceCpuAvgExportsScheduleName
exportJobId: monitorAppServiceCpuAvgExportJobId
parameters: {
ResourceType: 'microsoft.web/serverfarms'
ARGFilter: 'properties.computeMode == \'Dedicated\' and sku.tier != \'Free\''
TimeSpan: '01:00:00'
aggregationType: 'Average'
AggregationOfType: 'Maximum'
MetricNames: 'CpuPercentage'
TimeGrain: '00:01:00'
}
}
{
runbookName: monitorExportsRunbookName
exportSchedule: monitorAppServiceMemoryMaxExportsScheduleName
exportJobId: monitorAppServiceMemoryMaxExportJobId
parameters: {
ResourceType: 'microsoft.web/serverfarms'
ARGFilter: 'properties.computeMode == \'Dedicated\' and sku.tier != \'Free\''
TimeSpan: '01:00:00'
aggregationType: 'Maximum'
MetricNames: 'MemoryPercentage'
TimeGrain: '01:00:00'
}
}
{
runbookName: monitorExportsRunbookName
exportSchedule: monitorAppServiceMemoryAvgExportsScheduleName
exportJobId: monitorAppServiceMemoryAvgExportJobId
parameters: {
ResourceType: 'microsoft.web/serverfarms'
ARGFilter: 'properties.computeMode == \'Dedicated\' and sku.tier != \'Free\''
TimeSpan: '01:00:00'
aggregationType: 'Average'
AggregationOfType: 'Maximum'
MetricNames: 'MemoryPercentage'
TimeGrain: '00:01:00'
}
}
{
runbookName: monitorExportsRunbookName
exportSchedule: monitorDiskIOPSAvgExportsScheduleName
exportJobId: monitorDiskIOPSAvgExportJobId
parameters: {
ResourceType: 'microsoft.compute/disks'
ARGFilter: 'sku.name =~ \'Premium_LRS\' and properties.diskState != \'Unattached\''
TimeSpan: '01:00:00'
aggregationType: 'Average'
AggregationOfType: 'Maximum'
MetricNames: 'Composite Disk Read Operations/sec,Composite Disk Write Operations/sec'
TimeGrain: '00:01:00'
}
}
{
runbookName: monitorExportsRunbookName
exportSchedule: monitorDiskMBPsAvgExportsScheduleName
exportJobId: monitorDiskMBPsAvgExportJobId
parameters: {
ResourceType: 'microsoft.compute/disks'
ARGFilter: 'sku.name =~ \'Premium_LRS\' and properties.diskState != \'Unattached\''
TimeSpan: '01:00:00'
aggregationType: 'Average'
AggregationOfType: 'Maximum'
MetricNames: 'Composite Disk Read Bytes/sec,Composite Disk Write Bytes/sec'
TimeGrain: '00:01:00'
}
}
]
var unattachedDisksRecommendationsRunbookName = 'Recommend-UnattachedDisksToBlobStorage'
var advisorCostAugmentedRecommendationsRunbookName = 'Recommend-AdvisorCostAugmentedToBlobStorage'
var advisorAsIsRecommendationsRunbookName = 'Recommend-AdvisorAsIsToBlobStorage'
var vmsHARecommendationsRunbookName = 'Recommend-VMsHighAvailabilityToBlobStorage'
var vmOptimizationsRecommendationsRunbookName = 'Recommend-VMOptimizationsToBlobStorage'
var aadExpiringCredsRecommendationsRunbookName = 'Recommend-AADExpiringCredentialsToBlobStorage'
var unusedLBsRecommendationsRunbookName = 'Recommend-UnusedLoadBalancersToBlobStorage'
var unusedAppGWsRecommendationsRunbookName = 'Recommend-UnusedAppGWsToBlobStorage'
var armOptimizationsRecommendationsRunbookName = 'Recommend-ARMOptimizationsToBlobStorage'
var vnetOptimizationsRecommendationsRunbookName = 'Recommend-VNetOptimizationsToBlobStorage'
var vmssOptimizationsRecommendationsRunbookName = 'Recommend-VMSSOptimizationsToBlobStorage'
var sqldbOptimizationsRecommendationsRunbookName = 'Recommend-SqlDbOptimizationsToBlobStorage'
var storageOptimizationsRecommendationsRunbookName = 'Recommend-StorageAccountOptimizationsToBlobStorage'
var appServiceOptimizationsRecommendationsRunbookName = 'Recommend-AppServiceOptimizationsToBlobStorage'
var diskOptimizationsRecommendationsRunbookName = 'Recommend-DiskOptimizationsToBlobStorage'
var cleanUpOlderRecommendationsRunbookName = 'CleanUp-OlderRecommendationsFromSqlServer'
var recommendations = [
{
recommendationJobId: unattachedDisksRecommendationJobId
runbookName: unattachedDisksRecommendationsRunbookName
}
{
recommendationJobId: advisorCostAugmentedRecommendationJobId
runbookName: advisorCostAugmentedRecommendationsRunbookName
}
{
recommendationJobId: advisorAsIsRecommendationJobId
runbookName: advisorAsIsRecommendationsRunbookName
}
{
recommendationJobId: vmsHaRecommendationJobId
runbookName: vmsHARecommendationsRunbookName
}
{
recommendationJobId: vmOptimizationsRecommendationJobId
runbookName: vmOptimizationsRecommendationsRunbookName
}
{
recommendationJobId: aadExpiringCredsRecommendationJobId
runbookName: aadExpiringCredsRecommendationsRunbookName
}
{
recommendationJobId: unusedLoadBalancersRecommendationJobId
runbookName: unusedLBsRecommendationsRunbookName
}
{
recommendationJobId: unusedAppGWsRecommendationJobId
runbookName: unusedAppGWsRecommendationsRunbookName
}
{
recommendationJobId: armOptimizationsRecommendationJobId
runbookName: armOptimizationsRecommendationsRunbookName
}
{
recommendationJobId: vnetOptimizationsRecommendationJobId
runbookName: vnetOptimizationsRecommendationsRunbookName
}
{
recommendationJobId: vmssOptimizationsRecommendationJobId
runbookName: vmssOptimizationsRecommendationsRunbookName
}
{
recommendationJobId: sqldbOptimizationsRecommendationJobId
runbookName: sqldbOptimizationsRecommendationsRunbookName
}
{
recommendationJobId: storageOptimizationsRecommendationJobId
runbookName: storageOptimizationsRecommendationsRunbookName
}
{
recommendationJobId: appServiceOptimizationsRecommendationJobId
runbookName: appServiceOptimizationsRecommendationsRunbookName
}
{
recommendationJobId: diskOptimizationsRecommendationJobId
runbookName: diskOptimizationsRecommendationsRunbookName
}
]
var remediationLogsContainerName = 'remediationlogs'
var recommendationsContainerName = 'recommendationsexports'
var csvIngestRunbookName = 'Ingest-OptimizationCSVExportsToLogAnalytics'
var recommendationsIngestRunbookName = 'Ingest-RecommendationsToSQLServer'
var recommendationsLogAnalyticsIngestRunbookName = 'Ingest-RecommendationsToLogAnalytics'
var suppressionsLogAnalyticsIngestRunbookName = 'Ingest-SuppressionsToLogAnalytics'
var advisorRightSizeFilteredRemediationRunbookName = 'Remediate-AdvisorRightSizeFiltered'
var longDeallocatedVMsFilteredRemediationRunbookName = 'Remediate-LongDeallocatedVMsFiltered'
var unattachedDisksFilteredRemediationRunbookName = 'Remediate-UnattachedDisksFiltered'
var remediationLogsIngestScheduleName = 'AzureOptimization_IngestRemediationLogsDaily'
var recommendationsScheduleName = 'AzureOptimization_RecommendationsWeekly'
var recommendationsIngestScheduleName = 'AzureOptimization_IngestRecommendationsWeekly'
var suppressionsIngestScheduleName = 'AzureOptimization_IngestSuppressionsWeekly'
var recommendationsCleanUpScheduleName = 'AzureOptimization_CleanUpRecommendationsWeekly'
var Az_Accounts = {
name: 'Az.Accounts'
url: 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.12.1'
}
var Microsoft_Graph_Authentication = {
name: 'Microsoft.Graph.Authentication'
url: 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/2.4.0'
}
var psModules = [
{
name: 'Az.Compute'
url: 'https://www.powershellgallery.com/api/v2/package/Az.Compute/5.7.0'
}
{
name: 'Az.OperationalInsights'
url: 'https://www.powershellgallery.com/api/v2/package/Az.OperationalInsights/3.2.0'
}
{
name: 'Az.ResourceGraph'
url: 'https://www.powershellgallery.com/api/v2/package/Az.ResourceGraph/0.13.0'
}
{
name: 'Az.Storage'
url: 'https://www.powershellgallery.com/api/v2/package/Az.Storage/5.5.0'
}
{
name: 'Az.Resources'
url: 'https://www.powershellgallery.com/api/v2/package/Az.Resources/6.6.0'
}
{
name: 'Az.Monitor'
url: 'https://www.powershellgallery.com/api/v2/package/Az.Monitor/4.4.1'
}
{
name: 'Az.PolicyInsights'
url: 'https://www.powershellgallery.com/api/v2/package/Az.PolicyInsights/1.6.0'
}
{
name: 'Microsoft.Graph.Users'
url: 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Users/2.4.0'
}
{
name: 'Microsoft.Graph.Groups'
url: 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Groups/2.4.0'
}
{
name: 'Microsoft.Graph.Applications'
url: 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Applications/2.4.0'
}
{
name: 'Microsoft.Graph.Identity.DirectoryManagement'
url: 'https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Identity.DirectoryManagement/2.4.0'
}
]
var runbooks = [
{
name: advisorExportsRunbookName
version: '1.4.2.1'
description: 'Exports Azure Advisor recommendations to Blob Storage using the Advisor API'
type: 'PowerShell'
scriptUri: uri(templateLocation, 'runbooks/data-collection/${advisorExportsRunbookName}.ps1')
}
{
name: argDisksExportsRunbookName
version: '1.3.4.1'
description: 'Exports Managed Disks properties to Blob Storage using Azure Resource Graph'
type: 'PowerShell'
scriptUri: uri(templateLocation, 'runbooks/data-collection/${argDisksExportsRunbookName}.ps1')
}
{
name: argVhdExportsRunbookName
version: '1.1.4.1'
description: 'Exports Unmanaged Disks (owned by a VM) properties to Blob Storage using Azure Resource Graph'
type: 'PowerShell'
scriptUri: uri(templateLocation, 'runbooks/data-collection/${argVhdExportsRunbookName}.ps1')
}
{
name: argVmExportsRunbookName
version: '1.4.4.1'
description: 'Exports Virtual Machine properties to Blob Storage using Azure Resource Graph'
type: 'PowerShell'
scriptUri: uri(templateLocation, 'runbooks/data-collection/${argVmExportsRunbookName}.ps1')
}
{
name: argVmssExportsRunbookName
version: '1.0.2.1'
description: 'Exports VMSS properties to Blob Storage using Azure Resource Graph'
type: 'PowerShell'
scriptUri: uri(templateLocation, 'runbooks/data-collection/${argVmssExportsRunbookName}.ps1')
}
{
name: argAvailSetExportsRunbookName
version: '1.1.4.1'
description: 'Exports Availability Set properties to Blob Storage using Azure Resource Graph'
type: 'PowerShell'
scriptUri: uri(templateLocation, 'runbooks/data-collection/${argAvailSetExportsRunbookName}.ps1')
}
{
name: consumptionExportsRunbookName
version: '2.0.4.1'
description: 'Exports Azure Consumption events to Blob Storage using Azure Consumption API'
type: 'PowerShell'
scriptUri: uri(templateLocation, 'runbooks/data-collection/${consumptionExportsRunbookName}.ps1')
}
{
name: aadObjectsExportsRunbookName
version: '1.2.2.1'
description: 'Exports Azure AAD Objects to Blob Storage using Azure ARM API'
type: 'PowerShell'
scriptUri: uri(templateLocation, 'runbooks/data-collection/${aadObjectsExportsRunbookName}.ps1')
}
{
name: argLoadBalancersExportsRunbookName
version: '1.1.4.1'
description: 'Exports Load Balancer properties to Blob Storage using Azure Resource Graph'
type: 'PowerShell'
scriptUri: uri(templateLocation, 'runbooks/data-collection/${argLoadBalancersExportsRunbookName}.ps1')
}
{
name: argAppGWsExportsRunbookName
version: '1.1.4.1'
description: 'Exports Application Gateway properties to Blob Storage using Azure Resource Graph'
type: 'PowerShell'
scriptUri: uri(templateLocation, 'runbooks/data-collection/${argAppGWsExportsRunbookName}.ps1')
}
{
name: argResContainersExportsRunbookName
version: '1.0.5.1'
description: 'Exports Resource Containers properties to Blob Storage using Azure Resource Graph'
type: 'PowerShell'
scriptUri: uri(templateLocation, 'runbooks/data-collection/${argResContainersExportsRunbookName}.ps1')
}
{
name: rbacExportsRunbookName
version: '1.0.4.1'
description: 'Exports RBAC assignments to Blob Storage using ARM and Microsoft Entra'
type: 'PowerShell'
scriptUri: uri(templateLocation, 'runbooks/data-collection/${rbacExportsRunbookName}.ps1')
}
{
name: argNICExportsRunbookName
version: '1.0.2.1'
description: 'Exports NIC properties to Blob Storage using Azure Resource Graph'
type: 'PowerShell'
scriptUri: uri(templateLocation, 'runbooks/data-collection/${argNICExportsRunbookName}.ps1')
}
{
name: argNSGExportsRunbookName
version: '1.0.2.1'
description: 'Exports NSG properties to Blob Storage using Azure Resource Graph'
type: 'PowerShell'
scriptUri: uri(templateLocation, 'runbooks/data-collection/${argNSGExportsRunbookName}.ps1')
}
{