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
- Log in to your Azure Portal.
- On your dashboard or homepage, select the storage account you previously created.
Step 2: Navigate to Containers
- 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
- Click on the “+ Container” button at the top of the Containers page.
- This action will open the “Create container” form.
- Assign a name to your container.
- The container name should be all lowercase.
- 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).
- Once ready, click OK to create the container.
- Your container will now be listed in the Containers section.
Step 4: View Container Properties
- Click on the container you created.
- This will show container properties such as the URL, last modified date, and lease status.
- 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
- Inside your container, click “Upload” to add files.
- Select a file from your device by clicking the “Select file” option.
- For this example, we’ll upload a JPEG file.
- (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.
- When ready, click “Upload” to add the blob.
Step 6: Verify Upload Completion
- A notification will appear once the upload completes.
- Refresh the portal if your blob doesn’t appear immediately.
Step 7: Access and Manage Blob Properties
- Once uploaded, you can view your blob’s access tier, blob type, properties, and URL.
- 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.