-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
SqlManagedInstance_ADOnlyEnabled_Deny.json
59 lines (59 loc) · 1.8 KB
/
SqlManagedInstance_ADOnlyEnabled_Deny.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
59
{
"properties": {
"displayName": "Azure SQL Managed Instances should have Microsoft Entra-only authentication enabled during creation",
"description": "Require Azure SQL Managed Instance to be created with Microsoft Entra-only authentication. This policy doesn't block local authentication from being re-enabled on resources after create. Consider using the 'Microsoft Entra-only authentication' initiative instead to require both. Learn more at: https://aka.ms/adonlycreate.",
"policyType": "BuiltIn",
"mode": "Indexed",
"metadata": {
"version": "1.2.0",
"category": "SQL"
},
"version": "1.2.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Sql/managedInstances"
},
{
"anyOf": [
{
"field": "Microsoft.Sql/managedInstances/administrators.azureADOnlyAuthentication",
"exists": false
},
{
"field": "Microsoft.Sql/managedInstances/administrators.azureADOnlyAuthentication",
"equals": false
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.2.0",
"1.1.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/78215662-041e-49ed-a9dd-5385911b3a1f",
"name": "78215662-041e-49ed-a9dd-5385911b3a1f"
}