Reputation: 23
Working on getting the used count and the capacity by subscription for various Azure resources. This information is to be retrieved either through an API or a Powershell Cmdlet and a historical data about the same information needs to be maintained. Following are the resources we seek to target:
While researching I did not find any API or Powershell Cmdlets in Azure that would return the result in the following manner similar to the storage accounts or virtual machines:
{
"value": [
{
"unit": "Count",
"currentValue": 55,
"limit": 250,
"name": {
"value": "StorageAccounts",
"localizedValue": "Storage Accounts"
}
}
]
}
Is there any such way to get the used and the total for the resources listed above in a programmatic manner?
Upvotes: 0
Views: 1669
Reputation: 5546
While researching I did not find any API or Powershell Cmdlets in Azure that would return the result in the following manner similar to the storage accounts or virtual machines: Is there any such way to get the used and the total for the resources listed above in a programmatic manner?
We have checked Azure Documentation, didnt found any PowerShell cmdlets or rest API to pull resource count limits & quota for a specific resources providers.
Using the below AzureCLI cmdlets we can pull the regional specific limits for resources (Virtual Machines, Network, SQL ,storage Accounts) limits for a particular subscription.
az vm list-usage --location <location>
az network list-usages --location <location>
az sql list-usages --location <location>
az storage account show-usage --location <location>
After reading multiple documentation , please find the below requested resource limits.
Here are the Event hub namespaces, Event hubs per namespace regional limits you can refer the below image
Here are the Event Grids regional limits , you can refer the below image
For more information about subscription limits & quota for different resource provider you can refer this documentation.
Upvotes: 1