Your Page Title
🔍

    Creating a container and adding a blob to the container

    Here’s a step-by-step guide to creating a container and uploading a blob in Azure Blob Storage using the Azure Portal:

    Prerequisites

    • An existing storage account on Azure.

    Step 1: Access Your Storage Account

    1. Log in to your Azure Portal.
    2. On your dashboard or homepage, select the storage account you previously created.

    Step 2: Navigate to Containers

    1. In your storage account’s menu, find and click on “Containers”.
      • This section allows you to create and manage containers for your blobs.

    Step 3: Create a New Container

    1. Click on the “+ Container” button at the top of the Containers page.
      • This action will open the “Create container” form.
    2. Assign a name to your container.
      • The container name should be all lowercase.
    3. Choose the access level for the container:
      • Public access options include Container (for public read access) and Blob (for public read access to blobs only).
    4. Once ready, click OK to create the container.
      • Your container will now be listed in the Containers section.

    Step 4: View Container Properties

    1. Click on the container you created.
      • This will show container properties such as the URLlast modified date, and lease status.
    2. Here, you can also add metadata to the container as key-value pairs to help identify it.

    Step 5: Upload a Blob to the Container

    1. Inside your container, click “Upload” to add files.
    2. Select a file from your device by clicking the “Select file” option.
      • For this example, we’ll upload a JPEG file.
    3. (Optional) Define Blob Type:
      • In the Advanced section, you can specify the blob type (e.g., Block Blob, Append Blob, Page Blob).
      • Choosing a blob type is especially useful for optimizing performance when uploading large files, as block blobs support parallel uploads.
    4. When ready, click “Upload” to add the blob.

    Step 6: Verify Upload Completion

    1. A notification will appear once the upload completes.
    2. Refresh the portal if your blob doesn’t appear immediately.

    Step 7: Access and Manage Blob Properties

    1. Once uploaded, you can view your blob’s access tier, blob type, properties, and URL.
    2. The menu drawer for each blob allows you to:
      • View/Edit the blob.
      • Download the blob.
      • View blob properties.
      • Create/View snapshots for backup purposes.