You have an Azure subscription named Subscription1. You deploy a Linux virtual machine named VM1 to Subscription1. You need to monitor the metrics and the logs of VM1. What should you use?
Suggested Answer:A🗳️
You can use extensions to configure diagnostics on your VMs to collect additional metric data. The basic host metrics are available, but to see more granular and VM-specific metrics, you need to install the Azure diagnostics extension on the VM. The Azure diagnostics extension allows additional monitoring and diagnostics data to be retrieved from the VM. References: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/tutorial-monitoring
I see both A and B are correct.
I have tried installing Performance Diagnostics in my Linux VM and I am able to install it successfully.
Also, as per the below article, Performance Diagnostics supports both Windows VM and Linux VM's.
https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/performance-diagnostics#supported-operating-systems
maybe you are right it's confusing, the extension is only for windows
https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/performance-diagnostics-vm-extension
but the Azure performance diagnostic service works in most VMs, so probably is B
lol. no it doesn't.. https://docs.microsoft.com/en-us/azure/azure-monitor/platform/diagnostics-extension-overview?toc=/azure/virtual-machines/extensions/toc.json, https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/diagnostics-linux
B is correct
Azure Performance Diagnostics VM Extension helps collect performance diagnostic data from Windows VMs. The extension performs analysis, and provides a report of findings and recommendations to identify and resolve performance issues on the virtual machine. This extension installs a troubleshooting tool called PerfInsights.
whereas Linux diagnostics extension (LAD)
Data Source Description
Syslog Events sent to the Linux event logging system.
Performance counters Numerical values measuring performance of different aspects of operating system and workloads.
Log files Entries sent to a file based log.
LAD writes data to tables in Azure Storage. It supports the sinks in the following table.
Event hubs :- Use Azure Event Hubs to send data outside of Azure.
Azure Storage blobs:- Write to data to blobs in Azure Storage in addition to tables.
Azure Monitor Metrics:- Install the Telegraf agent in addition to LAD. See Collect custom metrics for a Linux VM with the InfluxData Telegraf agent.
Correct answer is B.
A is incorrect. The "Azure Performance Diagnostics" extension is part of Performance Diagnostics tool, and it is only for Windows; for Linux, the tool "PerfInsights" is used to run on Linux VM once to collect the metrics. The most important point is that the performance diagnostics tool is used to run once to collect the statistics, not for continuous monitoring.
It is B. When I look at the deployment templates of Linux and Windows Diagnostic extension:
- Linux: "publisher": "Microsoft.Azure.Diagnostics",
"type": "LinuxDiagnostic",
-Windows:"publisher": "Microsoft.Azure.Performance.Diagnostics",
"type": "AzurePerformanceDiagnostics",
so this is definetly B because AzurePerformanceDiagnostics is only for Windows
Both A and B are correct. Azure Diagnostics extension for Windows is WAD, for Linux is LAD. I have some concerns about B, because it contains specific version 3.0
You can use Linux Diagnostic Extension to monitor metrics and logs:
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/diagnostics-linux
However you can also use Performance diagnostics to collect logs and metrics (CPU, disk space, or memory) and it suports Linux as well:
https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/performance-diagnostics
So for me options A and B, both are correct.
You can use Linux Diagnostic Extension to monitor metrics and logs:
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/diagnostics-linux
However you can also use Performance diagnostics to collect logs and metrics (CPU, disk space, or memory) and it suports Linuxa as well:
https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/performance-diagnostics
So for me options A and B, both are correct.
The question is asking on how to collect the _log_ data of the linux VM. I think the question refers to the logs collected by the syslogd running on the VM. To collect this kind of data one would require the "Log Analytics agent" installed on the machine. Maybe the question is just outdated?
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/data-sources-syslog
AzurePerformanceDiagnostics extension is for Windows. https://docs.microsoft.com/en-us/azure/azure-monitor/platform/diagnostics-extension-overview.
Questions is for Linux so Answer should be B https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/diagnostics-linux
Agree, Version 3.0 is also mentioned on ArulLivingston's provided Link.
There are different "extensions" available.
WAD - Windows diagnostics extension
LAD - Linux diagnostics extension
Windows extension:
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/features-windows
Linux extension:
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/features-linux
This section is not available anymore. Please use the main Exam Page.AZ-300 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Jt909
Highly Voted 5 years, 6 months agoJatinA
5 years, 6 months agotartar
4 years, 9 months agopraveen97
4 years, 11 months agod9753250
Highly Voted 5 years, 5 months agotubadc
5 years, 5 months agotubadc
5 years, 5 months agolalaala
5 years, 4 months agoazurecert2021
Most Recent 4 years, 5 months agoazurehunter
4 years, 7 months agoBOC
4 years, 9 months agostuddent
4 years, 9 months agoSStar
4 years, 9 months agoKamal_SriLanka
4 years, 10 months agomacco455
4 years, 10 months agoercank
4 years, 10 months agopoohtt
4 years, 11 months agoCristianoRosa
4 years, 11 months agoCristianoRosa
4 years, 11 months agogboyega
4 years, 11 months agoDeveshSolanki
4 years, 11 months ago[Removed]
4 years, 11 months agoArulLivingston
5 years agodenkes
5 years ago