Storage services

One storage account, four kinds of storage

STORAGE ACCOUNT · contoso2026a name unique in all of AzureBlobany file, keptas an objectblob.core.windows.netFilesshared folders,SMB or NFSfile.core.windows.netQueuemessages betweenparts of an appqueue.core.windows.netTablesimple rows,found by keytable.core.windows.netManaged disksthe drives ofvirtual machinesOne storage account holds four services, each with its own web address.Blob storage takes any amount of unstructured data: images, video, backups, logs. Azure Files gives sharedfolders that many machines mount at once. Queue storage holds messages for one part of an application tohand to another. Table storage holds simple structured rows. Disks for virtual machines are managed apart.

A storage account holds blobs, file shares, queues and tables. Disks sit alongside.

Storage services · Going deeper

Storage account types and names

Storage account typesTypeHoldsRedundancy offeredUse it forStandard general-purpose v2blobs, files, queues, tablesall six optionsalmost everythingPremium block blobsblock and append blobsLRS, ZRSlow-latency workloadsPremium file sharesfile shares onlyLRS, ZRSbusy shared foldersPremium page blobspage blobs onlyLRS, ZRSrandom-access dataThe name3 to 24 lower-case letters and numbers, unique across the whole of AzureStandard or premiumStandard is on hard disks and cheaper; premium is on solid-state disks and fasterThe account decidesthe region, the redundancy and the default access tier for what is insideUnless a question says "premium" or "low latency", the answer is the standard general-purpose v2 account.

The usual account is standard general-purpose v2. Premium accounts are for speed.

Access tiers

Colder tiers cost less to keep and more to read

ReadKept at leastTo read it backHotoftenno minimumat onceCoolnow and then30 daysat onceColdrarely90 daysat onceArchivealmost never180 daysafter hourscheaper to store, dearer to readEach tier to the right costs less to keep and more to read. Choose by how often you will read it.Hot, cool and cold blobs can all be read immediately; they differ in price. An archive blob is offline: youask for it to be brought back, and that takes hours. The minimum days are a charge, not a lock: delete ormove a blob early and you pay for the remaining days.

Hot, cool, cold, archive: cheaper to store at each step, dearer and slower to read.

Access tiers · Going deeper

Access tier details

Access tiers: the detailsApplies toBlobs. Tiers are a feature of Blob storageDefault tierSet on the account, hot unless you change it; a blob can then be given its own tierArchiveCan only be set on an individual blob, never as the account defaultRehydrationBringing an archive blob back to hot, cool or cold so that it can be read; takes hoursLifecycle managementRules that move blobs to a colder tier, or delete them, after a number of daysTypical useHot: live application data. Cool: recent backups. Cold: older backups. Archive: records kept for lawThe four tiers hold the data just as safely. Only the price and the speed of reading differ.

Archive is set on single blobs only. Lifecycle management moves blobs between tiers by rule.

Check yourself

Seven yearsone read in seven yearswaiting some hours for it is fine

A law firm must keep closed case files for seven years. They are read as shown, and a wait of several hours is acceptable. Which tier costs least?

Redundancy

Three copies at least, and the letters say how far apart

Primary regionzone 1zone 2zone 3Paired regionDurabilityLRSlocally redundant11 ninesZRSzone-redundant12 ninesGRSgeo-redundant16 ninesGZRSgeo-zone-redundant16 ninesEvery option keeps at least three copies. They differ in how far apart the copies are.LRS survives a failed disk or rack. ZRS survives the loss of a datacentre. GRS and GZRS add three more copiesin the paired region, so they survive a regional disaster. "Nines" is the durability over a year: 11 ninesmeans 99.999999999%. Each dot is one copy of your data.

LRS: one datacentre. ZRS: three zones. GRS and GZRS: plus three copies in the paired region.

Redundancy · Going deeper

Six options, compared

