DEV Community

Cover image for Azure Blob Storage.
Otitoju Mercy
Otitoju Mercy

Posted on

Azure Blob Storage.

Azure Blob Storage is a service for storing large amount of unstructured object data in the cloud that doesn't adhere to a particular data model or definition, such as text or binary data. Blob stands for Binary Large Object. Blob storage is also referred to as object storage or container storage.

Task 1: Create a storage account.

  • Create a storage account in your region with locally redundant storage.
  • Verify the storage account was created.

Task 2: Work with blob storage:

  • Create a private blob container.
  • Upload a file to the container.

Task 3: Monitor the storage container.

  • Review common storage problems and troubleshooting guides.
  • Review insights for performance, availability, and capacity.

**Azure **Blob Storage uses a container resource to group a set of blobs. A blob can't exist by itself in Blob Storage. A blob must be stored in a container resource.

Task 1: Create a storage account.

  • We would first create a new Storage Account.
  • From the Azure portal home page, click the Menu button in the upper left corner.
    Image description

  • Select Storage Account.
    Image description

  • Click Create.
    Image description

  • On the Basics tab of the Create A Storage Account blade, under Resource group, click Create New.
    Image description

  • Provide a name for the resource group, and then click OK.
    Image description

  • Scroll down to continue.

  • Fill in the instance details as shown to on your screen. Leave the defaults for everything else.

  • Storage account name:> storageaccountxxx(use your Deployment ID)

  • Performance: Standard

  • Redundancy: Locally redundant storage (LRS)

  • Click *Review + Create *

Important note: Most Azure resources requires unique names. Throughout these steps, you will see placeholder words such as > "DeploymentId"
as part of resource names. In a real world scenario ,you would replace these words with your unique ID or use the naming convention determined by your organization .For the purpose of this guide ,we are using deployment ID 507268.

Image description

  • When you see the notification that validation passed, click Create to create the storage account.

Image description

  • The new storage account is now listed.

Task 2: Work with Blob Storage.

  • After the deployment is complete, click_ Go To Resource_.
    Image description

  • In the left menu, under Data Storage, click Containers.
    Image description

  • Click** Container** and give the new container a name. When done, click Create
    Image description

  • Click on the name box.

  • Select Private and click_ Create_.
    Image description

  • Click the container we just created, and then click Upload
    Image description

  • Browse to a file in my Local computer.
    Note: You can create an empty . txt file or use the existing file. Consider choosing a file of a small size to minimize the upload time.

  • In this case, select an image files.
    Image description

  • Review the available option, and then click Upload.
    Image description

  • Once the file are uploaded, right click a file and notice the options, including View/edit, Download, Properties and Delete.

  • Select Properties.
    Image description

  • Review the properties and the available actions ,and then close the window.

Image description

  • Return to the storage account page.

  • Storage account can be used for other purposes, such as file shares, queues and tables .From the left menu, click File shares.

  • Review the options ,and then do the same for Queues and Tables.

## Task 3: Monitor the storage account

  • Click Diagnose and solve problems.

Image description

  • Here you can explore some of the most common storage problems and find tools. Notice there are multiple trouble shooters.

  • Click Troubleshoot to look at an example.

Image description

  • Close the window.

  • Next, scroll down to the Monitoring section and click Insights

Image description

Notice there is information on Failures, Performance, Availability and Capacity. Your information will be different.

Hosting a static website on Azure Blob Storage offers a scalable, secure, and cost-effective solution. By following these steps, you can deploy your static website and take advantage of Azure's global infrastructure. With Azure Blob Storage, you can focus on developing your website without worrying about the underlying infrastructure.

Additional Tips and Best Practices

  • Use Azure Storage Explorer to manage your containers and blobs.
  • Use Azure Pipelines to automate your deployment process.
  • Use custom domains and SSL certificates for a professional touch.
  • Monitor your website's performance using Azure Monitor.

By following this comprehensive guide, you can successfully host your static website on Azure Blob Storage and enjoy the benefits of a scalable and secure online presence.

Top comments (2)

Collapse
 
phillip_ajifowobaje_68724 profile image
Phillip Ajifowobaje

Awesome job. Very detailed write up.

Collapse
 
donhadley22 profile image
Bernard Chika Uwaezuoke

Good way to go! Keep it up. Great write-up.