Change example.env
to .env
STORAGE_ACCOUNT
Url for blob storage account, usually of the formhttps://<storage account name>.blob.core.windows.net/
CONTAINER_NAME
Name of container to interact with, for exampleusercontent
BLOB_NAME
Name of the blob to interact with, for exampletest.txt
- Change into the /azure/blob_storage directory
- Create a virtual environment
pip install -r requirements.txt
All of the examples have guards if they are run before preconditions are met. The recomended order to run things and have something actually happen is
create_container.py
list_containers.py
upload_blob.py
list_blobs.py
download_blob.py
- Storage Account An umbrella for many types of storage assets such as blob storage, queues and file shares
- Blob Storage A type of storage that treats files as binary blobs that can be treated as blocks or content that can be streamed using REST calls
- Container A collection of blobs in a storage account
- Blob An individual binary stored in a container that can be accessed as a block or streamed content