Using Azure to setup a new blog and domain
Tags: azure, wordpress, blog
Published: 2021-01-25 10:57:55

---
title: Using Azure to setup a new blog and domain
published: true
date: 2021-01-03 14:41:10 UTC
tags: azure,wordpress,Azure,Blog
canonical_url: 
---

## 

# Intro

Here is a quick way to setup a new WordPress blog with a custom domain on Azure (optionally using [free using credits](https://azure.microsoft.com/en-au/free)).

### 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](http://blog.mckelt.com/wp-content/uploads/2021/01/1-resource-group-view_thumb.png "1-resource-group-view")](http://blog.mckelt.com/wp-content/uploads/2021/01/1-resource-group-view.png)

# 

## WordPress Setup

##### **<font face="Segoe UI"></font>**

> 1. After logging into Azure go the the [marketplace](https://portal.azure.com/?quickstart=true) and search for WordPress

[![2-wordpress-marketplace](http://blog.mckelt.com/wp-content/uploads/2021/01/2-wordpress-marketplace_thumb.png "2-wordpress-marketplace")](http://blog.mckelt.com/wp-content/uploads/2021/01/2-wordpress-marketplace.png)

> 2. 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](http://blog.mckelt.com/wp-content/uploads/2021/01/3-create-from-marketplace_thumb.png "3-create-from-marketplace")](http://blog.mckelt.com/wp-content/uploads/2021/01/3-create-from-marketplace.png)

> 3. Create a new _App Service Plan_
> 
> _[![2-new-app-service-plan](http://blog.mckelt.com/wp-content/uploads/2021/01/2-new-app-service-plan_thumb.png "2-new-app-service-plan")](http://blog.mckelt.com/wp-content/uploads/2021/01/2-new-app-service-plan.png)_
> 
> Here we are using the cheapest pricing tier that allows a custom domain: ‘B1 Basic’ Tier
> 
> [![spec-picker](http://blog.mckelt.com/wp-content/uploads/2021/01/spec-picker_thumb.png "spec-picker")](http://blog.mckelt.com/wp-content/uploads/2021/01/spec-picker.png)
> 
> 4. Configure a new database server using the ‘Basic’ pricing tier
> 
> [![database-server](http://blog.mckelt.com/wp-content/uploads/2021/01/database-server_thumb.png "database-server")](http://blog.mckelt.com/wp-content/uploads/2021/01/database-server.png)
> 
> [![pricing-tier](http://blog.mckelt.com/wp-content/uploads/2021/01/pricing-tier_thumb.png "pricing-tier")](http://blog.mckelt.com/wp-content/uploads/2021/01/pricing-tier.png)
> 
> 5. After clicking the create button a new WordPress App Service will be deployed and available to configure on_<font face="Courier New"> YourBlogSite.azurewebsites.net</font>_
> 
> Navigate to the website and configure your WordPress instance.
> 
> [![english](http://blog.mckelt.com/wp-content/uploads/2021/01/english_thumb.png "english")](http://blog.mckelt.com/wp-content/uploads/2021/01/english.png)
> 
> 6. Next we will setup a custom website domain to use for the blog using [App Service Domains](https://docs.microsoft.com/en-us/azure/app-service/manage-custom-dns-buy-domain).   
> App Service domains are custom domains that are managed directly in Azure. They make it easy to manage custom domains for [Azure App Service](https://docs.microsoft.com/en-us/azure/app-service/overview).
> 
> [Create your App Service Domain](https://portal.azure.com/?quickstart=true#create/Microsoft.Domain) and choose a TLD domain name for your website.
> 
> [![create-app-services-domain-1](http://blog.mckelt.com/wp-content/uploads/2021/01/create-app-services-domain-1_thumb.png "create-app-services-domain-1")](http://blog.mckelt.com/wp-content/uploads/2021/01/create-app-services-domain-1.png)
> 
> 7. 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](http://blog.mckelt.com/wp-content/uploads/2021/01/create-app-services-domain-2_thumb.png "create-app-services-domain-2")](http://blog.mckelt.com/wp-content/uploads/2021/01/create-app-services-domain-2.png)
> 
> 8. 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](http://blog.mckelt.com/wp-content/uploads/2021/01/app-service-domain-deployment-2_thumb.png "app-service-domain-deployment-2")](http://blog.mckelt.com/wp-content/uploads/2021/01/app-service-domain-deployment-2.png)
> 
> 9. Go to your App Service Domain and add a hostname binding pointing to the App Service that hosts your WordPress blog.
> 
> [![hostname-bindings](http://blog.mckelt.com/wp-content/uploads/2021/01/hostname-bindings_thumb.png "hostname-bindings")](http://blog.mckelt.com/wp-content/uploads/2021/01/hostname-bindings.png)
> 
> 10. 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](https://techcommunity.microsoft.com/t5/azure-database-for-mysql/improving-your-wordpress-workloa-performance-on-azure-database/ba-p/1418717) WordPress performance
> 
> Please let us know how you go with setting up your own site.
> 
> Happy blogging!