Creating and Securing Blob Containers
Containers organize blobs and control anonymous access. This lesson explains blob types, access levels and other container settings.
Learning outcomes
After completing this lesson, you will be able to:
- Describe the three blob types.
- Explain the container anonymous access levels and the account setting that governs them.
- Identify container features such as immutability policies and stored access policies.
Containers and blob types
A storage account holds any number of containers, and each container holds any number of blobs. Container names are 3 to 63 characters of lowercase letters, numbers and hyphens. Blob names can include slashes, such as 2026/10/report.pdf, which tools display as virtual folders; with a hierarchical namespace, the folders are real directories with their own permissions.
There are three blob types. Block blobs store text and binary data up to about 190 TiB, composed of blocks uploaded separately, and are used for most files. Append blobs are optimized for append operations such as logging. Page blobs store random-access files up to 8 TiB, such as the VHD files behind unmanaged disks. The blob type is set when the blob is created and cannot be changed.
Which blob type?
Anonymous access levels
Each container has an anonymous access level. Private (no anonymous access) is the default. Blob allows anonymous read access to blobs by URL but not listing the container. Container allows anonymous read access to blobs and listing the container's contents. These levels take effect only if the account setting Allow Blob anonymous access is enabled; it is disabled by default for new accounts and overrides the container setting, and Azure Policy can audit or deny accounts that allow it.
Authorized access uses Microsoft Entra ID with data roles assigned at account or container scope (Storage Blob Data Reader, Contributor or Owner), a SAS token, or the account key. Assigning a role at container scope limits a user or application to one container.
The following diagram shows the account setting and compares the container access levels for serving product images anonymously without allowing listing.

Choosing an access level
Other container settings
Containers have metadata (name-value pairs), stored access policies (up to five per container), leases that prevent deletion, and immutability policies for write-once, read-many (WORM) storage: a time-based retention policy prevents modification and deletion for a set period and can be locked for compliance, and a legal hold keeps data until the hold is removed. A default encryption scope can be set per container. The special $web container serves static websites, and $logs holds classic Storage Analytics logs.
Container settings
Public images
A website must display product images from a container to anonymous visitors through direct URLs. Visitors must not be able to list the other images in the container. The storage account was created with default settings. What must you configure?
Enable Allow Blob anonymous access on the storage account, because it is disabled by default, and set the container's anonymous access level to Blob. Container level would also allow listing, and Private would require a SAS or authentication for every image. If the organization's policy forbids anonymous access, an Azure CDN or Front Door with private origin access would be the alternative.
A container's access level is Container, but anonymous requests still fail. What is the likely cause?
Show answer
The account setting Allow Blob anonymous access is disabled, which overrides the container's access level.
Exam Tips
Remember for the exam
- Blob access level: read by URL only. Container access level: read and list.
- Anonymous access needs the account setting enabled; it is off by default.
- Restrict a user to one container: assign a Storage Blob Data role at container scope.
- WORM compliance: an immutability policy (time-based retention or legal hold).