-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
ConfigurePacketCoreDiagnosticAccessWithMicrosoftEntraID_Modify.json
63 lines (63 loc) · 1.9 KB
/
ConfigurePacketCoreDiagnosticAccessWithMicrosoftEntraID_Modify.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
60
61
62
63
{
"properties": {
"displayName": "Configure Packet Core Control Plane diagnostic access to use authentication type Microsoft EntraID",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Authenticaton type must be Microsoft EntraID for packet core diagnostic access over local APIs",
"metadata": {
"category": "Mobile Network",
"version": "1.0.0"
},
"version": "1.0.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Modify",
"Disabled"
],
"defaultValue": "Modify"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.MobileNetwork/packetCoreControlPlanes"
},
{
"field": "Microsoft.MobileNetwork/packetCoreControlPlanes/localDiagnosticsAccess.authenticationType",
"notEquals": "AAD"
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"roleDefinitionIds": [
"/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
],
"conflictEffect": "audit",
"operations": [
{
"condition": "[greaterOrEquals(requestContext().apiVersion, '2022-11-01')]",
"operation": "addOrReplace",
"field": "Microsoft.MobileNetwork/packetCoreControlPlanes/localDiagnosticsAccess.authenticationType",
"value": "AAD"
}
]
}
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/7508b186-60e2-4518-bf70-3d7fbaba1f3a",
"name": "7508b186-60e2-4518-bf70-3d7fbaba1f3a"
}