Lesson 1 of 5 Azure Blob Storage Data Management

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.

Sort into groups

Which blob type?

Exam skills 2.3.2

Choose the blob type for each kind of data.

Log in to try this activity Interactive activities are free with an account.

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.

Serving product images anonymously without allowing listing. Allow Blob anonymous access is disabled on new accounts, so it is enabled first; the container's access level is then set to Blob, which allows reading blobs by URL but not listing. Container level would allow listing, and Private would require a SAS or authentication.
The scenario is illustrative.
Scenario questions

Choosing an access level

Exam skills 2.3.2

Decide which access level or authorization method fits each requirement.

Log in to try this activity Interactive activities are free with an account.

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.

Match the pairs

Container settings

Exam skills 2.3.2

Match each requirement with the container feature that meets it.

Log in to try this activity Interactive activities are free with an account.
Worked example

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.

Check yourself

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).