Microsoft Azure Administrator Associate AZ-104 Practice Question
You need to collect logs and metrics from the guest operating system of multiple Azure virtual machines and send them to an Azure Log Analytics workspace. You also require that any new virtual machines added in the future automatically send their data to the workspace. Which approach should you use to achieve this?
Enable diagnostic settings on each virtual machine to send logs to the workspace.
Add the virtual machines to the same resource group as the Log Analytics workspace.
Install the Azure Monitor Agent manually on the existing virtual machines.
Configure an Azure Policy that deploys the Azure Monitor Agent to virtual machines.
Configuring an Azure Policy that deploys the Azure Monitor Agent (AMA) to virtual machines ensures that the agent is installed on all existing VMs and automatically applies to any new VMs added later. This method automates the deployment process and maintains compliance across your environment. Manually installing the agent or enabling diagnostic settings on each VM requires individual configuration and does not automatically cover future VMs. Simply adding VMs to the same resource group as the workspace does not configure them to send logs.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Azure Policy and how does it help automate tasks?
Open an interactive chat with Bash
What is the Log Analytics agent, and why is it important?
Open an interactive chat with Bash
Can Azure Policy be used to enforce other settings or configurations besides deploying the Log Analytics agent?
Open an interactive chat with Bash
Microsoft Azure Administrator Associate AZ-104
Monitor and maintain Azure resources
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .