- 重要な情報
- アプリ内
- インフラストラクチャー
- アプリケーションパフォーマンス
- 継続的インテグレーション
- ログ管理
- セキュリティ
- UX モニタリング
- 管理
Set up the azure.networkwatcher integration.
Azure Network Watcher can use flow logs so that you can monitor traffic from resources. This rule generates a finding if there is no retention policy set with a duration over 90 days.
Note: 0 days means unlimited retention.
Setting this attribute enables flow logs to be retained for an appropriate amount of time that enables a better security posture for your organization. These logs should be retained critical resources in your environment.
Follow the steps in Configuring Network Security Group Flow logs with Azure CLI to enable the ‘flow logs’ in Network Watcher.
Ensure Insights provider is registered by running the following command to check:
az provider register --namespace Microsoft.Insights
Enable flow logs
:
Note: You will need to have a storage account setup prior to this.
az network watcher flow-log create --resource-group resourceGroupName --enabled true --nsg nsgName --storage-account storageAccountName --location location
az network watcher flow-log create --resource-group resourceGroupName --enabled true --nsg nsgName --storage-account storageAccountName --location location --format JSON --log-version 2
Repeat steps 2 and 3 for resources that are not configured correctly.