Azure Archive Blob Storage is generally available

Azure Archive Blob Storage and blob-level tiering is GA so I updated my script and published it on GitHub. Happy testing!

Hey folks,

last week, Kumail Hussain announced GA of Azure Archive Blob Storage, an announcement that seems like a christmas present to me. Those of you who had already read my blog on the preview phase know how to use this new storage tier in Azure. All the rest: go on reading!

Azure Archive Blog Storage is the cheapest storage tier Azure Blob Storage offers and as indicated by the name, Azure Archive Blob Storage is used for archiving purposes. As tiering is done on blob-level, not per container, I’ve written and published a little PowerShell script that does the job for you. Please make sure to visit my GitHub repository in order to always find the latest version of the following script.

### This code snippet is used to connect to an Azure Storage Account and tier all the blobs to Azure Archive Storage Tier.
### You need PowerShell module 4.4.0 or newer in order to be able to tier blobs to archive storage
install-module Azure -requiredVersion 4.4.0

### Import Azure PowerShell module
Import-Module Azure

### Login to your Azure Account

### Storage Account information
### In case you have several subscriptions select the proper one
Select-AzureRmSubscription (Get-AzureRMSubscription | Out-GridView -Title "Select your Azure Subscription" -PassThru)

### Select the Azure Resource Group and Storage Account
$ResourceGroupName = (Get-AzureRmResourceGroup | Out-GridView -Title "Select your Resource Group" -PassThru).ResourceGroupName
$StorageAccount = Get-AzureRmStorageAccount -ResourceGroupName $ResourceGroupName | Out-GridView -Title "Select your Storage Account" -PassThru
$StorageAccountKey = (Get-AzureRmStorageAccountKey -ResourceGroupName $ResourceGroupName -Name $StorageAccount.StorageAccountName)[0].Value
### Create a storage context
$context = New-AzureStorageContext -StorageAccountName $StorageAccount.StorageAccountName -StorageAccountKey $StorageAccountKey
$containername = (Get-AzureStorageContainer -Context $context | Out-GridView -Title "Select your Storage Container" -PassThru).name
$blobs = Get-AzureStorageBlob -Container $containerName -Context $context

### Use the .Net client library API to change the access tier
Foreach ($blob in $blobs) {

I wish you all merry christmas and a happy new year and hope to have you read my blog again next year.

So stay tuned and bye for now,

Author: Tom Janetscheck

Cloud Security Enthusiast | Security Advocate

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: