Install and manage Azure Monitor Agent - Azure Monitor (2024)

  • Article

This article details the different methods to install, uninstall, update, and configure Azure Monitor Agent on Azure virtual machines, scale sets, and Azure Arc-enabled servers.

Important

Azure Monitor Agent requires at least one data collection rule (DCR) to begin collecting data after it's installed on the client machine. Depending on the installation method you use, a DCR may or may not be created automatically. If not, then you need to configure data collection following the guidance at Collect data with Azure Monitor Agent.

Prerequisites

See the following articles for prerequisites and other requirements for Azure Monitor Agent:

  • Azure Monitor Agent supported operating systems and environments
  • Azure Monitor Agent requirements
  • Azure Monitor Agent network configuration

Installation options

The following table lists the different options for installing Azure Monitor Agent on Azure VMs and Azure Arc-enabled servers. The Azure Arc agent must be installed on any machines not in Azure before Azure Monitor Agent can be installed.

Installation methodDescription
VM extensionUse any of the methods below to use the Azure extension framework to install the agent. This method does not create a DCR, so you must create at least one and associate it with the agent before data collection will begin.
Create a DCRWhen you create a DCR in the Azure portal, Azure Monitor Agent is installed on any machines that are added as resources for the DCR. The agent will begin collecting data defined in the DCR immediately.
VM insightsWhen you enable VM insights on a machine, Azure Monitor Agent is installed, and a DCR is created that collects a predefined set of data. You shouldn't modify this DCR, but you can create additional DCRs to collect other data.
Container insightsWhen you enable Container insights on a Kubernetes cluster, a containerized version of Azure Monitor Agent is installed in the cluster, and a DCR is created that immediately begins collecting data. You can modify this DCR using guidance at Configure data collection and cost optimization in Container insights using data collection rule.
Client installerInstalls the agent by using a Windows MSI installer for Windows 10 and Windows 11 clients.
Azure PolicyUse Azure Policy to automatically install the agent on Azure virtual machines and Azure Arc-enabled servers and automatically associate them with required DCRs.

Note

To send data across tenants, you must first enable Azure Lighthouse.Cloning a machine with Azure Monitor Agent installed is not supported. The best practice for these situations is to use Azure Policy or an Infrastructure as a code tool to deploy AMA at scale.

Install agent extension

This section provides details on installing Azure Monitor Agent using the VM extension.

  • Portal
  • PowerShell
  • Azure CLI
  • Resource Manager template

Use the guidance at Collect data with Azure Monitor Agent to install the agent using the Azure portal and create a DCR to collect data.

Uninstall

  • Portal
  • PowerShell
  • Azure CLI
  • Resource Manager template

To uninstall Azure Monitor Agent by using the Azure portal, go to your virtual machine, scale set, or Azure Arc-enabled server. Select the Extensions tab and select AzureMonitorWindowsAgent or AzureMonitorLinuxAgent. In the dialog that opens, select Uninstall.

Update

Note

The recommendation is to enable Automatic Extension Upgrade to update installed extensions to the stable version across all regions. A version is not automatically rolled out until it meets a high quality bar which can take as long as 5 weeks after the initial release. Upgrades are issued in batches, so you may see some of your virtual machines, scale-sets or Arc-enabled servers get upgraded before others. If you need to upgrade an extension immediately, you may use the manual instructions below.

  • Portal
  • PowerShell
  • Azure CLI
  • Resource Manager template

To perform a one-time update of the agent, you must first uninstall the existing agent version. Then install the new version as described.

We recommend that you enable automatic update of the agent by enabling the Automatic Extension Upgrade feature. Go to your virtual machine or scale set, select the Extensions tab and select AzureMonitorWindowsAgent or AzureMonitorLinuxAgent. In the dialog that opens, select Enable automatic upgrade.

Configure (Preview)

