Hello Liam,
The tierToCool action in Azure Blob storage Lifecycle management is used to move data from one storage tier to another. It is not designed to leave the data in the original storage tier.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
With Azure Blob storage Lifecycle managment, can the tierToCool action be used in a way that it leaves the data in the original storage tier? When I read the documentation it always describes these actions as 'moving' data only. We would like to automate a back up of our data from one tier to another.
Hello Liam,
The tierToCool action in Azure Blob storage Lifecycle management is used to move data from one storage tier to another. It is not designed to leave the data in the original storage tier.
You are correct, the example policy I provided earlier is still a "move" operation rather than a "copy" operation. In that policy, data is moved from one tier to another based on specific conditions. If you want to keep a copy of the data in the original tier while also creating a copy in the archive tier, you can use a combination of two policies.
The first policy can be used to create a copy of the data in the archive tier while keeping the original data in the hot or cool tier. Here's an example policy that achieves this:
{
"rules": [
{
"name": "Copy to Archive",
"enabled": true,
"type": "Lifecycle",
"definition": {
"actions": {
"baseBlob": {
"copy": {
"destinationTier": "Archive"
}
}
},
"filters": {
"blobTypes": [
"blockBlob"
],
"prefixMatch": [
"data/"
]
}
}
}
]
}
In this policy, any new blob with a prefix of "data/" uploaded to the hot or cool tier will be automatically copied to the archive tier. The original data will remain in the hot or cool tier.