How do I move from cold to hot with blob lifecycles

Alberto Mijares (Tantius) 81 Reputation points
2023-02-09T16:24:36.9566667+00:00

I have blobs stored in cool tier, when I upload with rewrite they remain in cool even though the container has a hot default.

My understanding reading the documentation is that I would be charged for the deletion of the previous version of the cool tier and be charged for a new blob in hot tier.

Why is the blob still in cool tier?

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,794 questions
{count} votes

Accepted answer
  1. SaiKishor-MSFT 17,231 Reputation points
    2023-02-10T22:49:36.26+00:00

    @Alberto Mijares Thanks for reaching out to Microsoft Q&A.

    Yes, that is correct. When you upload a new version of a blob using the "Rewrite" option, the previous version of the blob will be deleted, and a new blob will be created in the same container. If the container has a default access tier of "Hot", then the new blob will be created in the "Hot" tier. However, if the blob was originally created in the "Cool" tier, then it will remain in the "Cool" tier even if the container's default access tier is "Hot".

    This is because the blob's access tier is determined by the tier it was created in, not the container's default access tier. To change the access tier of an existing blob, you can use the "Set Blob Tier" operation or the "Copy Blob" operation. Keep in mind that changing a blob's tier from "Cool" to "Hot" or "Archive" will incur additional charges.

    You can also use a lifecycle management policy to automatically move blobs between access tiers based on their age or last modified time. This can help you optimize your storage costs by moving older or infrequently accessed blobs to cooler tiers. document_link: https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/storage/blobs/access-tiers-overview.md

    Hope this helps. Please let us know if you have any more questions and we will be glad to assist you further. Thank you!

    Remember:

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    Want a reminder to come back and check responses? Here is how to subscribe to a notification.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Jay Acharya 0 Reputation points Microsoft Employee
    2024-03-11T04:19:00.9533333+00:00

    After transferring blobs to the cold tier, is it possible to revert them to the hot tier using a blob lifecycle policy? According to the documentation, the option to transition blobs to the hot tier is exclusively accessible for premium storage accounts. Is my understanding correct?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.