Quickstart: Upload, download, and list blobs using the Azure portal

In this quickstart, you learn how to use the Azure portal to create a container in Azure Storage, and to upload and download block blobs in that container.

Prerequisites

If you don't have an Azure subscription, create a free account before you begin.

To create a general-purpose v2 storage account in the Azure portal, follow these steps:

  1. In the Azure portal, expand the menu on the left side to open the menu of services, and choose All services. Then, scroll down to Storage, and choose Storage accounts. On the Storage Accounts window that appears, choose Add.
  2. Select the subscription in which to create the storage account.
  3. Under the Resource group field, click Create new. Enter a name for your new resource group, as shown in the following image.

    Screen shot showing how to create a resource group in the portal

  4. Next, enter a name for your storage account. The name you choose must be unique across Azure, must be between 3 and 24 characters in length, and may contain numbers and lowercase letters only.

  5. Select a location for your storage account, or use the default location.
  6. Leave these fields set to their default values:

    • The Deployment model field is set to Resource manager by default.
    • The Performance field is set to Standard by default.
    • The Account kind field is set to StorageV2 (general-purpose v2) by default.
    • The Replication field is set to Locally-redundant storage (LRS) by default.
    • The Access tier is set to Hot by default.
  7. Click Review + Create to review your storage account settings and create the account.

For more information about types of storage accounts and other storage account settings, see Azure storage account overview. For more information on resource groups, see Azure Resource Manager overview.

Create a container

To create a container in the Azure portal, follow these steps:

  1. Navigate to your new storage account in the Azure portal.
  2. In the left menu for the storage account, scroll to the Blob Service section, then select Browse Blobs.
  3. Click the Add Container button.
  4. Enter a name for your new container. The container name must be lowercase, must start with a letter or number and can contain only letters, numbers, and the dash (-) character. See Naming and Referencing Containers, Blobs, and Metadata for more information about container and blob names.
  5. Set the level of public access to the container. The default level is Private (no anonymous access).
  6. Click OK to create the container.

    Screenshot showing how to create a container in the Azure portal

Upload a block blob

Block blobs consist of blocks of data assembled to make a blob. Most scenarios using Blob storage employ block blobs. Block blobs are ideal for storing text and binary data in the cloud, like files, images, and videos. This quickstart shows how to work with block blobs.

To upload a block blob to your new container in the Azure portal, follow these steps:

  1. In the Azure portal, navigate to the container you created in the previous section.
  2. Select the container to show a list of blobs it contains. In this case, since you created a new container, it won't yet contain any blobs.
  3. Click the Upload button to upload a blob to the container.
  4. Browse your local file system to find a file to upload as a block blob, and click Upload.

    Screenshot showing how to upload a blob from your local drive

  5. Upload as many blobs as you like in this way. You'll see that the new blobs are now listed within the container.

    Screenshot showing the list of blobs in the container

Download a block blob

You can download a block blob to display in the browser or save to your local file system. To download a block blob, follow these steps:

  1. Navigate to the list of blobs that you uploaded in the previous section.
  2. Select the blob to download.
  3. Right-click the More button (...), and select Download.

Screenshot showing how to download a blob in the Azure portal

Clean up resources

To remove the resources you created in this quickstart, you can simply delete the container. All blobs in the container will also be deleted.

To delete the container:

  1. In the Azure portal, navigate to the list of containers in your storage account.
  2. Select the container to delete.
  3. Right-click the More button (...), and select Delete.
  4. Confirm that you want to delete the container.

    Screenshot showing how to delete a container from the Azure portal

Next steps

In this quickstart, you learned how to transfer files between a local disk and Azure Blob storage using .NET. To learn more about working with Blob storage, continue to the Blob storage How-to.