nerdexam
Microsoft

AZ-400 · Question #490

You have an Azure subscription that contains a Log Analytics workspace named WS1 and a virtual machine named VM1. You need to install the Microsoft Enterprise Cloud Monitoring extension on VM1. Which

The correct answer is A. the secret key of WS1 D. the ID of WS1. To install the Microsoft Enterprise Cloud Monitoring extension on a virtual machine Log Analytics workspace, you can either use the Azure portal or the Azure CLI. The extension, also known as the Log Analytics VM extension, automatically installs and configures the agent, allowin

Submitted by zhang_li· Mar 6, 2026Implement an instrumentation strategy

Question

You have an Azure subscription that contains a Log Analytics workspace named WS1 and a virtual machine named VM1. You need to install the Microsoft Enterprise Cloud Monitoring extension on VM1. Which two values are required to configure the extension? Each correct answer presents part of the solution. NOTE: Each correct answer is worth one point.

Options

  • Athe secret key of WS1
  • Bthe ID of the subscription
  • Cthe system-assigned managed identity of VM1
  • Dthe ID of WS1
  • Ethe resource ID of VM1

How the community answered

(59 responses)
  • A
    93% (55)
  • B
    2% (1)
  • C
    2% (1)
  • E
    3% (2)

Explanation

To install the Microsoft Enterprise Cloud Monitoring extension on a virtual machine Log Analytics workspace, you can either use the Azure portal or the Azure CLI. The extension, also known as the Log Analytics VM extension, automatically installs and configures the agent, allowing the virtual machine to send data to the Log Analytics workspace. You can use the Azure CLI to deploy the Log Analytics VM extension to an existing virtual machine. The command az vm extension set is used to deploy the extension, with parameters like workspaceId [A] and workspaceKey [D] required. You can find these values in your Log Analytics workspace within the Azure portal. https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/oms-windows

Community Discussion

No community discussion yet for this question.

Full AZ-400 Practice