-
Notifications
You must be signed in to change notification settings - Fork 0
/
policy01-isHnsEnabled.json
43 lines (43 loc) · 1.08 KB
/
policy01-isHnsEnabled.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
{
"type": "Microsoft.Authorization/policyDefinitions",
"name": "azure-data-lake-storage-v3-hns-audit",
"properties": {
"displayName": "Azure Data Lake Storage v3 - Audit hierarchical namespace on Storage account",
"description": "This policy audits hierarchical namespace is enabled on Storage account.",
"mode": "All",
"parameters": {
"productTagFilter": {
"type": "String",
"metadata": {
"displayName": "Product Tag Filter",
"description": "The filter for the Product tag applied to Storage account resource. This policy only applies to resources that match the filter."
}
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "tags['Product']",
"like": "[parameters('productTagFilter')]"
},
{
"allOf": [
{
"field": "type",
"equals": "Microsoft.Storage/storageAccounts"
},
{
"field": "Microsoft.Storage/storageAccounts/isHnsEnabled",
"exists": false
}
]
}
]
},
"then": {
"effect": "audit"
}
}
}
}