Azure AD

CollectGuestLogs.exe – High Disk Usage on Azure VM

CollectGuestLogs.exe is one of Microsoft Tools that is installed with VM's stored on Azure. While I'm sure it has many advantages in case of our Client it made sure  machines are heavily impacted when it comes to disk speed. During debugging why our machines are so slow I've noticed that CollectGuestLogs.exe is doing some heavy reading on Security.evtx. While normally you wouldn't notice this it seems there is a bug in CollectGuestLogs.exe which manifest itself when Security.evtx file is quite big. For some reason it's not able to process Event Log therefore it continues to read/write to disk all the time 24/7. It can range from 5MB/s to 30MB/s. Quite a hit…

Fortunately there is a fix to this…

How can I fix it?
  • Open C:\WindowsAzure

  • Find newest version of Guest Agent

  • Find CommonAgentConfig.config and open it up

  • Find enablePushInVMLogs and set it to false
  • Restart RDAgent service

That's it!

This post was last modified on June 26, 2018 21:53

Przemyslaw Klys

System Architect with over 14 years of experience in the IT field. Skilled, among others, in Active Directory, Microsoft Exchange and Office 365. Profoundly interested in PowerShell. Software geek.

Share
Published by
Przemyslaw Klys

Recent Posts

Active Directory Replication Summary to your Email or Microsoft Teams

Active Directory replication is a critical process that ensures the consistent and up-to-date state of…

2 weeks ago

Syncing Global Address List (GAL) to personal contacts and between Office 365 tenants with PowerShell

Hey there! Today, I wanted to introduce you to one of the small but excellent…

5 months ago

Active Directory Health Check using Microsoft Entra Connect Health Service

Active Directory (AD) is crucial in managing identities and resources within an organization. Ensuring its…

7 months ago

Seamless HTML Report Creation: Harness the Power of Markdown with PSWriteHTML PowerShell Module

In today's digital age, the ability to create compelling and informative HTML reports and documents…

8 months ago

How to Efficiently Remove Comments from Your PowerShell Script

As part of my daily development, I create lots of code that I subsequently comment…

9 months ago

Unlocking PowerShell Magic: Different Approach to Creating ‘Empty’ PSCustomObjects

Today I saw an article from Christian Ritter, "PowerShell: Creating an "empty" PSCustomObject" on X…

9 months ago