Log Analytics Agent deprecation - Prepare for the end (2024)

On the 31st of August 2024, Microsoft will deprecate the Log Analytics VM Agent. This change has been announced years ago, but still many are not prepared. How can you assess your environment and migrate to the Azure Monitor Agent before the agent will stop working. In this 2 part blog service, we will look at how you can find and migrate away from the Log Analytics Agent before the VM extension gets deprecated. In part 1 we will start by finding the affected VMs we will need to migrate.

Before we start, I would like to thank Thomas Thornton and Joe Carlyle that are hosting the Azure Spring Clean! And don’t forget to check out the other amazing contributions to the community event over at the Azure Spring clean website.

Affected Services

Even though it’s the Log Analytics agent that is deprecating, the impact is larger than just monitoring. There are several services that are dependent on the same agent. Here is a list of some of the services that are affected by this deprecation:

  • Sentinel
  • Azure Automation Update Management
  • Change Tracking/Inventory
  • VM/AVD/Stack HCI Insights
  • Defender for Cloud
  • Network Watcher
  • Container Monitoring Solution
  • Azure Automation Agent-based Hybrid Worker

A full list of migration recommendations for the services can be found here.

OMS? MMA? AMA? WTF?

Before we dive into finding the agents, we need to establish the possible versions of VM extension you can find. You will see 2, maybe all 3 different abbreviations for VM extensions that is used for monitoring. First you have the OMS Agent, or the “Operations Management Suite Agent for Linux” as it’s actually called. This is the legacy Log Analytics Agent for Linux VMs and this is one of the VM extensions that are deprecating. The other deprecating extension is the MMA, or Microsoft Monitoring Agent. This is the Log Analytics Agent for Windows. Lastly, we have the AMA. The AMA, or Azure Monitor Agent, is the new extension for both Linux and Windows VMs. Shortly summarized, OMS and MMA bad, AMA good!

Finding affected VMs

So this can be done in a few different ways. I’m going to show you 2 different ways with different use-cases. The first way is to find VMs with the agent installed that is sending data to a Log Analytics Workspace. This would require you to know which Log Analytics Workspace the VMs are connected to, and sometimes there can be suprises. The second way will show you all VMs that have the Agent installed. With these 2 ways combined, you will know where you should look closer to prevent any services breaking on the 1st of September.

Log Analytics query

To start, we will use a simple Log Analytics KQL query to find all VMs sending data to a specific workspace using the legacy agent. The query is as simple as this:

Heartbeat| where Category == "Direct Agent"| summarize by Computer

And the result will be just as simple:Log Analytics Agent deprecation - Prepare for the end (1)The query looks for logs in the Heartbeat table that have the Category Direct Agent. The heartbeat table is a log table that is used by the agent to give it’s health status. We then use the summarize function to give us a list of only the names of the VMs sending logs to the workspace.

Defender for Cloud and Resource Graph Queries

So this might sound a bit weird, but we can actually find the agents installed in Defender for Cloud. Let me explain, since Defender for Cloud use the Log Analytics Agent, it will give you the recommendation to install it, and it will show you which VMs have the agent installed and which doesn’t. We can use this to our advantage. Either you can go into the Defender for Cloud view in the Azure portal and look through the recommendations, but the GUI can be a bit annoying with a lot of scrolling and clicks to get where you need to so you see all VMs with the agent installed. Instead, you can go into the Resource Graph Explorer and paste this query to get the same results:

securityresources | where type == "microsoft.security/assessments" | extend source = trim(' ', tolower(tostring(properties.resourceDetails.Source))) | extend resourceId = trim(' ', tolower(tostring(case( source =~ "azure", properties.resourceDetails.Id, source =~ "aws" and isnotempty(tostring(properties.resourceDetails.ConnectorId)), properties.resourceDetails.Id, source =~ "gcp" and isnotempty(tostring(properties.resourceDetails.ConnectorId)), properties.resourceDetails.Id, source =~ 'aws', properties.resourceDetails.AzureResourceId, source =~ 'gcp', properties.resourceDetails.AzureResourceId, extract('^(.+)/providers/Microsoft.Security/assessments/.+$',1,id) )))) | extend status = trim(" ", tostring(properties.status.code)) | extend cause = trim(" ", tostring(properties.status.cause)) | extend assessmentKey = tostring(name) | where assessmentKey == "d1db3318-01ff-16de-29eb-28b344515626" and status == "Healthy" | extend vmName=split(resourceId,"/")[-1] | project vmName,resourceGroup,subscriptionId

