logo logo

G2S Website Builder

G2S Documentation

Other Links

BETA!Our website & documentation is currently in development.

Create Azure Storage Account

The G2S Website Builder uses Microsoft Azure to host static websites, if we need dynamic content, we use Google Firebase to add the dynamic content to the static site.

Doing it this way means we get a lightning-fast server to run the website on, plus Microsoft handles the security for us, its easy to use and it is also as good as FREE, it costs around 1p to host 3 websites (depending on how much content you have on each website).

The following article explains how to set up your Azure Storage Account to host your static website, This article assumes you have already created your Microsoft Azure account and enabled your Azure Subscription.

Create Storage Account

Log in to the Azure Portal and from the home page click Create a Resource.

Azure Storage Account, Create New Resource

Select the storage account option if it is visible if it isn't visible simply search storage account and click Create.

Azure Storage Account, Create Storage Account

Select a Resource Group or click create new if you don't yet have any. In the example below I have created a new resource group and called it 'default'. Resource groups are used to group Azure services.

Azure Storage Account, Create Resource

On the next page, enter a unique name for the storage account, The name must be unique across all existing storage account names in Azure.

Select the appropriate server location, This isn't massively important as we will be delivering the website to our visitors via Cloudflare's CDN (Content delivery network).

The 'Account Kind' Option MUST be set to 'StorageV2 (general purpose v2).

Click the 'review + create' button.

Azure Storage Account, Create Storage Account Configuration

If everything went well you will see a message saying validation passed, click 'Create'

Azure Storage Account, Create Storage Account Configuration Pass

After a couple of minutes or less, your storage container will be ready, click the 'Go to resources' button.

Azure Storage Account, Create Storage Account Development Complete

Click the 'Static website' tab and under Static website, select enabled.

In the Index document name field, enter 'index.html'

In the Error document path, enter '404.html'

Click Save.

Azure Storage Account, Create Storage Account Static Website

Now if go to the Storage Explorer tab and drop down the Blob Containers, you will see a container called '$web', this is the root directory of your website.

Azure Storage Account, Storage Explorer Tab

Now, go to the Access Keys tab. Here you will see two keys, each key contains a key and a connection string. We are interested in the connection string. Copy the connection string so we can paste it in the G2S Website Builder and allow the G2S access to the storage account.

Azure Storage Account, Access Key

Now, in the G2S Website Builder within your website, open website settings and add a new domain by clicking the little + button next to the domain dropdown.

Azure Storage Account, G2S Website Settings Add Domain

Next, in the popup dialogue, enter the domain you will be using with this storage account and click create. Include www. and do not include Hypertext Transfer Protocol (HTTP).

Azure Storage Account, G2S Website Settings Enter Domain

Now paste the access key we copied earlier into the Connection String field and click save.

Azure Storage Account, G2S Website Settings Connection String

Now if we click the publish button we will see a slide down progress window, click the publish button to begin the upload. Note that once it's uploaded we will see a visit online button, this button will take you to the domain we entered earlier. We will configure the domain on the next page.

Azure Storage Account, G2S Publish Website

Now if we go back to Azure within our storage account for the website and go to the Storage Explorer tab, drop down the Blob Containers and click the $web container, we will now see our website.

Azure Storage Account, Storage Explorer Tab View Website

Now we can view the website online even before we configure a custom domain, head over to the Static Website tab and copy the Primary endpoint URL.

Azure Storage Account, Static Website Tab With Endpoint

Paste the URL in a new tab and you should see your published website. Next, we will configure a custom domain.

Azure Storage Account, Visit Website Online

Next, we will configure a custom domain.