@Salander He For better understating the issue: May I know what exactly are you trying to accomplish?
- For automatic deletion/expiry, you need to use azure life cycle management.
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.
- When using SAS an expiry time must be set: https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview
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 and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.