Microsoft Certified: Azure Administrator AssociateDeploy and manage Azure compute resourcesEasy

You are managing an Azure Virtual Machine (VM) running a critical application. The application generates a large volume of diagnostic logs that need to be collected and analyzed centrally. You want to ensure that these logs are automatically exported to an Azure Storage account for long-term retention and further processing by an analytics tool. Which Azure VM extension should you use?

  1. AAzure Monitoring Agent
  2. BAzure Network Watcher Agent
  3. CAzure Diagnostics Extension
  4. DAzure Custom Script Extension
Show answer & explanation

Correct answer: C. Azure Diagnostics Extension

The Azure Diagnostics Extension (ADE) collects monitoring and diagnostics data from an Azure VM and transfers it to Azure Storage, Azure Monitor, or Azure Event Hubs. This directly fulfills the requirement of automatically exporting logs to an Azure Storage account.

Why the other options are wrong

  • A. While Azure Monitor Agents (Log Analytics agent or Azure Monitor Agent) are also used for collecting logs, the Azure Diagnostics Extension is specifically tailored for collecting a broad range of VM diagnostics and sending them to Azure Storage.
  • B. Azure Network Watcher Agent is used for network monitoring and diagnostics, not for general application log collection.
  • D. Azure Custom Script Extension is used to download and execute scripts on Azure VMs, not specifically for continuous log collection and export.

Azure Diagnostics Extension

An Azure VM extension used to collect monitoring and diagnostics data from a VM, including performance counters, event logs, and application logs.

  • Collects various types of diagnostic data.
  • Can transfer data to Azure Storage, Azure Monitor, or Event Hubs.
  • Configurable to specify what data to collect and where to send it.

Memory trick: For VM diagnostics, use the 'Diagnostic' extension; it's right in the name!

More Deploy and manage Azure compute resources questions