title: Azure Monitor: How to fetch UsedCapacity for particulare FileShare?
body: <p>I'm trying to get the used Capacity from the Azure Monitor <a href="https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/azure-monitor/essentials/metrics-supported.md#microsoftclassicstoragestorageaccountsfileservices" rel="nofollow noreferrer">REST-API</a> for a particular Fileshare.</p>
  <p>But all I get is the summarized Capacity. Does anymone know the trick?</p>
  <p>This command will deliver the UsedCapacity for the entire StorageAccount:</p>
  <pre><code>GET https://management.azure.com/subscriptions/&lt;MYSUBSCRIPTION&gt;/resourceGroups/&lt;MYRG&gt;/providers/Microsoft.Storage/storageAccounts/&lt;MYSTORAGEACCOUNT&gt;/fileServices/default/providers/Microsoft.Insights/metrics?api-version=2018-01-01
  </code></pre>