Soru

Zorluk: OrtaAzure Monitor Metrics and Diagnostic Settings

You have an Azure VPN Gateway named `vng-prod-east` that connects an on-premises network to an Azure Virtual Network. You need to configure diagnostic logging and monitoring for `vng-prod-east` to meet the following requirements:
- Send all VPN tunnel resource health and connection status logs to a Log Analytics workspace named `law-ops` for query analysis.
- Route all gateway metrics to a storage account named `sa-monitoring-archive` for long-term retention.

Which of the following configuration actions should you perform to meet these requirements? (Select TWO).

  1. Create a diagnostic setting on `vng-prod-east`, select the `TunnelDiagnostic` and `GatewayDiagnostic` log categories, and select Send to Log Analytics workspace with `law-ops` as the destination.Cevap
  2. Create a diagnostic setting on `vng-prod-east`, select the `AllMetrics` metric category, and select Archive to a storage account with `sa-monitoring-archive` as the destination.Cevap
  3. C
    Create a diagnostic setting on `law-ops`, select the `TunnelDiagnostic` and `GatewayDiagnostic` log categories, and select Send to Log Analytics workspace with `vng-prod-east` as the destination.
  4. D
    Create a diagnostic setting on `vng-prod-east`, select the `AllMetrics` metric category, select Archive to a storage account with `sa-monitoring-archive` as the destination, and instruct team members to access the archive using subscription Contributor permissions without data plane roles.

Cevap

Create a diagnostic setting on the VPN Gateway sending the required logs to the Log Analytics workspace, and create a diagnostic setting on the VPN Gateway archiving all metrics to the storage account.
To satisfy the requirements, diagnostic settings must be created directly on the source resource, `vng-prod-east`. One setting or configuration block must route the relevant VPN gateway log categories (`TunnelDiagnostic` and `GatewayDiagnostic`) to the Log Analytics workspace `law-ops` for query capability. A second setting or configuration block must route the metrics (`AllMetrics`) to the target storage account `sa-monitoring-archive` for long-term archiving.

Adım Adım Çözüm

1
Identify the source resource to configure.
Diagnostic settings must be configured on the source resource (the VPN Gateway `vng-prod-east`), not the destination resources.
Azure Monitor routes logs and metrics from source resources based on settings defined on those sources.
2
Configure log routing for connection and tunnel health.
Create a diagnostic setting on `vng-prod-east` selecting the `TunnelDiagnostic` and `GatewayDiagnostic` log categories and targeting the `law-ops` Log Analytics workspace.
This satisfies the requirement to send VPN tunnel and connection health logs to Log Analytics.
3
Configure metric routing for archiving.
Create a diagnostic setting on `vng-prod-east` selecting the `AllMetrics` category and targeting the `sa-monitoring-archive` storage account.
This satisfies the requirement to archive gateway metrics to storage for long-term retention.

Anahtar Kavram

Azure Monitor diagnostic settings are configured on a source resource to route specific log and metric categories to destination endpoints, such as Log Analytics or Azure Storage.
Bu soruyu puanla