title: Python Azure SDK: Using list_blobs to get more than 5.000 Results
body: <p>I'm having trouble with the Python Azure SDK and haven't found anything both on Stack Overflow and in the Msdn Forums. </p>
  
  <p>I want to use Azure SDKs list_blobs() to get a list of blobs - there are more than 5.000 (which is the max_result). </p>
  
  <p>If I take a look at the code in the SDK itself then I see the following:</p>
  
  <pre><code>    def list_blobs(self, container_name, prefix=None, marker=None,
                     maxresults=None, include=None, delimiter=None):
  </code></pre>
  
  <p>The description for 'Marker' being:</p>
  
  <pre><code>    marker:
          Optional. A string value that identifies the portion of the list
          to be returned with the next list operation. The operation returns
          a marker value within the response body if the list returned was
          not complete. The marker value may then be used in a subsequent
          call to request the next set of list items. The marker value is
          opaque to the client.
  </code></pre>
  
  <p>My problem is that I'm unaware on how to use the marker to get the next set of 5.000 results. If I try something like this:</p>
  
  <pre><code>    blobs = blobservice.list_blobs(target_container, prefix= prefix)            
      print(blobs.marker)
  </code></pre>
  
  <p>then the marker is always empty, which I assume is because list_blobs() already parses the blobs out of the response. </p>
  
  <p>But if that is the case then how do I actually use the marker in a meaningful way?</p>
  
  <p>I'm sorry if this is a stupid question but this actually is the first one that I didn't find an answer for, even after searching extensively. </p>
  
  <p>Cheers!</p>