Azure / Community-Policy

This repo is for Microsoft Azure customers and Microsoft teams to collaborate in making custom policies.
MIT License
636 stars 327 forks source link

Deploy a Traffic Analytics enabled Flow Log resource with target virtual network #462

Closed donk-msft closed 4 months ago

donk-msft commented 5 months ago

There's a built-in Policy Definition 'Deploy a Flow Log resource with target virtual network' that can enable Flow Logging for virtual networks to a storage account. However, it doesn't support logging to a Log Analytics workspace.

There's a Community Policy 'Deploy a traffic analytics enabled flow log resource with target tagged network security group' that supports this, but only for NSG Flow Logging, not virtual network Flow Logging.

I combined built-in and Community Policy to support virtual network Flow Logging to a Log Analytics workspace.