Data Collection Rules (DCRs) serve as a management tool for Azure Monitor Agent (AMA) on your machine. The AgentSettings DCR can be used to configure AMA parameters like DisQuotaInMb, ensuring your agent is tailored to your specific monitoring needs.

Note

Important considerations to keep in mind when working with the AgentSettings DCR:

  • The AgentSettings DCR can only be configured via template deployment.
  • AgentSettings is always it's own DCR and can't be added an existing one.
  • For proper functionality, both the machine and the AgentSettings DCR must be located in the same region.

Supported parameters

The AgentSettings DCR currently supports configuring the following parameters:

ParameterDescriptionValid values
MaxDiskQuotaInMBDefines the amount of disk space used by the Azure Monitor Agent log files and cache.1000-50000 (in MB)
TimeReceivedForForwardedEventsChanges WEF column in the Sentinel WEF table to use TimeReceived instead of TimeGenerated data0 or 1

Setting up AgentSettings DCR

  • Portal
  • PowerShell
  • Azure CLI
  • Resource Manager template

Currently not supported.

Next steps

Create a data collection rule to collect data from the agent and send it to Azure Monitor.

Install and manage Azure Monitor Agent - Azure Monitor (2024)
Top Articles
If your income is too high for health coverage tax credits
Reasons the Fuel Level Sensor Might Fail in Your Volkswagen
Www.1Tamilmv.cafe
Dte Outage Map Woodhaven
Craigslist Vans
Lighthouse Diner Taylorsville Menu
Professor Qwertyson
Tyrunt
Tanger Outlets Sevierville Directory Map
414-290-5379
Maxpreps Field Hockey
83600 Block Of 11Th Street East Palmdale Ca
Craigslist Boats For Sale Seattle
Labor Gigs On Craigslist
7 Fly Traps For Effective Pest Control
History of Osceola County
Plan Z - Nazi Shipbuilding Plans
Accident On May River Road Today
China’s UberEats - Meituan Dianping, Abandons Bike Sharing And Ride Hailing - Digital Crew
Curry Ford Accident Today
Aaa Saugus Ma Appointment
Pjs Obits
Kaitlyn Katsaros Forum
Vegito Clothes Xenoverse 2
Baldur's Gate 3: Should You Obey Vlaakith?
Troy Gamefarm Prices
Jcp Meevo Com
Watson 853 White Oval
Coindraw App
2023 Ford Bronco Raptor for sale - Dallas, TX - craigslist
A Man Called Otto Showtimes Near Carolina Mall Cinema
Dtlr On 87Th Cottage Grove
Http://N14.Ultipro.com
1400 Kg To Lb
Morlan Chevrolet Sikeston
De beste uitvaartdiensten die goede rituele diensten aanbieden voor de laatste rituelen
Royals op zondag - "Een advertentie voor Center Parcs" of wat moeten we denken van de laatste video van prinses Kate?
10 Most Ridiculously Expensive Haircuts Of All Time in 2024 - Financesonline.com
Bbc Gahuzamiryango Live
Kazwire
Craigslist En Brownsville Texas
Henry Ford’s Greatest Achievements and Inventions - World History Edu
2132815089
Sofia Franklyn Leaks
Chase Bank Zip Code
War Room Pandemic Rumble
Killer Intelligence Center Download
Dicks Mear Me
Leland Westerlund
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Craigslist Anc Ak
Ok-Selection9999
Latest Posts
Article information

Author: Rueben Jacobs

Last Updated:

Views: 5636

Rating: 4.7 / 5 (77 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Rueben Jacobs

Birthday: 1999-03-14

Address: 951 Caterina Walk, Schambergerside, CA 67667-0896

Phone: +6881806848632

Job: Internal Education Planner

Hobby: Candle making, Cabaret, Poi, Gambling, Rock climbing, Wood carving, Computer programming

Introduction: My name is Rueben Jacobs, I am a cooperative, beautiful, kind, comfortable, glamorous, open, magnificent person who loves writing and wants to share my knowledge and understanding with you.