I am trying to get the size used for a Directory/ Sub-Directories in an azure file share storage account. I can get this information using the Azure Storage Explorer with Directory Stats button on the right hand top of the screen. However, I could not find an easy way to get this information via an API or Powershell command. I have looked at the following API: https://learn.microsoft.com/en-us/rest/api/storageservices/operations-on-directories
and also looked tried the C# Azure Storage SDK. No Luck yet.
Has anyone tried this ? Thanks!