简体   繁体   English

Azure Blob 存储生命周期管理

[英]Azure Blob storage lifecycle management

I am currently using Azure Blobs to store data for a project.我目前正在使用 Azure Blob 来存储项目的数据。 I want Azure to automatically delete old entries (data points) which are older then X number of days.我希望 Azure 自动删除比 X 天更早的旧条目(数据点)。 I have found the following documentation:我找到了以下文档:

https://docs.microsoft.com/en-us/azure/storage/blobs/storage-lifecycle-management-concepts?tabs=azure-portal https://docs.microsoft.com/en-us/azure/storage/blobs/storage-lifecycle-management-concepts?tabs=azure-portal

It essentially says that this can be done using lifecycle management and defining a new rule.它本质上说这可以通过使用生命周期管理和定义新规则来完成。 However, this documentation is over 6 months old and I cannot seem to find an option to select lifecycle management and define a new rule.但是,这个文档已经超过 6 个月了,我似乎找不到选择生命周期管理和定义新规则的选项。

Has anyone else encountered this problem or know where I can access lifecycle management for an Azure Blob as of 2020?有没有其他人遇到过这个问题,或者知道我可以从哪里访问到 2020 年 Azure Blob 的生命周期管理?

Yes, this is a feature available today, I just confirmed on a storage account.是的,这是今天可用的功能,我刚刚在存储帐户上确认。 You need to make sure you are using a V2 storage account, it will not be present on a v1, or blob only storage account.您需要确保您使用的是 V2 存储帐户,它不会出现在 v1 或仅 blob 存储帐户中。

I was experiencing the same issue, where the option for Life cycle management wasn't available but it was available on other storage accounts.我遇到了同样的问题,生命周期管理选项不可用,但它在其他存储帐户上可用。 Check the performance/access tier.检查性能/访问层。 If it's set to Premium then its Life cycle management isn't available.如果将其设置为 Premium,则其生命周期管理不可用。 Try creating a storage account with Standard.尝试使用标准创建存储帐户。 If your using an arm template try Standard_RAGRS for the sku parameter.如果您使用 arm 模板,请尝试使用 Standard_RAGRS 作为 sku 参数。

screenshot of storage account in portal:门户中存储帐户的屏幕截图: 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM