Uploading blobs to Blob Storage
As Blob Storage acts as a generic storage solution for files, there needs to be a way to upload files to created containers. Fortunately, there are several different ways to perform upload operations to a storage account – they can be used in a couple of different scenarios:
- Using an SDK will be helpful when working in a traditional development environment.
- The Azure CLI could be leveraged when writing automation scripts. The same applies to Azure PowerShell.
- You can also use additional tools such as AzCopy if you need to work with larger datasets.
In this section, we’ll focus on the Azure CLI and AzCopy for examples of performing upload operations. Let’s start with the former.
Using the Azure CLI to upload a file
Uploading a file using the Azure CLI can be performed using the following command:
az storage blob upload -f <path-to-file> -c <container-name> -n <blob-name>
However...