如何以编程方式查找当前Azure存储帐户的数量和限制?

时间:2016-11-16 18:37:37

标签: azure

我正在编写一些会自动配置新的ARM存储帐户的代码,作为其中的一部分,我需要检查我与max number of storage accounts的距离。我无法通过搜索找到任何具体的东西(只有this,这有点像死路一条)。我完全使用HTTP调用(没有.NET Azure库依赖项)。

实际上,我尝试使用ARM方式获取此经典端点的MaxStorageAccountsCurrentStorageAccounts属性:https://msdn.microsoft.com/en-us/library/azure/hh403995.aspx

1 个答案:

答案 0 :(得分:1)

通过获取http://management.azure.com/subscriptions/{subscription ID}/providers/Microsoft.Storage/usages?api-version=2016-01-01 cmdlet并通过ILSpy运行它以反编译找到正确的URL:

data = np.array([[1, 2, 3],
                 [4, 5, 6],
                 [7, 8, 9]])
df = pd.DataFrame(data, columns=('Sensor1231', 'Sensor4221', 'Sensor4673'))

不确定为什么我在网上找不到任何引用。