Microsoft Azure Administrator Associate AZ-104 Practice Question
You need to collect logs and metrics from 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 logs to the workspace. Which approach should you use to achieve this?
Configure an Azure Policy that deploys the Log Analytics agent to virtual machines.
Install the Log Analytics agent manually on the existing virtual machines.
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.
Configuring an Azure Policy that deploys the Log Analytics agent 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 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 an Azure Policy, and how does it work?
Open an interactive chat with Bash
What is the purpose of the Log Analytics agent in Azure?
Open an interactive chat with Bash
What are the benefits of using Log Analytics workspaces?
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...
IT & Cybersecurity Package Join Premium for Full Access