This will give us this nice little list of which VMs have the agent installed:Log Analytics Agent deprecation - Prepare for the end (2)

Wrap-up

With these two queries, you can find both which VMs are connected to a specific workspace with the legacy agent and all VMs that have the extension installed. In the upcoming part 2 of this blogpost, we will look at what you need to do to migrate over to the Azure Monitor Agent. Thanks again to Thomas and Joe for hosting the Azure Spring Clean this year as well!

Log Analytics Agent deprecation - Prepare for the end (2024)

FAQs

Will Log Analytics agent be deprecated? ›

The Log Analytics agent will be retired on August 31, 2024. The depreciation does not apply to MMA agent connected exclusively to an On-Prem SCOM installation. You can expect the following when you use the MMA or OMS agent after August 31, 2024.

Will MMA be deprecated in 2024? ›

The Log Analytics agent, also known as the Microsoft Monitoring Agent (MMA), is retiring in November 2024. As a result, the Defender for Servers and Defender for SQL on machines plans in Microsoft Defender for Cloud will be updated, and features that rely on the Log Analytics agent will be redesigned.

How do I disable the log analytics agent? ›

To remove the Log Analytics agent from an Azure VM, you can follow these steps:
  1. Sign in to the Azure portal.
  2. In the Azure portal, select Virtual Machines.
  3. From the list, select the VM that has the Log Analytics agent installed.
  4. On the left, select Extensions. ...
  5. On the extension properties page, select Uninstall.
Oct 11, 2023

What does a log analytics agent do? ›

Use the Log Analytics agent if you need to: Collect logs and performance data from Azure virtual machines or hybrid machines hosted outside of Azure.

What is replacing Azure Log Analytics? ›

Azure Monitor Agent (AMA) replaces the Log Analytics agent, also known as Microsoft Monitor Agent (MMA) and OMS, for Windows and Linux machines, in Azure and non-Azure environments, on-premises and other clouds.

What is the difference between Azure diagnostics agent and log analytics agent? ›

Comparison to Log Analytics agent

The key differences to consider are: Azure Diagnostics Extension can be used only with Azure virtual machines. The Log Analytics agent can be used with virtual machines in Azure, other clouds, and on-premises.

What is the new rule for MMA? ›

The new rule states: "A fighter shall be considered grounded and may not be legally kneed or kicked to the head when any part of their body other than their hands or feet is in contact with the canvas (ground)."

How long will MMA last? ›

The time limits in most professional fights are three 5 minute rounds, and championship fights are normally five 5-minute rounds.

What is the 12 6 elbow rule? ›

The name of the 12–6 elbow is based on the concept of a clock on the wall with the bringing of an elbow from straight up (12 o'clock) to straight down (6 o'clock). These elbow strikes were illegal under the Unified Rules of Mixed Martial Arts from their inception until 1 November 2024.

What is the difference between AMA and MMA agents? ›

AMA has a better authentication mechanism than MMA. It also has log filtering capability via Data Collection Rule (which is not supported in MMA).

How do I stop the log reader agent and distribution agent? ›

Start and stop a Snapshot Agent, Log Reader Agent, or Queue Reader Agent from Replication Monitor
  1. Expand a Publisher group in the left pane, expand a Publisher, and then select a publication.
  2. Select the Agents tab.
  3. Right-click an agent, and then select Start Agent or Stop Agent.
Apr 16, 2024

Are log analytics workspaces being deprecated? ›

On the 31st of August 2024, Microsoft will deprecate the Log Analytics VM Agent. This change has been announced years ago, but still many are not prepared. How can you assess your environment and migrate to the Azure Monitor Agent before the agent will stop working.

Why do we need log analytics? ›

You can use Log Analytics queries to retrieve records that match particular criteria, identify trends, analyze patterns, and provide various insights into your data.

What is the difference between log analytics and Azure monitor? ›

