Azure blob expiration

Salander He 66 Reputation points Microsoft Employee
2021-10-13T05:55:21.897+00:00
  1. Dose Azure blob support expiration? Except for lifecycle management.
  2. If yes, can we set a blob's expiry when generate or upload the blob?
  3. How to get a blob's expiry time?
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,200 questions
0 comments No comments
{count} vote

Accepted answer
  1. Sumarigo-MSFT 47,471 Reputation points Microsoft Employee Moderator
    2021-10-13T06:30:33.963+00:00

    @Salander He For better understating the issue: May I know what exactly are you trying to accomplish?

    Use SetBlobExpiry API on storage account with hierarchical-namespace disabled. Product Group informed this feature request to be added to the backlog for future release. Presently I don't have any ETA on this feature

    Manage expiration of Azure Blob storage in Azure CDN The Blob storage service in Azure Storage is one of several Azure-based origins integrated with Azure Content Delivery Network (CDN). Any publicly accessible blob content can be cached in Azure CDN until its time-to-live (TTL) elapses. The TTL is determined by the Cache-Control header in the HTTP response from the origin server. This article describes several ways that you can set the Cache-Control header on a blob in Azure Storage.

    Note: Here, the TTL does not mean "the blob would be deleted or become unavailable", it means the cache of the blob will be expired and at this time(TTL expired), if the client requests the blob, it will not use the cached-blob in cdn(which is already expired). Instead, it will directly request the blob stored in blob storage

    Additional information: - The Set Blob Expiry operation sets an expiry time on an existing blob. This operation is only allowed on Hierarchical Namespace enabled accounts. Applies to service version 2020-02-10 and above.

    Authorizing with Azure AD: https://learn.microsoft.com/en-us/azure/storage/common/authorize-data-access

    Please let us know if you have any further queries. I’m happy to assist you further.
    Looking forward for your reply!

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------

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


0 additional answers

Sort by: Most helpful

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.