Overview
This document provides information on managing access to your Azure Blob Storage containers and blobs. This includes configuring access levels, setting permissions, and understanding different authentication methods.
Access Levels
Azure Blob Storage supports various access levels to control who can access your blobs. These levels are:
- Private: Only the account owner can access the blob.
- (Read-only) Public: Anyone can read the blob.
- (Read-write) Public: Anyone can read and write to the blob.
- Off:** The blob is not accessible to anyone.
Setting Blob Access Levels
You can set the access level of a blob when you create it or modify an existing blob.
// C# Example
BlobClient blobClient = new BlobClient(containerName, blobName);
blobClient.SetAccessTier(BlobAccessTier.ReadOnly);
Authentication
Azure Blob Storage supports several authentication methods:
- Shared Access Signatures (SAS): Generate a signed URL to access a blob without needing an Azure account.
- Azure Active Directory (Azure AD): Use Azure AD identities for authentication.