title: Download all blobs within an Azure Storage container
body: <p>I've managed to write a python script to list out all the blobs within a container. </p>
  
  <pre><code>import azure
  from azure.storage.blob import BlobService
  from azure.storage import *
  
  blob_service = BlobService(account_name='&lt;CONTAINER&gt;', account_key='&lt;ACCOUNT_KEY&gt;')
  
  
  blobs = []
  marker = None
  while True:
      batch = blob_service.list_blobs('&lt;CONAINER&gt;', marker=marker)
      blobs.extend(batch)
      if not batch.next_marker:
          break
      marker = batch.next_marker
  for blob in blobs:
      print(blob.name)
  </code></pre>
  
  <p>Like I said this only lists the blobs that I want to download. I've moved onto the Azure CLI to see if that could aid in what I want to do. I'm able to download a single blob with</p>
  
  <pre><code>azure storage blob download [container]
  </code></pre>
  
  <p>it then prompts me specify a blob which I can grab from the python script. The way I would have to download all those blobs is to copy and paste them into the prompt after the command used above. Is there a way I can either:</p>
  
  <p><strong>A</strong>. Write a bash script to iterate through the list of blobs by executing the command, then pasting the next blob name in the prompt.</p>
  
  <p><strong>B</strong>. Specify to download the container in either the python script or Azure CLI. Is there something I'm not seeing to download the whole container?</p>