An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
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
DeleteFileoperation, which natively falls under theStorageDeletecategory. Since you seeCreateFileandPutRange(which are REST operations), you should rightfully expect to seeDeleteFilein yourStorageFileLogswhen 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
SetInfooperation (marking the file for deletion) followed by aCloseoperation. Both of these operations fall under theStorageWritecategory, meaning SMB deletions do not appear inStorageDelete.
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
StorageWritelogs successfully emit to the workspace, butStorageDeletefails to create logs or containers entirely.
Official References
- Azure Files monitoring data reference - Resource logs
- Storage Analytics logged operations and status messages
- Azure file share soft-delete overview
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