Creating and using the root container for blobs

The Azure Blob service supports a simple two-level hierarchy for blobs. There is a single level of containers, each of which might contain zero or more blobs. Containers might not contain other containers.

In the Blob service, a blob resource is addressed as follows:

http://{account}.blob.core.windows.net/{container}/{blob}

The {account}, {container}, and {blob} parts represent the names of the storage account, container, and blob, respectively.

This addressing convention works for most uses of blobs. In certain situations, we need to place content inside the root space. Microsoft added support for a root container named $root to the Blob service so that it could host content.

Tip

When using Silverlight, ...

Get Microsoft Azure Development Cookbook Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.