For Time-based immutable policy
, there is no direct way to know when this policy is expiring. You need to calculate it by yourself. For example, if the Time-based retention is 5-days, then you upload a blob in January 1
. Then in January 2, it has 4-days to be expired.
For soft deleted blobs
, yes, you can read the RemainingRetentionDays
by using code or using UI.
Here is an example to read this value via UI, you should install Azure Storage Explorer. Then you can see the RemainingRetentionDays
for each deleted blobs(Note: due to this bug, you should turn off versioning feature.):
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…