In conclusion, Azure Monitor and Log Analytics collectively offer a robust solution for monitoring Azure resources. While Azure Monitor provides a lot of features including aggregation of logs, real-time insights and performance metrics, Log Analytics allows advanced query capabilities and extensive log data analysis.

Is Google Analytics being deprecated? ›

Starting on July 1, 2024, you will lose access to Universal Analytics data in the interface and in the API and via any product integrations like Google Ads, Search Ads 360.

Is user agent deprecated? ›

User Agents

This is how it worked for years, but nowadays browsers are progressively deprecating the User Agent. Chromium browsers (Chrome, Edge, Brave, Opera, Chrome Android, ...) are leading the way in this process. User Agent depreciation has already started, and will progress in 2023.

What is the difference between MMA and AMA? ›

AMA has a better authentication mechanism than MMA. It also has log filtering capability via Data Collection Rule (which is not supported in MMA).

Is Azure Monitor same as log analytics? ›

Log Analytics workspaces contain logs and metrics data from multiple Azure resources, whereas Azure Monitor workspaces currently contain only metrics related to Prometheus.

Top Articles
4TB SSD: What Difference Does It Make?
Amazon Negotiated Pricing – Make an Offer for Your Business Customers
Evil Dead Movies In Order & Timeline
Public Opinion Obituaries Chambersburg Pa
Canya 7 Drawer Dresser
10 Popular Hair Growth Products Made With Dermatologist-Approved Ingredients to Shop at Amazon
50 Meowbahh Fun Facts: Net Worth, Age, Birthday, Face Reveal, YouTube Earnings, Girlfriend, Doxxed, Discord, Fanart, TikTok, Instagram, Etc
Best Cheap Action Camera
Www Movieswood Com
Mid90S Common Sense Media
California Department of Public Health
Enderal:Ausrüstung – Sureai
The Shoppes At Zion Directory
800-695-2780
Games Like Mythic Manor
Abby's Caribbean Cafe
Full Standard Operating Guideline Manual | Springfield, MO
Cincinnati Adult Search
Ihub Fnma Message Board
Skycurve Replacement Mat
EVO Entertainment | Cinema. Bowling. Games.
Geico Car Insurance Review 2024
Star Wars Armada Wikia
27 Fantastic Things to do in Lynchburg, Virginia - Happy To Be Virginia
O'reilly's In Monroe Georgia
Will there be a The Tower season 4? Latest news and speculation
Generator Supercenter Heartland
Sam's Club Gas Price Hilliard
R/Sandiego
Cars And Trucks Facebook
Deleted app while troubleshooting recent outage, can I get my devices back?
Exploring TrippleThePotatoes: A Popular Game - Unblocked Hub
Skill Boss Guru
ENDOCRINOLOGY-PSR in Lewes, DE for Beebe Healthcare
Hellgirl000
Legit Ticket Sites - Seatgeek vs Stubhub [Fees, Customer Service, Security]
Www Usps Com Passport Scheduler
Callie Gullickson Eye Patches
Beaufort SC Mugshots
Hazel Moore Boobpedia
Tunica Inmate Roster Release
Best GoMovies Alternatives
Pulitzer And Tony Winning Play About A Mathematical Genius Crossword
Pain Out Maxx Kratom
Royals Yankees Score
Garland County Mugshots Today
Booknet.com Contract Marriage 2
Gt500 Forums
bot .com Project by super soph
Germany’s intensely private and immensely wealthy Reimann family
All Obituaries | Roberts Funeral Home | Logan OH funeral home and cremation
E. 81 St. Deli Menu
Latest Posts
Article information

Author: Edmund Hettinger DC

Last Updated:

Views: 6340

Rating: 4.8 / 5 (58 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Edmund Hettinger DC

Birthday: 1994-08-17

Address: 2033 Gerhold Pine, Port Jocelyn, VA 12101-5654

Phone: +8524399971620

Job: Central Manufacturing Supervisor

Hobby: Jogging, Metalworking, Tai chi, Shopping, Puzzles, Rock climbing, Crocheting

Introduction: My name is Edmund Hettinger DC, I am a adventurous, colorful, gifted, determined, precious, open, colorful person who loves writing and wants to share my knowledge and understanding with you.