Reputation: 2409
I'm writing some code that will automatically provision new ARM storage accounts, and as part of it, I need to check how close I am to the max number of storage accounts. I can't find anything concrete by searching (only this, which is a bit of a dead-end). I'm operating entirely with HTTP calls (no .NET Azure library dependencies).
Effectively, I'm trying to find the ARM way to get the MaxStorageAccounts
and CurrentStorageAccounts
properties of this classic endpoint: https://msdn.microsoft.com/en-us/library/azure/hh403995.aspx
Upvotes: 1
Views: 99
Reputation: 2409
Found the right URL to hit by taking the Get-AzureRmStorageUsage
cmdlet and running it through ILSpy to decompile:
http://management.azure.com/subscriptions/{subscription ID}/providers/Microsoft.Storage/usages?api-version=2016-01-01
Not sure why I couldn't find any references to it online.
Upvotes: 1