question

AntonUgarte-5598 avatar image
0 Votes"
AntonUgarte-5598 asked SumanthMarigowda-MSFT commented

Exclude one blob from being moved to Archive tier

From the FAQ
"I manually rehydrated an archived blob, how do I prevent it from being moved back to the Archive tier temporarily?

When a blob is moved from one access tier to another, its last modification time doesn't change. If you manually rehydrate an archived blob to hot tier, it would be moved back to archive tier by the lifecycle management engine. Disable the rule that affects this blob temporarily to prevent it from being archived again. Re-enable the rule when the blob can be safely moved back to archive tier. You may also copy the blob to another location if it needs to stay in hot or cool tier permanently."

But, what if I want to exclude a blob from being moved to the Archive tier? I want to keep one blob (synobkpinfo.db from Synology HyperBackup) to access it in this folder, and I want to send the other blobs to Archive tier.
I cannot copy in other folder, the access must be in this folder, but I only need this blob in the Cool storage.

Is this code OK for this task?
{
"rules": [
{
"enabled": false,
"name": "mover-a-archivo",
"type": "Lifecycle",
"definition": {
"actions": {
"baseBlob": {
"tierToArchive": {
"daysAfterModificationGreaterThan": 1
}
}
},
"filters": {
"blobTypes": [
"blockBlob"
]
}
}
},
{
"enabled": false,
"name": "excluir-synobkpinfo",
"type": "Lifecycle",
"definition": {
"actions": {
"baseBlob": {
"tierToCool": {
"daysAfterModificationGreaterThan": 1
}
}
},
"filters": {
"blobTypes": [
"blockBlob"
],
"prefixMatch": [
"container/folder/synobkpinfo.db"
]
}
}
}
]
}

Thanks in advance

azure-blob-storage
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SumanthMarigowda-MSFT avatar image
0 Votes"
SumanthMarigowda-MSFT answered SumanthMarigowda-MSFT commented

@AntonUgarte-5598 Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.

This will not work. OLCM is only for hot to cool, cool to archive or hot to archive

107579-image.png

As per FAQ : I manually rehydrated an archived blob, how do I prevent it from being moved back to the Archive tier temporarily? Yes, exactly. If you do not wish to move to a different container, then it will automatically move again to archive tier, from the first rule that's present

Hope this helps!
Kindly let us know if the above helps or you need further assistance on this issue.


Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


image.png (11.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.