Share via

Azure Classic file shares (Storage Account) not showing logs for Delete

Le Thai Hien 0 Reputation points
2026-05-31T04:55:55.1+00:00

I have a Classic File Share in Azure Storage Account. It has Soft Delete enabled.

In Diagnostic settings, I already enabled all logs for File (StorageRead, StorageWrite, StorageDelete).

However, when I upload a file and then delete it, the logs (StorageFileLogs) don't show anything related to Delete. (It still shows CreateFile, PutRange, etc.)

How do I view logs for Delete action? (Found a similar question here https://learn.microsoft.com/en-us/answers/questions/5879088/storagedelete-logs-not-appearing-in-storagebloblog. It looks like there's an issue with generating Delete logs from Azure side)

Azure Monitor
Azure Monitor

An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.


2 answers

Sort by: Most helpful
  1. Andrew Taylor - COREZENN 900 Reputation points Volunteer Moderator
    2026-06-02T23:49:22.6333333+00:00

    Hello @Le Thai Hien

    Thank you for reaching out to the Microsoft Q&A forum!


    Based on your description and the fact that you are seeing CreateFile and PutRange events, you are interacting with the Azure file share via the REST API (such as through the Azure Portal, Azure Storage Explorer, or AzCopy) rather than via an SMB mount.

    Here is the breakdown of why you might not be seeing the delete logs and how logging is categorized:

    1. Logging Differences (REST API vs. SMB Protocol) The way file deletions are logged depends entirely on how the file was accessed and deleted:

    • Via REST API: Deleting a file triggers a DeleteFile operation, which natively falls under the StorageDelete category. Since you see CreateFile and PutRange (which are REST operations), you should rightfully expect to see DeleteFile in your StorageFileLogs when you delete a file.
    • Via SMB: If you were modifying files via a mounted network drive (SMB), the SMB protocol maps file deletion to a SetInfo operation (marking the file for deletion) followed by a Close operation. Both of these operations fall under the StorageWrite category, meaning SMB deletions do not appear in StorageDelete.

    2. Missing StorageDelete Logs (Backend Telemetry) Since you are operating via the REST API and have already confirmed that StorageRead and StorageWrite logs are generating correctly, the absence of StorageDelete logs strongly indicates a backend telemetry emission issue. This is very similar to the blob deletion behavior you linked to. If the platform backend is failing to emit the StorageDelete category specifically for file shares in your Storage Account's region, no amount of diagnostic reconfiguration on your end will fix it.

    3. Soft Delete Clarification As an additional note regarding your setup: Azure Files soft delete operates specifically at the file share level to protect the entire share from accidental deletion. It does not apply to individual files within the share. When an individual file is deleted from the file share, it is permanently removed immediately.

    Action Plan

    To resolve the missing StorageDelete logs, you will need to open an Azure Support ticket. The Azure Storage engineering team will need to investigate the backend logging pipelines for your specific region and storage account.

    When creating the ticket, please include:

    • Your Storage Account name and Subscription ID.
    • The exact timestamps of your test deletes.
    • Confirmation that StorageWrite logs successfully emit to the workspace, but StorageDelete fails to create logs or containers entirely.

    Official References

    Please 'Upvote' (Thumbs-up) and 'Accept' as answer if the response was helpful. This will help other community members find help with similar issues.

    Best regards,

    Andrew S Taylor

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. kagiyama yutaka 3,510 Reputation points
    2026-05-31T05:42:27.2633333+00:00

    I think the delete for Azure Files goes to StorageFileLogs / StorageDelete, and when it still does not show there with file → StorageDelete on, you talk to support.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

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