Managing an Azure blob snapshot in Azure Storage using PowerShell
An Azure blob snapshot is a point-in-time copy of a blob. A snapshot can be used as a blob backup. In this recipe, we'll learn to create, list, promote, and delete an Azure blob snapshot.
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.
- Make sure you have existing blobs/files in an Azure storage container. If not, you can upload blobs according to the previous 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...