-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
AllowCertainManagingTenantIds_Deny.json
46 lines (46 loc) · 1.32 KB
/
AllowCertainManagingTenantIds_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
{
"properties": {
"description": "Restricting Azure Lighthouse delegations to specific managing tenants increases security by limiting those who can manage your Azure resources.",
"displayName": "Allow managing tenant ids to onboard through Azure Lighthouse",
"policyType": "BuiltIn",
"mode": "All",
"metadata": {
"version": "1.0.1",
"category": "Lighthouse"
},
"version": "1.0.1",
"parameters": {
"listOfAllowedTenants": {
"type": "Array",
"metadata": {
"displayName": "Allowed tenants",
"description": "List of the tenants IDs that can be onboarded through Azure Lighthouse"
}
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.ManagedServices/registrationDefinitions"
},
{
"not": {
"field": "Microsoft.ManagedServices/registrationDefinitions/managedByTenantId",
"in": "[parameters('listOfAllowedTenants')]"
}
}
]
},
"then": {
"effect": "deny"
}
},
"versions": [
"1.0.1"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/7a8a51a3-ad87-4def-96f3-65a1839242b6",
"name": "7a8a51a3-ad87-4def-96f3-65a1839242b6"
}