Windows

Azure Agent – Where did my space go?

Recently I had a weird case where one of our Azure servers was starting losing space pretty quickly making Pulseway go nuts. As you can assume from the title of this post the cause for this is Azure Agent itself. But before I actually knew that I had to do some digging as it's not that obvious because Windows Explorer isn't showing anything worth checking.

How do you check what's taking space?

You use tools like TreeSize. I'm sure there are other tools on the market but actually, only TreeSize never failed me.

Excuse the mess, it's not supposed to be like that, but I am not the one carrying for it. As you can see above, there is 74GB taken by WindowsAzure folder, and what Windows Explorer has to say about this?

Only 393MB shown by Windows Explorer. The trick here is if you drill down into that folder even TreeSize will stop reporting large size.

TreeSize View
Explorer View

Since  I knew ETL (Event Trace Log) is a bit special files I was suspecting that one of those 50MB files with ETL extension is actually taking all the space by itself.

How to fix it?

The fix is quite simple. Delete the offending file and be done with it. But even with correct permissions, you're not able to delete this file because this file is in use. So I just had to find which service is responsible for my misery. None of the usual suspects panned out.

I've then tracked Azure via Task Manager

Which brought me to this little service called RdAgent

Restarting this service instantly removes 70 GB of data. Problem solved but why is RdAgent actually taking all the space with its mysterious ETL file? What it's trying to trace?

This post was last modified on 2 stycznia, 2019 16:45

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 tygodnie 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 miesięcy 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 miesięcy 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 miesięcy 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 miesięcy 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 miesięcy ago