Answer accepted by question author
Hello Satish B
I understand that you're having trouble setting up Network Watcher flow logs for a Network Security Group with Terraform.
NSG Flow Logs have been deprecated for new deployments. Microsoft no longer supports creating new NSG Flow Logs, which is why the portal now only provides options to create flow logs at the VNet, Subnet, or NIC level rather than at the NSG level. Check the below screen shot:
π User's image
Check the reference document for more understanding:
Flow logging for network security groups
Azure now requires the use of VNet Flow Logs, which operate at the VNet, Subnet, or NIC level and offer broader visibility. These logs can be fully centralized within your Security subscription.
Hope the above answer helps! Please let us know do you have any further queries.
Please do consider to "accepting the answer" and βup-voteβ wherever the information provided helps you, this can be beneficial to other community members.
