title: How to get Azure Cosmos DB database/container size?
body: <p>Currently, I am trying to get Azure Cosmos DB SQL API account data volume. I fount solution using PowerShell Get-AzMetric command. Does anybody know how it can be solved using .NET SDK or REST API?</p>
  
  <p><a href="https://i.stack.imgur.com/JXzQb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JXzQb.png" alt="enter image description here"></a></p>