Loading...

Installing AzureMonitoringAgent and linking it to your Log Analytics Workspace

Installing AzureMonitoringAgent and linking it to your Log Analytics Workspace

The current Service Fabric clusters are currently equipped with the MicrosoftMonitoringAgent (MMA) as the default installation. However, it is essential to note that MMA will be deprecated in August 2024, for more details refer- We're retiring the Log Analytics agent in Azure Monitor on 31 August 2024 | Azure updates | Microsoft Azure. Therefore, if you are currently utilizing MMA, it is imperative to initiate the migration process to AzureMonitoringAgent (AMA).

 

Installation and Linking of AzureMonitoringAgent to a Log Analytics Workspace:

  1. Create a Log Analytics Workspace (if not already established):

 

  1. Create Data Collection Rules:
  • Access the Azure portal and search for "Data Collection Rules (DCR)”.
  • Select the same resource group and region as of your cluster.
  • In Platform type, select the type of instance you have like Windows, Linux or both.
  • You can leave data collection endpoint as blank.
  • In the resources section, add the Virtual machine Scale Set (VMSS) resource which is attached to the Service fabric cluster.

akshitavijay_5-1694602957593.png

  • In the "Collect and deliver" section, click on Add data source and add both Performance Counters and Windows Event Logs one by one.

 

akshitavijay_6-1694602990826.png

 

  • Choose the destination for both the data sources as Azure Monitor Logs and in the Account or namespace dropdown, select the name of the Log Analytics workspace that we have created in step 1 and click on Add data source. 

akshitavijay_7-1694603032193.png

 

  1. Adding the VMSS instances resource with DCR:
  • Once the DCR is created, in the left panel, click on Resources.
  • Check if you can see the VMSS resource that we have added while creating DCR or not.

akshitavijay_8-1694603088096.png

  • If not then, click on "Add" and navigate to the VMSS attached to service fabric cluster and click on Apply.
  • Refresh the resources tab to see whether you can see VMSS in the resources section or not. If not, try adding a couple of times if needed.

 

  1. Querying Logs and Verifying AzureMonitoringAgent Setup:
  • Please allow for 10-15 minutes waiting period before proceeding. After this time has elapsed, navigate to your Log Analytics workspace, and access the 'Logs' section by scrolling through the left panel.
  • Run your queries to see the logs. For example, query to check the heartbeat of all instances:Heartbeat | where Category contains "Azure Monitor Agent" | where OSType contains "Windows"           

    akshitavijay_9-1694603153239.png

 

 

  1. Perform the uninstallation of the MicrosoftMonitoringAgent (MMA): Once you have verified that the logs are getting generated, you can go to Virtual Machine Scale Set and then to the "Extensions + applications" section and delete the old MMA extension from VMSS.   

 

akshitavijay_10-1694603247571.png

 

Published on:

Learn more
Azure PaaS Blog articles
Azure PaaS Blog articles

Azure PaaS Blog articles

Share post:

Related posts

Azure Storage - TLS 1.0 and 1.1 retirement

Overview TLS 1.0 and 1.1 retirement on Azure Storage was previously announced for Nov 1st, 2024, and it was postponed recently to 1 year later...

1 year ago

Efficient Management of Append and Page Blobs Using Azure Storage Actions

  Overview In Azure Storage, Blob Lifecycle Management (BLM) allows you to automate the management of your data based on rules defined by...

1 year ago

[Azure AI Search] Internal Server Error when creating CMK encrypted objects

Scenario Customers follow the Microsoft doc to create CMK encrypted objects (data source, index etc.), but get the 500 Internal Serv...

1 year ago

Optimizing Azure Table Storage: Automated Data Cleanup using a PowerShell script with Azure Automate

Scenario This blog’s aim is to manage Table Storage data efficiently. Imagine you have a large Azure Table Storage that accumulates logs from ...

1 year ago

Optimizing Azure Table Storage: Automated Data Clean-up using a PowerShell script with Azure Automat

Scenario This blog’s aim is to manage Table Storage data efficiently. Imagine you have a large Azure Table Storage that accumulates logs from ...

1 year ago

Restoring Soft-Deleted Blobs with multithreading in Azure Storage Using C#

Blob soft delete is an essential feature that safeguards your data against accidental deletions or overwrites. By retaining deleted data for a...

1 year ago

Performing simple Azure Table Storage REST API operations using curl command.

The blog provides guidance to perform simple Table Storage REST API operations such as Create table, Delete Table, Insert entity, Delete entit...

1 year ago

Bulk delete all the old jobs from the batch account

Deleting a Job also deletes all Tasks that are part of that Job, and all Job statistics. This also overrides the retention period for Task dat...

1 year ago

Utilizing Azure Storage and Runbooks for scheduled automated backups of Azure SQL Databases

In this article, we are going to provide detailed steps to create a scheduled Azure SQL Database backup to storage account using automation. T...

2 years ago

[Azure Service Bus] JMS messages getting dead-lettered

The article discusses a problem where numerous messages end up in the dead letter queue (DLQ) when the JMS service bus consumer connects to th...

2 years ago

Newsletter

Get the latest Dynamics 365 and Power Platform content in your inbox

A curated digest of community blogs, product news, videos, and podcasts — delivered without the noise.

Weekly updates Unsubscribe anytime Fresh community picks
We use your email only for the newsletter and you can unsubscribe at any time.
By subscribing, you agree to the privacy policy.