Azure blob api cost notes
No, the transactions are not free, but running rclone size
on a prefix with one million objects is very inexpensive.
## What Happens When You Run the Command
The rclone size
command works by sending a series of "List Blobs" requests to your storage account to count every object under the specified prefix.
- Azure's
List Blobs
operation can return a maximum of 5,000 blob names per request. - To count 1,000,000 objects,
rclone
must make multiple requests until all objects have been listed.
## The Calculation
- Total Objects: 1,000,000
- Objects per API Call: 5,000
- Total API Calls: 1,000,000 / 5,000 = 200 List operations
## The Cost
Azure charges for these "List and Create Container operations" per 10,000 transactions. While prices can vary slightly by region, a typical pay-as-you-go rate for the Hot tier is $0.055 per 10,000 operations.
Since you are only performing 200 operations, you fall into the very first pricing block. The total cost for the entire rclone size
command would be less than a penny.
Bottom Line: While not technically free, the monetary cost is negligible. The main "cost" you'll notice is the time it takes for rclone
to complete the 200 sequential API calls.