Setting and Retrieving Properties and Metadata

Complete the full lesson to earn 25 points — 50 with Pro

Work through each section, then tap “Mark as Complete” on the last one.

Section 1 of 10

✦ Skip the page breaks, the wait, and see fewer ads — read each lesson on a single page with Pro

Module: Develop for Azure Storage

Section: Azure Blob Storage Solutions

Lesson: Setting and Retrieving Properties and Metadata

Introduction: Understanding the Context of Blob Metadata

When working with Azure Blob Storage, it is easy to view the service simply as a digital warehouse where files are dropped, stored, and retrieved. However, treating Blob Storage as a simple "dumb" file system is a missed opportunity for developers. Every blob in Azure is not just a stream of bytes; it is an object with a rich set of associated data that defines how that blob behaves, how it is accessed, and what it represents in the context of your application. This associated data is divided into two distinct categories: Properties and Metadata.

Properties are system-defined values. These are pieces of information that the Azure Storage service itself manages and maintains. Examples include the blob's content type (MIME type), the time it was last modified, its ETag, and its lease state. You cannot create new properties, and you cannot rename existing ones. You can only read them or, in specific cases, modify their values to influence how the storage service handles the blob.

Metadata, on the other hand, is user-defined. This is your canvas to attach custom information to a blob. If you are storing a collection of user-uploaded profile pictures, you might use metadata to store the UserID, the UploadDate, or the OriginalFilename. Because metadata is stored as key-value pairs, it provides a flexible way to index or categorize your blobs without needing an external database. Understanding how to interact with these two data structures is foundational for any developer building on the Azure platform.


Section 1 of 10

Reach the last section to complete this lesson and earn points — you're on section 1 of 10.