CopiesSurvivesRead the second region?CostsLRS3, one datacentrea disk or rack failingthere is noneleastZRS3, three zonesa datacentre failingthere is nonemoreGRS3 + 3 in the paira region failingonly after failovermore againRA-GRSas GRSa region failingyes, at any timemore againGZRS3 zones + 3 in the paira zone, or the regiononly after failovermostRA-GZRSas GZRSa zone, or the regionyes, at any timemost"RA" means read access: the copy in the second region can be read while the first is still healthy.Copies inside the primary region are written before the write is confirmed (synchronous). The copy to thepaired region follows a little later (asynchronous), so a regional disaster can lose the last few minutes.The paired region is fixed by Azure; you do not choose it.

RA means the second region can be read at any time, not only after a failover.

Moving files

Two tools copy on demand, one keeps things in step

AzCopya command: copies blobs and files up, down, or between accountsAzure Storage Exploreran app with windows and buttons, for browsing and dragging filesAzure File Synckeeps a Windows file server and an Azure file share the sameboth ways, all the timeAzure StorageAzCopy and Storage Explorer copy when you ask. File Sync keeps two places the same without being asked.AzCopy suits scripts and large transfers. Storage Explorer runs on Windows, macOS and Linux and uses AzCopyunderneath. Azure File Sync installs on a Windows Server: the office keeps its fast local file server, Azureholds the full copy, and files that are seldom opened can be kept in the cloud only.

AzCopy is a command, Storage Explorer an app, and File Sync a continuous two-way sync.

Moving files · Going deeper

Migration: Azure Migrate and Data Box

Azure Migrate: one place to plan and run a move to AzureDiscoverwhat you run todayAssesswhat it needs, and what it will costMigrateservers, databases, web apps, desktopsAzure Data Box: move the data by courierMicrosoft sends a deviceYou copy data to it on siteYou send it backMicrosoft uploads it for youUse Azure Migrate forMoving running systems: it finds them, sizes them and copies them acrossUse Data Box forTens of terabytes or more when the network is slow, costly or absentData Box alsoCarries data out of Azure, and is wiped after each jobMigrate moves workloads over the network. Data Box moves bulk data in a box.

Azure Migrate moves running systems over the network. Data Box moves bulk data by courier.

Check yourself

Primary regionzone 1zone 2zone 3Paired region

Each dot is one copy of the data. Which redundancy option is drawn?

Online or offline

When the upload would take weeks, send a box

Time to upload at 100 megabits a second, running day and night1 TB22 hours10 TB9 days50 TB46 daysAzure Data Boxthe time is the courier's, whatever the sizePast a certain size, sending disks by courier is faster than any upload.Bars are to scale: a terabyte is 8 million megabits, so 50 TB at 100 megabits a second is 46 days of a lineused for nothing else. Data Box is the offline option; AzCopy and Azure Migrate are the online ones. An examquestion signals Data Box with "limited bandwidth", "large amount of data" or "offline".

At 100 megabits a second, 50 TB takes 46 days. Azure Data Box takes courier time.

Online or offline · Going deeper

Clue words for storage

When the question saysThe service isBecause it"images, video, backups", "unstructured"Blob storageobjects of any kind"shared folder", "SMB", "mount as a drive"Azure Filesa file share"messages between application components"Queue storagedecouples the parts"disk for a virtual machine"Managed disksblock storage"rarely accessed, immediate retrieval"Cool or cold tieronline, cheaper to keep"kept for years, hours to retrieve is fine"Archive tieroffline, cheapest to keep"survive a datacentre failure, one region"ZRSthree zones"survive a regional outage"GRS or GZRSa copy in the pair"read from the secondary region"RA-GRS or RA-GZRSread access"limited bandwidth, large data, offline"Azure Data Boxshipped device"keep on-premises file server in sync"Azure File Syncserver and shareStorage questions give you the access pattern or the failure to survive. Match it to the tier or the letters.

Match the access pattern to a tier, and the failure to survive to a redundancy option.

Check yourself

Windows file serverin the office?Azure file share

A branch office must keep using its local file server, with the same files also held in Azure. What goes where the question mark is?

Lesson complete

You finished “Storage on Azure”

Answer the questions along the way to see your score here.

Open in a new tab