
Cloud
Learning Level
# Create geo-redundant storage account
az storage account create \
--name mystorageaccount \
--resource-group myResourceGroup \
--location eastus \
--sku Standard_GZRS
# Failover to secondary region
az storage account failover \
--account-name mystorageaccount \
--resource-group myResourceGroupfrom azure.storage.blob import BlobServiceClient
def apply_lifecycle_policy(account_name, container_name):
client = BlobServiceClient.from_connection_string(connection_string)
container = client.get_container_client(container_name)
# Archive after 30 days, delete after 365
rules = {
"rules": [
{
"name": "archive-old",
"actions": {
"baseBlob": {
"tierToArchive": {"daysAfterModificationGreaterThan": 30},
"delete": {"daysAfterModificationGreaterThan": 365}
}
}
}
]
}# Enable Azure CDN
az cdn profile create \
--name myProfile \
--resource-group myResourceGroup \
--sku Standard_Microsoft
# Create CDN endpoint
az cdn endpoint create \
--profile-name myProfile \
--resource-group myResourceGroup \
--name mycdnendpoint \
--origin-host-header mystorageaccount.blob.core.windows.net \
--origins name=myStorage host=mystorageaccount.blob.core.windows.netLearn about Cosmos DB for global data distribution.
Resources
Ojasa Mirai
Master AI-powered development skills through structured learning, real projects, and verified credentials. Whether you're upskilling your team or launching your career, we deliver the skills companies actually need.
Learn Deep • Build Real • Verify Skills • Launch Forward