-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
InjectVNet_Audit.json
58 lines (58 loc) · 1.73 KB
/
InjectVNet_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": "Container App environments should use network injection",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Container Apps environments should use virtual network injection to: 1.Isolate Container Apps from the public internet 2.Enable network integration with resources on-premises or in other Azure virtual networks 3.Achieve more granular control over network traffic flowing to and from the environment.",
"metadata": {
"version": "1.0.2",
"category": "Container Apps"
},
"version": "1.0.2",
"parameters": {
"effect": {
"type": "String",
"defaultValue": "Audit",
"allowedValues": [
"Audit",
"Disabled",
"Deny"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.App/managedEnvironments"
},
{
"anyOf": [
{
"field": "Microsoft.App/managedEnvironments/vnetConfiguration.infrastructureSubnetId",
"exists": false
},
{
"field": "Microsoft.App/managedEnvironments/vnetConfiguration.infrastructureSubnetId",
"equals": ""
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.2"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/8b346db6-85af-419b-8557-92cee2c0f9bb",
"name": "8b346db6-85af-419b-8557-92cee2c0f9bb"
}