Retrieving information from AzureStorageaccount is SLOW

Welcome Forums General PowerShell Q&A Retrieving information from AzureStorageaccount is SLOW

Viewing 0 reply threads
  • Author
    Posts
    • #274644
      Participant
      Topics: 1
      Replies: 0
      Points: 19
      Rank: Member

      Hi

      I’m a new to PowerShell.

      I’m trying to get the name of all blobs, in all containers from my Azure storageaccount.

      My code works, but are relay slow :/

      I have this code that retrieves all the containers:

      $blobcon = Get-AzureStorageContainer -Name 68* -Context $cont

      I have this code that loops through them:

      foreach ($c in $blobcon.name)
          { … }
      And this code to retrieve each blob in the current container:
          $blobs = Get-AzureStorageBlob -Container $c  -Context $cont
      Is my problem that the complete blob, with all the data, is downloaded?
      I just want the name of the container and blob, is there some other (faster) way to do this?
Viewing 0 reply threads
  • You must be logged in to reply to this topic.