/
prohibited.sp
624 lines (563 loc) · 23.8 KB
/
prohibited.sp
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
variable "prohibited_tags" {
type = list(string)
description = "A list of prohibited tags to check for."
default = ["Password", "Key"]
}
locals {
prohibited_sql = <<-EOQ
with analysis as (
select
id,
array_agg(k) as prohibited_tags
from
__TABLE_NAME__,
jsonb_object_keys(tags) as k,
unnest($1::text[]) as prohibited_key
where
k = prohibited_key
group by
id
)
select
r.id as resource,
case
when a.prohibited_tags <> array[]::text[] then 'alarm'
else 'ok'
end as status,
case
when a.prohibited_tags <> array[]::text[] then r.title || ' has prohibited tags: ' || array_to_string(a.prohibited_tags, ', ') || '.'
else r.title || ' has no prohibited tags.'
end as reason,
__DIMENSIONS__
from
__TABLE_NAME__ as r
full outer join
analysis as a on a.id = r.id;
EOQ
}
locals {
prohibited_sql_subscription = replace(local.prohibited_sql, "__DIMENSIONS__", "r.subscription_id")
prohibited_sql_resource_group = replace(local.prohibited_sql, "__DIMENSIONS__", "r.resource_group, r.subscription_id")
}
benchmark "prohibited" {
title = "Prohibited"
description = "Prohibited tags may contain sensitive, confidential, or otherwise unwanted data and should be removed."
children = [
control.api_management_prohibited,
control.app_service_environment_prohibited,
control.app_service_function_app_prohibited,
control.app_service_plan_prohibited,
control.app_service_web_app_prohibited,
control.application_security_group_prohibited,
control.batch_account_prohibited,
control.compute_availability_set_prohibited,
control.compute_disk_encryption_set_prohibited,
control.compute_disk_prohibited,
control.compute_image_prohibited,
control.compute_snapshot_prohibited,
control.compute_virtual_machine_prohibited,
control.compute_virtual_machine_scale_set_prohibited,
control.container_registry_prohibited,
control.cosmosdb_account_prohibited,
control.cosmosdb_mongo_database_prohibited,
control.cosmosdb_sql_database_prohibited,
control.data_factory_prohibited,
control.data_lake_analytics_account_prohibited,
control.data_lake_store_prohibited,
control.eventhub_namespace_prohibited,
control.express_route_circuit_prohibited,
control.firewall_prohibited,
control.iothub_prohibited,
control.key_vault_deleted_vault_prohibited,
control.key_vault_key_prohibited,
control.key_vault_managed_hardware_security_module_prohibited,
control.key_vault_prohibited,
control.key_vault_secret_prohibited,
control.kubernetes_cluster_prohibited,
control.lb_prohibited,
control.log_alert_prohibited,
control.log_profile_prohibited,
control.logic_app_workflow_prohibited,
control.mariadb_server_prohibited,
control.mssql_elasticpool_prohibited,
control.mssql_managed_instance_prohibited,
control.mysql_server_prohibited,
control.network_interface_prohibited,
control.network_security_group_prohibited,
control.network_watcher_flow_log_prohibited,
control.network_watcher_prohibited,
control.postgresql_server_prohibited,
control.public_ip_prohibited,
control.recovery_services_vault_prohibited,
control.redis_cache_prohibited,
control.resource_group_prohibited,
control.route_table_prohibited,
control.search_service_prohibited,
control.servicebus_namespace_prohibited,
control.sql_database_prohibited,
control.sql_server_prohibited,
control.storage_account_prohibited,
control.stream_analytics_job_prohibited,
control.virtual_network_gateway_prohibited,
control.virtual_network_prohibited
]
tags = merge(local.azure_tags_common_tags, {
type = "Benchmark"
})
}
control "api_management_prohibited" {
title = "API Management services should not have prohibited tags"
description = "Check if API Management services have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_api_management")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "app_service_environment_prohibited" {
title = "App Service environments should not have prohibited tags"
description = "Check if App Service environments have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_app_service_environment")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "app_service_function_app_prohibited" {
title = "App Service function apps should not have prohibited tags"
description = "Check if App Service function apps have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_app_service_function_app")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "app_service_plan_prohibited" {
title = "App Service plans should not have prohibited tags"
description = "Check if App Service plans have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_app_service_plan")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "app_service_web_app_prohibited" {
title = "App Service web apps should not have prohibited tags"
description = "Check if App Service web apps have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_app_service_web_app")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "application_security_group_prohibited" {
title = "Application security groups should not have prohibited tags"
description = "Check if Application security groups have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_application_security_group")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "batch_account_prohibited" {
title = "Batch accounts should not have prohibited tags"
description = "Check if Batch accounts have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_batch_account")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "compute_availability_set_prohibited" {
title = "Compute availability sets should not have prohibited tags"
description = "Check if Compute availability sets have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_compute_availability_set")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "compute_disk_prohibited" {
title = "Compute disks should not have prohibited tags"
description = "Check if Compute disks have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_compute_disk")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "compute_disk_encryption_set_prohibited" {
title = "Compute disk encryption sets should not have prohibited tags"
description = "Check if Compute disk encryption sets have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_compute_disk_encryption_set")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "compute_image_prohibited" {
title = "Compute images should not have prohibited tags"
description = "Check if Compute images have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_compute_image")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "compute_snapshot_prohibited" {
title = "Compute snapshots should not have prohibited tags"
description = "Check if Compute snapshots have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_compute_snapshot")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "compute_virtual_machine_prohibited" {
title = "Compute virtual machines should not have prohibited tags"
description = "Check if Compute virtual machines have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_compute_virtual_machine")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "compute_virtual_machine_scale_set_prohibited" {
title = "Compute virtual machine scale sets should not have prohibited tags"
description = "Check if Compute virtual machine scale sets have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_compute_virtual_machine_scale_set")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "container_registry_prohibited" {
title = "Container registries should not have prohibited tags"
description = "Check if Container registries have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_container_registry")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "cosmosdb_account_prohibited" {
title = "CosmosDB accounts should not have prohibited tags"
description = "Check if CosmosDB accounts have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_cosmosdb_account")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "cosmosdb_mongo_database_prohibited" {
title = "CosmosDB mongo databases should not have prohibited tags"
description = "Check if CosmosDB mongo databases have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_cosmosdb_mongo_database")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "cosmosdb_sql_database_prohibited" {
title = "CosmosDB sql databases should not have prohibited tags"
description = "Check if CosmosDB sql databases have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_cosmosdb_sql_database")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "data_factory_prohibited" {
title = "Data factories should not have prohibited tags"
description = "Check if Data factories have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_data_factory")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "data_lake_analytics_account_prohibited" {
title = "Data lake analytics accounts should not have prohibited tags"
description = "Check if Data lake analytics accounts have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_data_lake_analytics_account")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "data_lake_store_prohibited" {
title = "Data lake stores should not have prohibited tags"
description = "Check if Data lake stores have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_data_lake_store")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "eventhub_namespace_prohibited" {
title = "Event Hub namespaces should not have prohibited tags"
description = "Check if Event Hub namespaces have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_eventhub_namespace")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "express_route_circuit_prohibited" {
title = "ExpressRoute circuits should not have prohibited tags"
description = "Check if ExpressRoute circuits have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_express_route_circuit")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "firewall_prohibited" {
title = "Firewalls should not have prohibited tags"
description = "Check if Firewalls have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_firewall")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "iothub_prohibited" {
title = "IoT Hubs should not have prohibited tags"
description = "Check if IoT Hubs have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_iothub")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "key_vault_prohibited" {
title = "Key vaults should not have prohibited tags"
description = "Check if Key vaults have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_key_vault")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "key_vault_deleted_vault_prohibited" {
title = "Key vault deleted vaults should not have prohibited tags"
description = "Check if Key vault deleted vaults have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_key_vault_deleted_vault")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "key_vault_key_prohibited" {
title = "Key vault keys should not have prohibited tags"
description = "Check if Key vault keys have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_key_vault_key")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "key_vault_managed_hardware_security_module_prohibited" {
title = "Key vault managed hardware security modules should not have prohibited tags"
description = "Check if Key vault managed hardware security modules have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_key_vault_managed_hardware_security_module")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "key_vault_secret_prohibited" {
title = "Key vault secrets should not have prohibited tags"
description = "Check if Key vault secrets have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_key_vault_secret")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "kubernetes_cluster_prohibited" {
title = "Kubernetes clusters should not have prohibited tags"
description = "Check if Kubernetes clusters have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_kubernetes_cluster")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "lb_prohibited" {
title = "Load balancers should not have prohibited tags"
description = "Check if Load balancers have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_lb")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "log_alert_prohibited" {
title = "Log alerts should not have prohibited tags"
description = "Check if Log alerts have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_log_alert")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "log_profile_prohibited" {
title = "Log profiles should not have prohibited tags"
description = "Check if Log profiles have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_log_profile")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "logic_app_workflow_prohibited" {
title = "Logic app workflows should not have prohibited tags"
description = "Check if Logic app workflows have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_logic_app_workflow")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "mariadb_server_prohibited" {
title = "MariaDB servers should not have prohibited tags"
description = "Check if MariaDB servers have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_mariadb_server")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "mssql_elasticpool_prohibited" {
title = "Mssql elasticpools should not have prohibited tags"
description = "Check if Mssql elasticpools have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_mssql_elasticpool")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "mssql_managed_instance_prohibited" {
title = "Microsoft SQL managed instances should not have prohibited tags"
description = "Check if Microsoft SQL managed instances have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_mssql_managed_instance")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "mysql_server_prohibited" {
title = "MySQL servers should not have prohibited tags"
description = "Check if MySQL servers have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_mysql_server")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "network_interface_prohibited" {
title = "Network interfaces should not have prohibited tags"
description = "Check if Network interfaces have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_network_interface")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "network_security_group_prohibited" {
title = "Network security groups should not have prohibited tags"
description = "Check if Network security groups have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_network_security_group")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "network_watcher_prohibited" {
title = "Network watchers should not have prohibited tags"
description = "Check if Network watchers have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_network_watcher")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "network_watcher_flow_log_prohibited" {
title = "Network watcher flow logs should not have prohibited tags"
description = "Check if Network watcher flow logs have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_network_watcher_flow_log")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "postgresql_server_prohibited" {
title = "PostgreSQL servers should not have prohibited tags"
description = "Check if PostgreSQL servers have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_postgresql_server")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "public_ip_prohibited" {
title = "Public IPs should not have prohibited tags"
description = "Check if Public IPs have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_public_ip")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "recovery_services_vault_prohibited" {
title = "Recovery services vaults should not have prohibited tags"
description = "Check if Recovery services vaults have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_recovery_services_vault")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "redis_cache_prohibited" {
title = "Redis caches should not have prohibited tags"
description = "Check if Redis caches have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_redis_cache")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "resource_group_prohibited" {
title = "Resource groups should not have prohibited tags"
description = "Check if Resource groups have any prohibited tags."
sql = replace(local.prohibited_sql_subscription, "__TABLE_NAME__", "azure_resource_group")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "route_table_prohibited" {
title = "Route tables should not have prohibited tags"
description = "Check if Route tables have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_route_table")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "search_service_prohibited" {
title = "Search services should not have prohibited tags"
description = "Check if Search services have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_search_service")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "servicebus_namespace_prohibited" {
title = "Service Bus namespaces should not have prohibited tags"
description = "Check if Servicebus namespaces have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_servicebus_namespace")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "sql_database_prohibited" {
title = "SQL databases should not have prohibited tags"
description = "Check if SQL databases have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_sql_database")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "sql_server_prohibited" {
title = "Sql servers should not have prohibited tags"
description = "Check if Sql servers have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_sql_server")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "storage_account_prohibited" {
title = "Storage accounts should not have prohibited tags"
description = "Check if Storage accounts have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_storage_account")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "stream_analytics_job_prohibited" {
title = "Stream Analytics jobs should not have prohibited tags"
description = "Check if Stream Analytics jobs have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_stream_analytics_job")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "virtual_network_prohibited" {
title = "Virtual networks should not have prohibited tags"
description = "Check if Virtual networks have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_virtual_network")
param "prohibited_tags" {
default = var.prohibited_tags
}
}
control "virtual_network_gateway_prohibited" {
title = "Virtual network gateways should not have prohibited tags"
description = "Check if Virtual network gateways have any prohibited tags."
sql = replace(local.prohibited_sql_resource_group, "__TABLE_NAME__", "azure_virtual_network_gateway")
param "prohibited_tags" {
default = var.prohibited_tags
}
}