How can I programmatically determine how much Azure Storage I have used so far?
The capacity limit for a single Azure account is 200 TB (two hundred terabytes). It sounds very loud, but if you store files in a 25 megabyte blob each, you might have about four million of them, which are good, but not something impossible to exhaust.
I want to create some code that will periodically check how much space I have used and raise an alert.
How can I programmatically find out how much space I have already used in my storage account?
source to share
It looks like the current limit for Azure Storage Account is 500 TB (see here )
If you have an Azure Storage account with blobs only, you can use metrics to retrieve current capacity, but current metrics only show the throughput being performed by blobs. See "Warehouse Metrics" documentation and how to enable Warehouse Analytics
Maybe this will help you http://www.amido.com/richard-slater/windows-azure-storage-capacity-metrics-with-powershell/
Not sure about this, but it looks like you can create an azure portal alert for this metric:
source to share