Azure / azure-storage-python

Microsoft Azure Storage Library for Python
https://azure-storage.readthedocs.io
MIT License
339 stars 241 forks source link

How to get the blob url from the BlobProperties? #501

Closed priyaananthasankar closed 6 years ago

priyaananthasankar commented 6 years ago

Can url be constructed within the BlobProperties of the Azure Blob object?

zezha-msft commented 6 years ago

Please refer to the documentation on how to generate a blob URL.

da2r-20 commented 4 years ago

and what about in v12?

Answer: url = BlobClient().url

zhanwenchen commented 8 months ago

How to get there from a container:

        dicty = {}
        container_client = self.container_client
        for blob_properties in container_client.walk_blobs():
            blob_client = container_client.get_blob_client(blob_properties)
            dicty[blob_client.blob_name] =  blob_client.url
        return dicty