-
Notifications
You must be signed in to change notification settings - Fork 4.9k
/
EnforceAdaptiveNetworkHardeningRules_example.json
50 lines (50 loc) · 1.4 KB
/
EnforceAdaptiveNetworkHardeningRules_example.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
{
"parameters": {
"api-version": "2020-01-01",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"resourceGroupName": "rg1",
"resourceNamespace": "Microsoft.Compute",
"resourceType": "virtualMachines",
"resourceName": "vm1",
"adaptiveNetworkHardeningResourceName": "default",
"adaptiveNetworkHardeningEnforceAction": "enforce",
"body": {
"rules": [
{
"name": "rule1",
"direction": "Inbound",
"destinationPort": 3389,
"protocols": [
"TCP"
],
"ipAddresses": [
"100.10.1.1",
"200.20.2.2",
"81.199.3.0/24"
]
},
{
"name": "rule2",
"direction": "Inbound",
"destinationPort": 22,
"protocols": [
"TCP"
],
"ipAddresses": []
}
],
"networkSecurityGroups": [
"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1",
"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nsg2"
]
}
},
"responses": {
"200": {
"description": "OK."
},
"202": {
"description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously."
}
}
}