Create an Azure Storage account

Now that you have a static website, let's deploy it to the cloud using Azure Storage. Azure Storage is simple file store/CDN with a built-in web server which makes it great for hosting static sites extremely fast.

Create your account

In this section, we will setup our Azure Storage account and blob container.

  1. Login to Azure Portal

  2. Select Storage accounts from the left side menu bar.

    Note: If you don't see Storage accounts, select All services from the top of the menu, find it in the full list, and star it to dock it in your menu bar.

    Sign into Storage Explorer

  3. Click either + Add or Create Storage Accounts to create a new account.

    Create new storage account

  4. Fill in a Name for your storage account and the Resource group.

    Note the storage account name must be globally unique, so just add some random numbers to the end if the name you want is taken.

  5. Select StorageV2 (general purpose v2) for Account kind

    Static website hosting is only available for accounts using GPv2.

    Add name and Resource Group

  6. When you're ready, click Create and wait for the account to be created.

Create your storage

  1. When account creation is complete, you will get a notification (the bell icon in the top menu bar).

    Click Go to resource.

  2. Select Static Website (preview) from the left side menu bar and enable static site hosting.

Note: Be sure to include the name of your index document.

Confirm container

Your site URL

Within the Static Website (preview) configuration options, copy the URL for your website. This will be the primary endpoint for your app.


With Static Website hosting enabled, your configured index document will be served by default along with all of your static assets.

I created a storage container