Disk Drive on Virtual Machine (G:) not able to write log, causing application crash

Hugo Fernandez 0 Reputation points
2025-03-14T02:38:32.2366667+00:00

We have a VM running a web application. We write logs to a disk drive and it is causing a crash because it cannot write to it.

There is plenty of disk space in the disk drive and we see no other error logs anywhere.

Please help! we don't know what to do!

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,077 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 26,811 Reputation points Microsoft Employee Moderator
    2025-03-18T16:22:08.9066667+00:00

    Hello, @Hugo Fernandez! We haven't heard back from you so hopefully everything is going well. If you still need assistance, please let us know in the comments and we'll be happy to help you.Why am I experiencing a crash when writing logs to my VM?

    There are a variety of possible causes for VM crashes but when this seems to occur while writing logs to an attached drive, you may want to start by looking at the minute metrics for the storage account as spikes in IOPS may be resulting in a throttling error:

    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/unexpected-reboots-attached-vhds

    Generally speaking with crashes and unexpected reboots, you'll want to check the following:

    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/unexpected-vm-reboot-root-cause-analysis

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.