Share via

SQL elastic pools usage details

Gaurav Singh 130 Reputation points
2023-09-22T11:00:03.56+00:00

Hello Team,

I am facing an issue I try to fetch the usage percentage of the SQL elastic pools,

PS C:\Users\gaurav.singh> Get-AzSqlElasticPool -ResourceGroupName $resourceGroupName -ServerName $serverName -ElasticPoolName $elasticPoolName | Select-Object -ExpandProperty StorageMBPercentageUsage
Select-Object: Property "StorageMBPercentageUsage" cannot be found.

Can you please help me with the right command that can show the used space or percentage of the Azure Elastic Pools

Azure SQL Database
SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


1 answer

Sort by: Most helpful
  1. Vinodh247-1375 43,181 Reputation points Volunteer Moderator
    2023-09-23T04:57:19.1166667+00:00

    Hi Gaurav Singh:

    Thanks for reaching out to Microsoft Q&A.

    Did you try the below commands, which includes the 'azmetric' ?

    Get-AzSqlElasticPool -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -ElasticPoolName "ElasticPool01" | Get-AzMetric -TimeGrain 0:5:0 -MetricName storage_percent

    You can get the below parameters from this metric.

    cpu_percent, physical_data_read_percent, log_write_percent, dtu_consumption_percent, storage_percent

    Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.