Question

Difficulty: EasyAzure Monitor Metrics and Diagnostic Settings

You have an Azure Virtual Network Gateway named VNetGW1. You need to ensure that the platform metrics and resource logs for VNetGW1 are collected and routed to a Log Analytics workspace. What should you configure on VNetGW1?

  1. A diagnostic settingAnswer
  2. B
    An Activity log export rule
  3. C
    An Azure Monitor alert rule
  4. D
    A Storage Account with a Shared Access Signature (SAS)

Answer

A diagnostic setting
To collect and route resource-specific telemetry (such as platform metrics and resource logs) to a destination like a Log Analytics workspace, you must create a diagnostic setting on that specific resource.

Step-by-Step Solution

1
Identify the type of telemetry to collect and route.
The requirement is to collect platform metrics and resource logs for a specific resource (VNetGW1).
Different monitoring features collect different types of data.
2
Determine the proper mechanism for routing resource-level telemetry.
Diagnostic settings are configured at the resource level to route resource logs and platform metrics to destinations.
Diagnostic settings link the source resource's diagnostic logs and metrics to a destination such as a Log Analytics workspace.

Key Concept

Azure Monitor Diagnostic Settings enable the routing of platform metrics and resource logs from individual Azure resources to destinations like Log Analytics workspaces, Azure Storage, or Event Hubs.
Rate this question