# 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.

blog

28 Nov 2018 pl

![Azure Agent – Where did my space go?](/wp-content/uploads/2018/11/img_5bfea58a4cd9d.png)

[Zobacz obrazy (7)](#pf-content-image-1-0)

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**](https://www.jam-software.com/treesize_free/). I'm sure there are other tools on the market but actually, only [**TreeSize**](https://www.jam-software.com/treesize_free/)never failed me.

[!\[TreeSize pokazujący, że folder WindowsAzure zajmuje około 74 GB miejsca\](/wp-content/uploads/2018/11/img_5bfea58a4cd9d.png)](/wp-content/uploads/2018/11/img_5bfea58a4cd9d.png)

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?

[!\[Właściwości folderu WindowsAzure w Eksploratorze pokazujące tylko około 393 MB\](/wp-content/uploads/2018/11/img_5bfea5f7a1211.png)](/wp-content/uploads/2018/11/img_5bfea5f7a1211.png)

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\](/wp-content/uploads/2018/11/img_5bfea6529b989.png)](/wp-content/uploads/2018/11/img_5bfea6529b989.png)

TreeSize View

[!\[Explorer View\](/wp-content/uploads/2018/11/img_5bfea65d1bab0.png)](/wp-content/uploads/2018/11/img_5bfea65d1bab0.png)

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.

[!\[Wynik narzędzia diagnostycznego użytego do ustalenia procesu blokującego plik ETL Azure\](/wp-content/uploads/2018/11/img_5bfea7335641c.png)](/wp-content/uploads/2018/11/img_5bfea7335641c.png)

I've then tracked Azure via Task Manager

[!\[Widok Menedżera zadań użyty do prześledzenia działania Azure Agent\](/wp-content/uploads/2018/11/img_5bfea75a5bb5a.png)](/wp-content/uploads/2018/11/img_5bfea75a5bb5a.png)

Which brought me to this little service called **RdAgent**

[!\[Usługi systemu Windows z podświetloną usługą RdAgent\](/wp-content/uploads/2018/11/img_5bfea783b965c.png)](/wp-content/uploads/2018/11/img_5bfea783b965c.png)

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?

## Powiązane projekty

Projekty powiązane z tagami, kategoriami i treścią tego wpisu.

[Wszystkie projekty](/projekty/)

Trwa dopasowywanie projektów...

[Powrót do bloga](/blog/)

## Powiązane wpisy

- [Check an API write after a PowerShell timeout](/blog/verify-uncertain-api-outcomes-powershell/)
- [Inspect and convert mixed Office archives with PSWriteOffice](/blog/inspect-and-convert-mixed-office-archives-pswriteoffice/)
- [Compose PDF reports and automate page workflows with PSWriteOffice](/blog/automate-pdf-reports-and-page-workflows-pswriteoffice/)

<!-- PowerForge markdown artifact sha256:849C0E941B2293609C6D87301CC888AAFD9B3DEFDF2F562CBCBA7253A8993D88 -->
