Your Azure subscription contains a Log Analytics workspace WS1 and a virtual machine VM1. You need to install the Microsoft Enterprise Cloud Monitoring extension on VM1. Which two values are required to configure the extension?
Choose an answer
Tap an option to check your answer.
Correct answer: the secret key of WS1, the ID of WS1.
Why this is the answer
To install the Microsoft Enterprise Cloud Monitoring extension (which is the Azure Monitor Agent or Log Analytics agent) on a virtual machine and connect it to a Log Analytics workspace, you need two key pieces of information from the workspace: its ID and its primary or secondary key (often referred to as the secret key). The workspace ID uniquely identifies the destination for the logs, and the key provides authentication for the agent to send data securely to that workspace. The ID of the subscription is incorrect because while the workspace is in a subscription, the agent connects directly to the workspace, not the subscription itself. The system-assigned managed identity of VM1 is incorrect because while managed identities are used for authentication in Azure, the Log Analytics agent typically uses the workspace key for authentication. The resource ID of VM1 is incorrect because this identifies the VM, not the destination for its monitoring data.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed