Comparing Azure Storage Services
This lesson explains Blob Storage, Azure Files, Queue Storage, Table Storage and Azure Disk Storage, and how to match data to the right service.
Learning outcomes
After completing this lesson, you will be able to:
- Describe each Azure Storage service and its typical uses.
- Distinguish Blob Storage, Azure Files and Azure Disk Storage.
- Identify the appropriate storage service for a scenario.
Azure Blob Storage
Azure Blob Storage is an object storage solution for the cloud. It can store massive amounts of unstructured data, such as text or binary data, and unlike a file system it does not restrict the kind of data or require a fixed structure. Blob Storage is ideal for serving images or documents directly to a browser, storing files for distributed access, streaming video and audio, storing data for backup and restore, disaster recovery and archiving, and storing data for analysis.
Blobs are stored in containers within a storage account, and are accessed over HTTP or HTTPS through URLs, the REST API, Azure PowerShell, the Azure CLI or client libraries. There are three blob types: block blobs for most files, append blobs for data that is added to, such as logs, and page blobs for random read and write access, such as the disks behind VMs. Enabling a hierarchical namespace turns Blob Storage into Azure Data Lake Storage for big-data analytics.
Blob types
Azure Files
Azure Files offers fully managed file shares in the cloud that are accessible through the industry-standard Server Message Block (SMB) or Network File System (NFS) protocols. Shares can be mounted concurrently by cloud or on-premises deployments of Windows, Linux and macOS, in the same way as a traditional network drive. Typical uses include replacing or supplementing on-premises file servers, sharing configuration files between VMs, and moving existing applications that expect a file share to the cloud without rewriting them.
Azure file shares can be cached on Windows Servers with Azure File Sync, which is covered in the lesson on moving files. Access can be secured with identity-based authentication and with network rules.
Queue Storage, Table Storage and Azure Disk Storage
Azure Queue Storage stores large numbers of messages. Messages are added by one application component and retrieved and processed by another, which lets components work asynchronously: for example, a web front end adds an order message, and a back-end worker processes it when it can. A queue can hold millions of messages, each up to 64 KB, accessed over HTTP or HTTPS.
Azure Table Storage stores large amounts of structured, non-relational (NoSQL) data as entities made of key-attribute pairs, without a fixed schema. It suits data such as user profiles, device information or other metadata that needs fast lookup by key and does not need complex joins. Azure Cosmos DB for Table offers the same model with premium features.
Azure Disk Storage, or Azure managed disks, provides block-level storage volumes managed by Azure for use with Azure VMs. Conceptually they are the same as physical disks in an on-premises server, but virtualized and with built-in replication. Disks are attached to one VM at a time (shared disks are an exception) and are not accessed directly over HTTP by applications.
Choosing a storage service
The right service depends on the shape of the data and how it is accessed. The following table summarizes the services.
| Service | Data | Accessed by | Typical scenario |
|---|---|---|---|
| Blob Storage | Unstructured objects | HTTP/HTTPS, REST, SDKs | Images, video, backups, logs, data lakes |
| Azure Files | Files in folders | SMB, NFS, REST | Shared drives, lift-and-shift apps that expect a file share |
| Queue Storage | Messages | HTTP/HTTPS, SDKs | Decoupling application components |
| Table Storage | Structured NoSQL entities | HTTP/HTTPS, SDKs | Key-based lookups of flexible data |
| Azure Disk Storage | Block storage volumes | Attached to VMs | OS and data disks for virtual machines |
Which storage service?
Matching data to services
A company is moving an application to Azure. It has three needs: several VMs must read the same configuration files from a mapped network drive; uploaded product photos must be served directly to customers' browsers; and the web tier must hand orders to a back-end process that may be temporarily busy. Which storage service fits each need?
A mapped network drive that several VMs share is Azure Files, mounted over SMB or NFS. Photos served directly to browsers over HTTPS are unstructured objects, which suit Blob Storage. Handing orders to a back-end process that may be busy is asynchronous messaging, which suits Queue Storage. Azure Disk Storage would provide each VM with its own disk but not a shared drive.
Which storage service lets application components communicate asynchronously?
Show answer
Queue Storage. One component adds messages and another processes them when it can.
Exam Tips
Remember for the exam
- Unstructured objects such as images, video and backups: Blob Storage.
- Shared file shares over SMB or NFS: Azure Files.
- Asynchronous messages between components: Queue Storage. NoSQL key-attribute data: Table Storage.
- Disks for VMs: Azure Disk Storage (managed disks).