๐ก๏ธ Azure Network Security Group Flow Logs retention period is less than 90 days๐ข
- Contextual name: ๐ก๏ธ Security Group Flow Logs retention period is less than 90 days๐ข
- ID:
/ce/ca/azure/virtual-network/security-group-flow-logs-retention-period-over-90-days - Tags:
- ๐ข Policy with categories
- ๐ข Policy with type
- ๐ข Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicโ
- ๐ง prod.logic.yaml๐ข
Similar Policiesโ
- Cloud Conformity: Check for NSG Flow Log Retention Period
- Internal:
dec-x-e5c05d3e
Similar Internal Rulesโ
| Rule | Policies | Flags |
|---|---|---|
| โ๏ธ dec-x-e5c05d3e | 1 |
Descriptionโ
Descriptionโ
Consider migrating from network security group flow logs to virtual network flow logs.
Retirement Notice On September 30, 2027, network security group (NSG) flow logs will be retired. Starting June 30, 2025, it will no longer be possible to create new NSG flow logs. Azure recommends migrating to virtual network flow logs. Review https://azure.microsoft.com/en-gb/updates?id=Azure-NSG-flow-logs-Retirement for more information. For virtual network flow logs, consider applying the policy
Azure Virtual Network Flow Logs retention period is less than 90 daysin this section.Rationaleโ
Flow logs enable capturing information about IP traffic flowing in and out of network security groups. Logs can be used to check for anomalies and give insight into suspected breaches.
Impactโ
This will keep IP traffic logs for longer than 90 days. First determine your need to retain data, then apply your selection here. As this is data stored for longer, your monthly storage costs will increase depending on your data use.
... see more
Remediationโ
Remediationโ
Migrate Network Security Group (NSG) Flow Logs to Virtual Network Flow Logsโ
Azure Network Security Group (NSG) flow logs must be migrated to Azure Virtual Network flow logs. This process disables existing NSG flow logs and creates equivalent virtual network flow logs.
Generate Migration Filesโ
- In the Azure portal, navigate to Network Watcher.
- Under Logs, select Migrate flow logs.
- Select the subscriptions and regions containing the NSG flow logs to migrate.
- Select Download script and JSON file.
A ZIP file named
MigrateFlowLogs.zipis downloaded.Run the Migration Scriptโ
Extract
MigrateFlowLogs.ziplocally. The archive contains:
MigrationFromNsgToAzureFlowLogging.ps1RegionSubscriptionConfig.jsonRun the migration script:
.\MigrationFromNsgToAzureFlowLogging.ps1
- Select Run analysis by entering
1.- When prompted, provide the path to the configuration file:
.\RegionSubscriptionConfig.json
- Enter the number of threads to use, or press Enter to accept the default value (
16).... see more