
These logs are storing in the $log container. If you enable the azure storage account's diagnostics' blob logs, it will log the blob's each read/write/delete operations.īy reading these operations, I think you could get the download (getblob operation) count for a given blob stored in azure blob storage. By doing this the number of downloading count t is right.

If the blob is public, we could directly download the blob from the URL. Notice: the azure blob has public and private permission. If user click the download button or something else, get the number of downloading count (you could store it into blob file matadata) and calculate. You could try to count the download number by creating an application. Kindly let us know if the above helps or you need further assistance on this issue.ĭo click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members.Īs I understand you need the information on download countįor a given blob stored in azure blob storage.īlob storage doesn't support getting the download count directly now Viewing $logs blob containers for Storage Accounts with enabled metrics Get-AzStorageServiceMetricsProperty -MetricsType Hour -ServiceType Blob -Context $storagecontext.Contextįor more information, you may refer to the suggestions mentioned in thisĪzure Storage Explorer: Easily manage Storage anywhere from Windows, macOS and Linux, Access multiple accounts and subscriptions across Azure, Azure Stack, and the sovereign Cloud,Ĭreate, delete, view, and edit storage resources, View and edit Blob, Queue, Table, File, Cosmos DB storage and Data Lake Storage. Set-AzStorageServiceMetricsProperty -MetricsType Minute -ServiceType Blob -MetricsLevel ServiceAndApi -RetentionDays 5` -Context $ntext $storagecontext = New-AzStorageContext -StorageAccountName -StorageAccountKey

You can monitor metrics over time in the Azure portal.

