You can find the storage account's blob service URL using the To create a client object, you will need the storage account's blob service account URL and aĬredential that allows you to access the storage account: from import BlobServiceClient service = BlobServiceClient ( account_url = ", credential = credential ) Looking up the account URL Interaction with these resources starts with an instance of aĬlient.
The Azure Storage Blobs client library for Python allows you to interact with three types of resources: the storageĪccount itself, blob storage containers, and blobs. Or Azure CLI: # Create a new resource group to hold the storage account - # if using an existing resource group, skip this stepĪz group create -name my-resource-group -location westus2Īz storage account create -n my-storage-account-name -g my-resource-group
If you wish to create a new storage account, you can use the
Connection string to azure storage emulator blob install#
Install the Azure Storage Blobs client library for Python with pip: pip install azure-storage-blob You must have an Azure subscription and anĪzure storage account to use this package.Python 2.7, or 3.5 or later is required to use this package.Source code | Package (PyPI) | API reference documentation | Product documentation | Samples Getting started Prerequisites Storing data for analysis by an on-premises or Azure-hosted service.Storing data for backup and restore, disaster recovery, and archiving.Serving images or documents directly to a browser.Blob storage is optimized for storing massive amounts of unstructured data, such as text or binary data. Azure Storage Blobs client library for PythonĪzure Blob storage is Microsoft's object storage solution for the cloud.