Create a container and upload a file

Azure Portal, Hands On5 minutesFree tierSteps checked 23 October 2026By Cloud Hands On

In this task you'll upload a file to blob storage.

Blobs are files of any kind: pictures, videos, backups, logs. They live in containers, which are like top-level folders inside a storage account.

Every blob gets its own web address. Whether anyone can open that address depends on the permissions you set, and private is the default.

Example. Ironbridge Payments saves each night's transaction report as a blob in a container called reports, named by date, so finance can find any day's report later.

Before you start

You need: Contributor, or Storage Blob Data Contributor to use Entra sign-in. Time: 5 minutes.

Where to look

  1. Storage accounts
  2. your account
  3. Containers
  4. + Container

Steps

  1. Open your storage account and select Containers under Data storage.
  2. Select + Add container (or + Container), name it docs, leave the access level as Private, and select Create.
  3. Open the docs container and select Upload.
  4. Choose a small file from your computer, such as a text file, and select Upload.
  5. Select the uploaded file to see its properties, including its URL.Open the URL in a new browser tab: you'll get an error, because the container is private. That's what you want.
  6. Use Download on the file's page to get it back.

Commands

# Upload using your Entra sign-in (needs Storage Blob Data Contributor on the account)
az storage container create --account-name <account> --name docs --auth-mode login

az storage blob upload --account-name <account> --container-name docs \
  --name hello.txt --file ./hello.txt --auth-mode login

# List what's in the container
az storage blob list --account-name <account> --container-name docs \
  --auth-mode login --output table

Watch out for

Cost
A few small files cost nothing or a fraction of a penny. Large files, frequent downloads and data leaving Azure add up.
Security
The portal can use the account key or your Entra account to show data. If it says you don't have access, you need a data role such as Storage Blob Data Reader, even as Owner.
Common mistakes
Setting a container to public to share one file. Use a SAS link instead (next task). Uploading personal or sensitive files to a practice account.

Clean up

  1. Containers
  2. docs
  3. Delete

Keep the file for the SAS task. Afterwards, tick the docs container and select Delete, or remove everything with the resource group at the end of this section.

Words to know

Container
A folder-like group of blobs inside a storage account.
Blob
Any file stored in Azure blob storage.
Storage browser
A page in the portal for looking through and managing everything in a storage account.

Tick off each step and track your progress in the guide.

Open this task in Azure Portal, Hands On

Keep going