Azure FileShare Auditing Queries

Abduazim Sobitov 101 Reputation points
2022-06-10T04:24:43.263+00:00

Hey Team,

I have Azure File Share which holds bunch of documents. I turned on Diagnostic settings and Logs categories are StorageRead, StorageDelete and StorageWrite and sending them to Log Analytics. However, having issues with creating right query which allows to list StorageDelete events. Can you please help with that please.

Thanks a lot

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,420 questions
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
{count} votes

Accepted answer
  1. Sumarigo-MSFT 47,466 Reputation points Microsoft Employee Moderator
    2022-06-16T05:54:31.477+00:00

    @Abduazim Sobitov Thanks for your patience and co-operation.

    Are you by chance using Premium Files? If so, are you able to see the Delete operations in Azure Monitor as shown below?

    If the answer is no, and you are for sure that deletes are occurring, We can work closer on this issue?

    To monitor metadata operations on your share, you can access and use Azure metrics in the portal.

    1. In the Azure portal, go to your storage account.
    2. On the left pane, under Monitoring, select Metrics.
    3. Select File as the metric namespace for your storage account scope.
    4. Select Transactions as the metric.
    5. Add a filter for API name. Create/Close
    6. Optionally you can use Split by to breakdown per operations

    211884-image.png

    211885-image.png

    I was able to confirm that the operation might be logged under “Closed”  
      
    So try using this query.  
      
    StorageFileLogs   
    | where Category == "StorageDelete"  
    

    Please let us know if you have any further queries. I’m happy to assist you further.

    ----------

    Please do not forget to 211903-screenshot-2021-12-10-121802.png and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.