Hi, I'm Henry! I will help you with this.
I see that your Azure VM's OS disk (C:) is reporting full capacity despite only using around 60 GB, and disk cleanup hasn’t resolved the issue. This can happen due to hidden system files, log files, or misreported disk usage.
- Check for Hidden Large Files
- Open File Explorer, go to View > Show > Hidden items.
- Look for large files in C:\Windows\Temp, C:\Users\YourUser\AppData\Local\Temp, or C:\Windows\Logs.
- Use TreeSize Free or WinDirStat to visualize disk usage.
- Investigate Shadow Copies & System Restore
- Open Command Prompt (Admin) and run:
vssadmin list shadows
- If shadow copies are consuming space, you can delete them using:
vssadmin delete shadows /all
- Check Pagefile & Hibernation File
- Run cmd as Administrator and check:
-
dir /a C:\pagefile.sys
-
dir /a C:\hiberfil.sys
-
- If these files are large, disable hibernation with:
powercfg -h off
- Verify Disk Usage with PowerShell
- Run the following command to check actual disk usage:
Get-PSDrive C
- Check Azure VM Diagnostics & Logs
- Some Azure VMs generate excessive logs in C:\ProgramData\Microsoft\Diagnosis.
- You can clear logs manually or configure log retention settings.
- Expand the OS Disk (If Needed)
- If space is genuinely insufficient, consider expanding the disk using Azure’s disk resizing guide.
Let me know if any of these solutions work for you.