-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
PostgreSQL_FlexibleServers_EnableEntraOnlyAuthentication_Audit.json
58 lines (58 loc) · 1.73 KB
/
PostgreSQL_FlexibleServers_EnableEntraOnlyAuthentication_Audit.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
{
"properties": {
"displayName": "[Preview]: Azure PostgreSQL flexible server should have Microsoft Entra Only Authentication enabled",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Disabling local authentication methods and allowing only Microsoft Entra Authentication improves security by ensuring that Azure PostgreSQL flexible server can exclusively be accessed by Microsoft Entra identities.",
"metadata": {
"preview": true,
"version": "1.0.0-preview",
"category": "SQL"
},
"version": "1.0.0-preview",
"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.DBForPostgreSql/flexibleServers"
},
{
"anyOf": [
{
"field": "Microsoft.DBForPostgreSql/flexibleServers/authConfig.activeDirectoryAuth",
"notEquals": "Enabled"
},
{
"field": "Microsoft.DBForPostgreSql/flexibleServers/authConfig.passwordAuth",
"notEquals": "Disabled"
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0-PREVIEW"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/fa498b91-8a7e-4710-9578-da944c68d1fe",
"name": "fa498b91-8a7e-4710-9578-da944c68d1fe"
}