You have 10 virtual machines on a single subnet that has a single network security group (NSG).
You need to log the network traffic to an Azure Storage account.
What should you do?
Click on the arrows to vote for the correct answer
A. B. C. D.D
A network security group (NSG) enables you to filter inbound traffic to, and outbound traffic from, a virtual machine (VM). You can log network traffic that flows through an NSG with Network Watcher's NSG flow log capability. Steps include:
-> Create a VM with a network security group
-> Enable Network Watcher and register the Microsoft.Insights provider
-> Enable a traffic flow log for an NSG, using Network Watcher's NSG flow log capability
-> Download logged data
View logged data -
To log the network traffic to an Azure Storage account, you need to enable NSG flow logs. Therefore, the correct answer is D.
An NSG is a fundamental Azure resource that controls access to network traffic by using security rules. By enabling flow logs, you can capture network traffic that is processed by an NSG. NSG flow logs provide you with information about the source and destination IP addresses, ports, protocol, and action (allow or deny) taken on the traffic.
To enable NSG flow logs, you can use the Azure portal, Azure PowerShell, or Azure CLI. Here are the steps to enable NSG flow logs using the Azure portal:
After you enable NSG flow logs, the logs will be stored in the specified storage account. You can use Azure Monitor, Azure Log Analytics, or any other log analysis tool to analyze and visualize the logs.
In conclusion, to log the network traffic to an Azure Storage account from an NSG, you need to enable NSG flow logs.