Hei @Narasimha kolla ,
Thank you for contacting Microsoft community.
As i understand, You have a set of files that need to change access and storage account tier depending on number of days they have been accessible.
This can be solved and automated via Azure Storage account lifecycle management policy, these policies enable you to manage the lifecycle of each object in a storage account. It possible to delete or archive among other options based on the number of days since the object's creation or access.
It also allows you to filter blobs to specific prefix etc.
It can be arranged such that the files move to another tier after 7 days of being created, subsequently moved further to archive tier after 10 days and finally deleted after 15 days.
This is more cost efficient and completely automated.
Read more about the lifecycle policies and how to implement them here
To understand the tier needed for each situation, there are 4 types.
- Hot tier - An online tier optimized for storing data that is accessed or modified frequently. The hot tier has the highest storage costs, but the lowest access costs.
- Cool tier - An online tier optimized for storing data that is infrequently accessed or modified. Data in the cool tier should be stored for a minimum of 30 days. The cool tier has lower storage costs and higher access costs compared to the hot tier.
- Cold tier - An online tier optimized for storing data that is infrequently accessed or modified. Data in the cold tier should be stored for a minimum of 90 days. The cold tier has lower storage costs and higher access costs compared to the cool tier.
- Archive tier - An offline tier optimized for storing data that is rarely accessed, and that has flexible latency requirements, on the order of hours. Data in the archive tier should be stored for a minimum of 180 days.
If this helped you, please mark it as "answer".