Azure files report using powershell

vshah804 1 Reputation point
2020-06-17T15:37:34.047+00:00

Hello Team - I need to report on all the files hosted in Azure file share and I'm trying below which gives me all the files but not all the properties. I need to know who uploaded the files and when. Is there a way to get those info using powershell? Please let me know. Thank you.

ctx=(Get-AzStorageAccount -ResourceGroupName "rg_test" -Name "storageaccountextshare").Context
Get-AZStorageFile -Context $ctx -ShareName "testautodelete"

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,871 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 44,906 Reputation points Microsoft Employee
    2020-06-23T04:43:24.237+00:00

    @vshah804 : Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.
    There’s a storage logging feature that’s currently in preview that can be used to monitor read, write and delete operations.

    To learn more, see: https://video2.skills-academy.com/en-us/azure/storage/common/monitor-storage?tabs=azure-powershell#logs-in-azure-monitor-preview

    It would be good to evaluate this feature and let us know if it meets your needs.

    If you’re interested in joining the preview, please complete the following form: https://forms.microsoft.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbRxW65f1VQyNCuBHMIMBV8qlUM0E0MFdPRFpOVTRYVklDSE1WUTcyTVAwOC4u

    Hope this helps!

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------------------------------

    Please don’t forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.