Managing blobs in Azure Storage using PowerShell
In this recipe, we'll learn to perform various management tasks on an Azure blob. We'll copy blobs between containers, list all blobs in a container, modify a blob access tier, download blobs from Microsoft Azure to a local system, and delete a blob from Azure Storage.
Getting ready
Before you start, perform the following steps:
- Make sure you have an existing Azure storage account. If not, create one by following the Provisioning an Azure storage account using PowerShell recipe.
- Make sure you have an existing Azure storage container. If not, create one by following the Creating containers and uploading files to Azure Blob storage using PowerShell recipe.
- Log in to your Azure subscription in PowerShell. To log in, run the
Connect-AzAccount
command in a new PowerShell window and follow the instructions.
How to do it…
Let's begin by copying blobs between containers.