Is there an way to find how many databases there is in Azure Elastic pool. we will have 5 and i some cases needs to know if it full. I have looked in the Microsoft.Azure.Management.Sql nuget package, but i cant find a way to do this
You can use Azure's REST API to fetch information from your Elastic Pool.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases?api-version=2017-10-01-preview
Just follow this from Microsoft's documentation.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.