Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insights on Firewall Policy (#12509) #1

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,23 @@
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleCollectionGroups/ruleCollectionGroup1"
}
],
"insights": {
"isEnabled": true,
"retentionDays": 100,
"logAnalyticsResources": {
"workspaceIds": [
{
"id": "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace1"
},
{
"id": "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace2"
}
],
"defaultWorkspaceId": {
"id": "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/defaultWorkspace"
}
}
},
"firewalls": [],
"snat": {
"privateRanges": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,23 @@
"*.microsoft.com"
]
},
"insights": {
"isEnabled": true,
"retentionDays": 100,
"logAnalyticsResources": {
"workspaceIds": [
{
"id": "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace1"
},
{
"id": "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace2"
}
],
"defaultWorkspaceId": {
"id": "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/defaultWorkspace"
}
}
},
"snat": {
"privateRanges": [
"IANAPrivateRanges"
Expand Down Expand Up @@ -100,6 +117,23 @@
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleCollectionGroups/ruleCollectionGroup2"
}
],
"insights": {
"isEnabled": true,
"retentionDays": 100,
"logAnalyticsResources": {
"workspaceIds": [
{
"id": "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace1"
},
{
"id": "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace2"
}
],
"defaultWorkspaceId": {
"id": "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/defaultWorkspace"
}
}
},
"firewalls": [],
"snat": {
"privateRanges": [
Expand Down Expand Up @@ -181,6 +215,23 @@
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleCollectionGroups/ruleCollectionGroup2"
}
],
"insights": {
"isEnabled": true,
"retentionDays": 100,
"logAnalyticsResources": {
"workspaceIds": [
{
"id": "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace1"
},
{
"id": "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace2"
}
],
"defaultWorkspaceId": {
"id": "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/defaultWorkspace"
}
}
},
"firewalls": [],
"snat": {
"privateRanges": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,10 @@
"description": "ThreatIntel Whitelist for Firewall Policy.",
"$ref": "#/definitions/FirewallPolicyThreatIntelWhitelist"
},
"insights": {
"description": "Insights on Firewall Policy.",
"$ref": "#/definitions/FirewallPolicyInsights"
},
"snat": {
"description": "The private IP addresses/IP ranges to which traffic will not be SNAT.",
"$ref": "#/definitions/FirewallPolicySNAT"
Expand Down Expand Up @@ -1150,6 +1154,25 @@
}
}
},
"FirewallPolicyInsights": {
"description": "Firewall Policy Insights.",
"x-ms-discriminator-value": "FirewallPolicyInsights",
"properties": {
"isEnabled": {
"type": "boolean",
"description": "A flag to indicate if the insights are enabled on the policy."
},
"retentionDays": {
"type": "integer",
"format": "int32",
"description": "Number of days the insights should be enabled on the policy."
},
"logAnalyticsResources": {
"description": "Workspaces needed to configure the Firewall Policy Insights.",
"$ref": "#/definitions/FirewallPolicyLogAnalyticsResources"
}
}
},
"FirewallPolicySNAT": {
"description": "The private IP addresses/IP ranges to which traffic will not be SNAT.",
"x-ms-discriminator-value": "FirewallPolicySNAT",
Expand Down Expand Up @@ -1348,6 +1371,23 @@
}
},
"description": "SKU of Firewall policy."
},
"FirewallPolicyLogAnalyticsResources": {
"description": "Log Analytics Resources for Firewall Policy Insights.",
"x-ms-discriminator-value": "FirewallPolicyLogAnalyticsResources",
"properties": {
"workspaceIds": {
"type": "array",
"description": "List of workspace Ids for Firewall Policy Insights.",
"items": {
"$ref": "./network.json#/definitions/SubResource"
}
},
"defaultWorkspaceId": {
"$ref": "./network.json#/definitions/SubResource",
"description": "The default workspace Id for Firewall Policy Insights."
}
}
}
}
}