Hello Giang Nguyễn Trọng
It looks like you're looking to check the allow/deny logs for a specific Network Security Group (NSG) within the Virtual Network Flow Logs after migrating from NSG Flow Logs.
Please check the below details:
1.Make sure you have Virtual Network Flow Logs enabled for your Azure Virtual Network. This setup is essential since NSG Flow Logs will be retired in 2027, and you will need to migrate to Virtual Network Flow Logs for logging.
2.You can also use NSG Diagnostics to simulate traffic and see which rule allows or denies it:
- Go to Network Watcher > NSG Diagnostics.
- Select the target VM or subnet, protocol, direction, and source/destination IP.
- Run diagnostics to see which NSG rule is applied and whether traffic is allowed or denied.
- Use tools like Azure Log Analytics or storage account CA to query and analyze these logs. You can create queries that filter by the NSG you are interested in.
Refer: https://learn.microsoft.com/en-us/azure/network-watcher/vnet-flow-logs-manage?tabs=portal
https://learn.microsoft.com/en-us/azure/network-watcher/vnet-flow-logs-overview?tabs=Americas
I hope it helps! Please let us know do you have any further queries.
Please do not forget to “up-vote” wherever the information provided helps you, this can be beneficial to other community members.