DEV Community

Chris McKelt
Chris McKelt

Posted on • Originally published at blog.mckelt.com on

Using Azure to setup a new blog and domain

Intro

Here is a quick way to setup a new WordPress blog with a custom domain on Azure (optionally using free using credits).

Azure Resources Overview

Resources used to setup the blog may be seen below. These were created within a single resource group called ‘blog’

1-resource-group-view

WordPress Setup

  1. After logging into Azure go the the marketplace and search for WordPress

2-wordpress-marketplace

  1. Click create and begin to enter the details for your blog. All resources below were created in a new resource group called ‘blog’

3-create-from-marketplace

  1. Create a new App Service Plan

2-new-app-service-plan

Here we are using the cheapest pricing tier that allows a custom domain: ‘B1 Basic’ Tier

spec-picker

  1. Configure a new database server using the ‘Basic’ pricing tier

database-server

pricing-tier

  1. After clicking the create button a new WordPress App Service will be deployed and available to configure on_ YourBlogSite.azurewebsites.net_

Navigate to the website and configure your WordPress instance.

english

  1. Next we will setup a custom website domain to use for the blog using App Service Domains. App Service domains are custom domains that are managed directly in Azure. They make it easy to manage custom domains for Azure App Service.

Create your App Service Domain and choose a TLD domain name for your website.

create-app-services-domain-1

  1. Enter your contact information required by GoDaddy for domain registration and Azure DNS to host the domains. In addition to the yearly domain registration fee, usage charges for Azure DNS apply. For information, see Azure DNS Pricing.

create-app-services-domain-2

  1. Create you App Service Domain, it may take a while for the DNS to propagate and be ready for use

app-service-domain-deployment-2

  1. Go to your App Service Domain and add a hostname binding pointing to the App Service that hosts your WordPress blog.

hostname-bindings

  1. You should now be able to browse to your custom domain and see your WordPress site. Thats it!

Conclusion

So we now have a WordPress website setup with a custom domain without leaving the Azure portal.

Next steps will be:

  • Create a free SSL certificate via Lets Encrypt to host the site under SSL
  • Follow Azure guidelines to improve WordPress performance

Please let us know how you go with setting up your own site.

Happy blogging!

Top comments (0)