Azure access tiers
- these access tiers used for cost optimization and based on access time.
- Hot:
- access frequently
- access latency is very low (milliseconds)
- storage cost high
- access cost low
- active workloads , frequently wirte/read data
- cool
- short-term access file
- store cost ~50% less then hot tier
- access latency is very low (milliseconds)
- access cost is little higher then hot access
- 30 more then
- cold
- access latency (milliseconds)
- less then cool storage
- min storage duratiuon will be 90days
- access cold is higger then cold
- long term backups, rarely accessing files, archive files
- archive
- access latency (hours)
- files will be archived
- min storage duratiuon will be 180 days
- storage cost is low 90% cheper then hot
- access cost is higher
- access time will be ~HOUR UPTO 12 HOURS
lifecycle mangment:
- automate access tier transitions
- apply lifecycle rules
- account level
- bob level (container level)
- Create lifecycle rule
- create date or last modified date
- select conditions
- move to cool
- move to cold
- move to archive
- delete blob
{
"rules": [
{
"enabled": true,
"name": "demo-lifecycle",
"type": "Lifecycle",
"definition": {
"actions": {
"baseBlob": {
"tierToCold": {
"daysAfterCreationGreaterThan": 90
},
"tierToCool": {
"daysAfterCreationGreaterThan": 30
},
"tierToArchive": {
"daysAfterCreationGreaterThan": 180,
"daysAfterLastTierChangeGreaterThan": 7
},
"delete": {
"daysAfterCreationGreaterThan": 365
}
}
},
"filters": {
"blobIndexMatch": [
{
"name": "env",
"op": "==",
"value": "dev"
}
],
"blobTypes": [
"blockBlob"
],
"prefixMatch": [
"logs/*",
"demo/*"
]
}
}
}
]
}
Azure storage explore
choco install microsoftazurestorageexplorer -y
Refer here for install azure explore
Task
- azure cli cmd to create storage account , create blob storage container and upload files.
- refer here azure cli cmd and create lifecycle rule
- Who know terraform try to create azure storage account & container and lifecycle rule
- Terraform Refer
