nerdexam
Microsoft

AZ-500 · Question #53

Hotspot Question You plan to use Azure Log Analytics to collect logs from 200 servers that run Windows Server 2016. You need to automate the deployment of the Microsoft Monitoring Agent to all the…

The correct answer is Select key for settings: WorkspaceID; Select key for protectedSettings: WorkspaceKey. This question tests knowledge of deploying the Microsoft Monitoring Agent (MMA) to Windows Server 2016 VMs using an Azure Resource Manager (ARM) template, specifically the correct resource type, API version, and extension properties.

Submitted by valeria.br· Mar 6, 2026Implement an instrumentation strategy

Question

Hotspot Question You plan to use Azure Log Analytics to collect logs from 200 servers that run Windows Server 2016. You need to automate the deployment of the Microsoft Monitoring Agent to all the servers by using an Azure Resource Manager template. How should you complete the template? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer:

Exhibit

AZ-500 question #53 exhibit

Answer Area

  • Select key for settingsWorkspaceID
    AzureADApplicationIDWorkspaceIDWorkspaceNameWorkspaceURL
  • Select key for protectedSettingsWorkspaceKey
    AzureADApplicationSecretStorageAccountKeyWorkspaceIDWorkspaceKey

Explanation

This question tests knowledge of deploying the Microsoft Monitoring Agent (MMA) to Windows Server 2016 VMs using an Azure Resource Manager (ARM) template, specifically the correct resource type, API version, and extension properties.

Approach. To deploy the Microsoft Monitoring Agent via ARM template, you use the VM extension resource type 'Microsoft.Compute/virtualMachines/extensions'. The 'type' property for the extension must be set to 'MicrosoftMonitoringAgent', the 'publisher' must be 'Microsoft.EnterpriseCloud.Monitoring', and the 'typeHandlerVersion' is typically '1.0'. In the 'settings' block, you provide the 'workspaceId' of the Log Analytics workspace, and in the 'protectedSettings' block, you provide the 'workspaceKey'. This ensures all 200 Windows Server 2016 machines connect to the correct Log Analytics workspace for log collection.

Concept tested. Deploying the Microsoft Monitoring Agent (Log Analytics Agent) to Windows VMs using ARM templates, including the correct extension publisher ('Microsoft.EnterpriseCloud.Monitoring'), extension type ('MicrosoftMonitoringAgent'), and required settings (workspaceId in settings, workspaceKey in protectedSettings) for Azure Log Analytics integration.

Reference. https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/oms-windows

Topics

#Microsoft Monitoring Agent#Log Analytics#ARM template#agent deployment

Community Discussion

No community discussion yet for this question.

Full AZ-500 Practice