less than 1 minute read

A while back I wrote a blog post on how to enable NSG flow and traffic analytics in bulk for all your NSGs.

A few things have changed since then so I decided to create a V2 version of the PowerShell script.

You will notice that the script has been updated to use the new AZ PowerShell modules.

Also we are now enabling NSG Flow V2 instead of V1 which was not available back in 2017 when I wrote the first script.
To enable v2 the documentation is saying you should just use ” -FormatVersion 2 “. However if you do this it will not work. The -formatversion is not passed through the RestAPI. The solution is to specify the format type as well with ” -FormatType Json “.

Hope this helps,

Alex

Leave a comment