TL;DR: solved this is not an issue - my investigation was wrong
I'm using Azure Storage Accounts to store files uploaded via web-application. The way it's set up is that only files uploaded via the WebApplication are stored in the Storage Account Container (so no other way how the files should appear in the container, no direct manipulation with Storage Account container or logs or anything. Just uploads)
Now because the WebApplication ) Ruby on Rails 6.1 with ActiveStorage lib uploads) is creating row in SQL table for every file uploaded it's super easy for me to get the total number of uploaded files:
ActiveStorage::Blob.count
=> 437538
I should have around 437 538 files on Azure Blob storage Container.
Now when I've checked the total number of files from web UI Storage Explorer (preview) > container > more > folder statistics it's says I have around 1 133 000 Blobs
I done the same from the Azure Storage desktop app it's around 1 132 000 Blobs
Therefore I'm expecting around 437k files yet I have 1.3 Milion Blobs.
Note: Files upladed are not large - images or pdfs up to 50MB
My Question: Does it mean the files are not mapped 1:1 to Blob count ? If so how can I translate the Blob count to File count ?
I thought this may be Snapshots but the WebUI clearly says "not including snapshots"
Now Yes some records could have been deleted from SQL table and not from Azure Blob but I would expect up to 1000 such errors (due to nature of application - it's more like archive where you don't delete anything)


