SOLVED

Automating the changing of blob tiers

Deleted
Not applicable

Hi all,

 

I'm in the process of migrating data to Azure Blob Storage. This is data which will be rarely required or accessed, so we've decided to store the files/blobs in the Archive Tier. Currently blobs cannot be directly added to Archive tier, so I'll need to copy them from on-premise to my Hot Tier container & then change each individual blob tier to Archive. There will be a large amount of data copied up initially, and then a incremenatl nightly copy job will need to be done. I'll will be using a scheduled task (with Azcopy script) for both of these jobs.

My question is, once the files/blobs have been uploaded, whats the best way of automating the process of changing the the blob tier from 'Hot to 'Archive'?? I've read a bit on Azure Automation and Runbooks, is this the route I should be going down.

Appreciate any help or suggestions.

Thanks
Brendan

2 Replies
Its the solution i personaly would use, specialy if you have may files you could execute the achieve command on multiple files in parallel if the Storage account supports this, i haven't tested it. you could use a AAD service prinicpal or store the storage account keys as a encrypted value in your automation account.
best response
Solution

Hello,

While looking for a way to do this directly using AzCopy command line tool, I fall on your question and might have a first answer for you.

Right now, I'm automating some backup in Azure Blob Archive Storage as well and end up using AzCopy (because Azure PS module AzureRM doesn't seem to support uploading large files, command Set-AzureStorageBlobContent).

Anyhow, to change the storage tier, I am using a command from the same PS module called SetStandardBlobTier and used as follow:

$blob.ICloudBlob.SetStandardBlobTier("Archive");

 

Hope it helps,

1 best response

Accepted Solutions
best response
Solution

Hello,

While looking for a way to do this directly using AzCopy command line tool, I fall on your question and might have a first answer for you.

Right now, I'm automating some backup in Azure Blob Archive Storage as well and end up using AzCopy (because Azure PS module AzureRM doesn't seem to support uploading large files, command Set-AzureStorageBlobContent).

Anyhow, to change the storage tier, I am using a command from the same PS module called SetStandardBlobTier and used as follow:

$blob.ICloudBlob.SetStandardBlobTier("Archive");

 

Hope it helps,

View solution in original post