# Azure Agent – Where did my space go?

If a Windows Azure VM suddenly loses disk space and Explorer does not explain it, the Azure guest agent and its logs under C:\WindowsAzure are worth checking.

blog

28 Nov 2018 de

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

[Bilder ansehen (7)](#pf-content-image-1-0)

I ran into a case where an **Azure** VM started losing disk space fast enough to trigger monitoring alerts, but **Windows Explorer** was not very helpful in explaining where the space had gone.

That is the kind of problem where a directory-size tool can save you a lot of time.

## How the problem showed up

A tool like **TreeSize** made it obvious that the space was disappearing under the **`C:\WindowsAzure`** area:

[!\[TreeSize showing the WindowsAzure folder consuming about 74 GB of disk space\](/wp-content/uploads/2018/11/img_5bfea58a4cd9d.png)](/wp-content/uploads/2018/11/img_5bfea58a4cd9d.png)

Meanwhile, Explorer showed something much smaller for what looked like the same path:

[!\[Windows Explorer properties showing only about 393 MB for the same WindowsAzure folder\](/wp-content/uploads/2018/11/img_5bfea5f7a1211.png)](/wp-content/uploads/2018/11/img_5bfea5f7a1211.png)

That mismatch is exactly what makes this kind of issue frustrating. The disk is full, but the normal GUI view does not obviously expose the real offender.

## What turned out to matter

Looking deeper suggested that one of the **ETL** files related to the Azure agent stack was effectively consuming the space.

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

At that point the question stopped being "what folder is large?" and became "which service owns the file and why is it still holding it open?"

## What fixed it

The file could not just be deleted because it was in use. After tracing the active process, the path led back to **RdAgent**.

[!\[Diagnostic tool output used to identify which process keeps the Azure ETL file open\](/wp-content/uploads/2018/11/img_5bfea7335641c.png)](/wp-content/uploads/2018/11/img_5bfea7335641c.png)[!\[Task Manager view used to trace Azure Agent activity\](/wp-content/uploads/2018/11/img_5bfea75a5bb5a.png)](/wp-content/uploads/2018/11/img_5bfea75a5bb5a.png)[!\[Windows Services highlighting the RdAgent service\](/wp-content/uploads/2018/11/img_5bfea783b965c.png)](/wp-content/uploads/2018/11/img_5bfea783b965c.png)

Restarting that service released the file and immediately reclaimed the space.

## Practical takeaway

If an Azure Windows VM starts losing space in a way that Explorer does not explain, do not stop at the normal folder view. Check:

- `C:\WindowsAzure`
- Azure guest agent logs and related files
- whether **RdAgent** or **WindowsAzureGuestAgent** is holding the files open

This is one of those cases where the right troubleshooting tool matters more than a long theory.

## Current note

Microsoft still documents the **Azure Windows VM Agent** as a core component for Windows VMs in Azure, and they also document that it performs automatic guest log collection. That means the general lesson from this post still holds: if Azure VM agent behavior goes wrong, the **`C:\WindowsAzure`** tree is a real place to investigate.

I would treat the exact "restart RdAgent and reclaim tens of gigabytes" result here as an **environment-specific incident**, not a guaranteed universal fix. But the troubleshooting path remains sound: identify the real file owner, verify the agent processes involved, and then decide whether a service restart, cleanup, or agent repair is the safest next step.

## Zugehörige Projekte

Projekte, die zu Tags, Kategorien und Inhalt dieses Beitrags passen.

[Alle Projekte](/de/projekte/)

Projekte werden abgeglichen...

[Zurück zum Blog](/blog)

## Ähnliche Beiträge

- [Azure AD Connect – Completed-Export-Errors – Permission-Issue](/de/blog/azure-ad-connect-completed-export-errors-permission-issue/)
- [PowerBGInfo 2.x: support-ready Windows backgrounds from PowerShell](/de/blog/powerbginfo-support-ready-windows-backgrounds/)
- [Track Ubiquiti Unifi Stock, and get notified of changes](/de/blog/simplify-notifications-about-ubiquiti-unifi-stock/)

<!-- PowerForge markdown artifact sha256:B879FDB6F6A56C326DBAB1C16A42927206ADE3E1C450862B50E5158E8FEADC73 -->
