DEV Community

Cover image for hosting a public website using azure blob storage
samuel eze
samuel eze

Posted on

hosting a public website using azure blob storage

 Setting up a public website using azure blob storage can be easy with the following steps.

what is azure blob account? An Azure Blob Storage account is just a cloud space from Microsoft where you can store files of any type—like documents, pictures, or videos—so you can access them anytime, anywhere. with the following steps we will create a public website using azure blob storage.

  • step 1 on azure portal search bar, type and click on storage account.
    search bar

  • step 2 click on +create

create

-** step 3** create a resource group also create a unique storage name

group name

-** step 4** click on the review + create icon

step 4
wait on it to validate then...

-step 5 after validation is done to make sure everything is correct, click on the create icon.

create

  • step 6 after storage has been deployed, click on the resource icon.

resource icon

  • step 7 on the overview page, click on the bob soft delete icon ** and enable it for 21 days. now what does **blob soft delete mean? blob soft delete is like a recycle bin for your cloud files. When you delete or overwrite a blob (that’s just Azure’s word for a file), it doesn’t vanish right away. Instead, Azure quietly tucks it away for a set number of days that you choose (anywhere from 1 to 365). During that time, you can bring it back if you realize you made a mistake. Once that grace period runs out, the blob is gone for good.

blob
afteer enabling for 21 days, click on the save icon

blob

-step 8 on the overview page, click on redundancy blade and make sure it is on** read-access geo-redundant storage ** now what is redundancy in azure? Redundancy in cloud computing means duplicating critical systems, data, and infrastructure to ensure reliability and availability even if part of the system fails. In practice, it prevents downtime and data loss by automatically switching to backup resources when a failure occurs.

redundancy

  • step 9 on the overview page, click on the configuration blade, you will see allow blob anonymous access go ahead and click on enable the click on save

configuration

  • step 10 on the overview page, click on the** data storage blade** under the data storage blade, click on containers then go ahead to click on + add container

container

-** step 11*create a unique name for the **container* and click on the create icon below

container

  • step 12 after creating the container, on the overview page, click on the container you created and click on the** change access level** icon

change access level

  • step 12 after clicking on the change access level icon, click on the space bar and make sure it is on blobs(anonymous read access for blobs only) click on the ok icon

ok icon

congratulation we just hosted a public website using azure blob storage

Top comments (0)