Visualizing Traffic Flow Between Azure Virtual Machines | Azure Monitor

Graph Visualization for Virtual Machine Traffic Flow | Azure Monitor


You have an Azure subscription that contains 10 virtual machines on a virtual network.

You need to create a graph visualization to display the traffic flow between the virtual machines.

What should you do from Azure Monitor?



Click on the arrows to vote for the correct answer

A. B. C. D.


Navigate to Azure Monitor and select Logs to begin querying the data

To create a graph visualization that displays traffic flow between virtual machines in Azure, you should use Azure Monitor Logs.

Here are the steps to create the visualization:

  1. Go to the Azure portal and navigate to Azure Monitor.
  2. Click on Logs in the left-hand menu.
  3. Click on the New Query button to create a new query.
  4. In the query editor, use the NetworkWatcheCLow table to retrieve network flow logs for the virtual machines. You can use the following query to retrieve the data:
let startDateTime = datetime(ago(1h)); let endDateTime = datetime(now()); let interval = 1m; let query = NetworkWatchdogCLow | where TimeGenerated >= startDateTime and TimeGenerated <= endDateTime | summarize AggregatedValue = sum(TotalFlows) by Direction, SourceIP, DestinationIP, Protocol, SourcePort, DestinationPort, bin(TimeGenerated, interval) | order by AggregatedValue desc; query
  1. Click on the Run button to execute the query.
  2. Once the data is displayed in the Results tab, click on the Save button to save the query.
  3. Click on the Workbook button in the left-hand menu to create a new workbook.
  4. Choose a template for the workbook or start with a blank page.
  5. In the workbook, add a new visualization by clicking on the Add button in the toolbar.
  6. Select the chart type that you want to use (e.g., column chart, line chart, etc.).
  7. In the Data tab, select the query that you saved earlier.
  8. Configure the visualization by selecting the X-axis, Y-axis, and other settings.
  9. Click on the Apply button to save the changes.
  10. Your graph visualization should now be displayed in the workbook.

Therefore, the answer to the given question is C. From Logs, create a new query.