Repository navigation
Expand file tree
/
Copy pathCustomerManagedKeyEnabled_Audit.json
More file actions
55 lines (55 loc) · 1.76 KB
/
Copy pathCustomerManagedKeyEnabled_Audit.json
File metadata and controls
55 lines (55 loc) · 1.76 KB
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
{
"properties": {
"displayName": "Service Bus Premium namespaces should use a customer-managed key for encryption",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Azure Service Bus supports the option of encrypting data at rest with either Microsoft-managed keys (default) or customer-managed keys. Choosing to encrypt data using customer-managed keys enables you to assign, rotate, disable, and revoke access to the keys that Service Bus will use to encrypt data in your namespace. Note that Service Bus only supports encryption with customer-managed keys for premium namespaces.",
"metadata": {
"version": "1.0.0",
"category": "Service Bus"
},
"version": "1.0.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Audit",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.ServiceBus/namespaces"
},
{
"field": "Microsoft.ServiceBus/namespaces/sku.tier",
"equals": "Premium"
},
{
"not": {
"field": "Microsoft.ServiceBus/namespaces/encryption.keySource",
"equals": "Microsoft.Keyvault"
}
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/295fc8b1-dc9f-4f53-9c61-3f313ceab40a",
"name": "295fc8b1-dc9f-4f53-9c61-3f313ceab40a"
}