How to Create a WordPress Site with Azure App Service

Photo of author

By Victor Ashiedu

Published

Do you need help building a WordPress site on Azure? This article walks you through creating a WordPress site with Azure App Service.

Overview

Azure App Service is a Platform as a Service (PaaS) platform that includes WordPress. With Azure’s WordPress PaaS, you do not need to worry about the underlying infrastructure hosting your site.

All you do is deploy the app, and Microsoft Azure takes care of the VMs, storage, Virtual Networks, and gateways.

When you create a WordPress site with the Azure App Service, it creates the Azure resources shown in the screenshot below.

When you create a WordPress site with the Azure App Service, it creates the following resource

Step 1: Deploy WordPress Site on Azure App Service

  1. Open portal.azure.com and sign in. After signing in, click the menu and select “Create a new resource.”
Create a WordPress site with Azure App Service
  1. Then, search “wordpress app service” and select it.
Deploy WordPress Site on Azure App Service
  1. Once the Azure Marketplace opens, click the “Create” drop-down on the “WordPress on App Service” resource by Microsoft – then choose “WordPress on App Service.”
Deploy WordPress Site on Azure App Service
  1. On the new app page, select a subscription and a Resource group. If you do not have an editing Resource group, click “Create new” to create a new one.

    Additionally, select the Azure Region to host the name and the app’s name. Also, choose an Azure WordPress hosting plan.

    Azure selects the “Standard” hosting plan by default. To review the hosting plans and choose a different one, click “Change plan.”
The second screenshot below shows the price comparison table for available Azure WordPress hosting plans as of July 2, 2023. Some parts of the comparison table are hidden in the image. But the parts shown highlight the differences in the hosting plans. To use the Azure Monitor autoscaling feature and Diagnostic setting (discussed later), you must use at least the “Standard S1” hosting plan.
  1. After that, scroll down to the “WordPress setup” section and enter the required details. When you finish, click “Next: Advanced >.”
Note the admin email, username, and password, as you’ll need them to sign in to your site.
  1. The advanced page of the wizard offers the option to use Azure CDN or Azure Front Door.
Azure Front Door was on Preview when I wrote this guide in July 2023
Create a WordPress site with Azure App Service

Additionally, enabling Azure Blob Storage is available on the Advanced tab. This is optional but recommended for production sites.

There is also the option to configure the Virtual Network (VNet) for the WordPress site App Service. If you do not have an existing VNet or do not want to use existing ones, Azure creates a new one.

  1. After adding all the app details, unless you want to add tags, click “Review + create.” Then, wait for Azure to validate your configuration.
Create a WordPress site with Azure App Service
  1. Finally, to deploy the WordPress site with Azure App Service, click Create. Then, wait for the app to be created by the Azure portal.
Create a WordPress site with Azure App Service

When the app deployment completes, click “Go to resource,” then proceed to the next step below.

Step 2: Add a Custom Domain and a Managed Certificate

When you set up a WordPress website on App Service, the default domain of the website is <appname>.azurewebsites.net.

However, you can modify this to a custom domain such as DomainName.com.

The following subsections explain the steps to complete this task.

1 of 3: Add a Custom Domain to the Azure App

  1. On the left pane of the application, choose “Custom domains.” After that, click “+ Add custom domains.”
Create a WordPress site with Azure App Service
  1. Then, on the “Add custom domain” flyout, select “All other domain services.” After that, enter the domain name in the “Domain” field.

    Once you do that, Azure displays DNS records you must create to verify that you own the domain. These DNS records are displayed on the “Domain validation” section of the flyout.
DO NOT click Validate yet. Leave this page open. Then, sign in to your domain’s registrar on a new browser tab. See 2 of 4 below for the detailed steps.

2 of 3: Create DNS Records on the Domain’s Registrar

Cloudflare manages the DNS records for Pixatexel.com. So, I’ll sign in to Cloudflare to create the verification DNS records.

The “Domain validation” section of the Azure custom domain flyout requests me to create CNAME and TXT records.

If you’re using Cloudflare when you add the records, turn “Proxy status” off.
Create a WordPress site with Azure App Service

After creating the DNS records, proceed to 3 of 4 below.

3 of 3: Validate and Complete the Custom Domain Registration

  1. Return to the Azure App Service page for your WordPress website. At the bottom of the “Add custom domain” flyout, click “Validate.”
Create a WordPress site with Azure App Service
  1. Azure will look for the records; if it finds them, the validation will return “passed.” To finish the process, click “Add.” After that, wait for Azure to add the custom domain and register the SSL certificate.

Once the custom domain registration completes, the domain will be listed.

Create a WordPress site with Azure App Service

Frequently Asked Question

1. Can I create a website with Azure?

Yes. Azure App Service allows you to create and host web applications in multiple programming languages.

The beauty of Azure App Service is that it is a PaaS offering, meaning you do not need to manage infrastructure like VMs.

2. How much does it cost to host a WordPress website on Azure?

There is no straightforward answer to this question, as the cost of hosting a WordPress website on Azure depends on multiple factors.

Firstly, the cost depends on the WordPress app hosting tier you choose. Additionally, the cost is affected by other configurations.

Having said all that, you can estimate the cost of your WordPress site by using the Azure Pricing Calculator.

3. Is Azure good for hosting WordPress?

Yes. Azure is excellent for hosting WordPress. However, if your WordPress website does not drive much traffic, it may be better to use low-cost WordPress hosting services.

4. How to create a website in Microsoft Azure from the Azure Portal?

a) Sign in to portal.azure.com, click on the menu, and choose “Create a resource.”
b) Next, search “wordpress on app service” and select it from the results.
c) Click Create and complete the app creation process.
d) After creating the WordPress app, open it and click “Custom domains.” After that, click “+ Add custom domains.”
e) Enter a custom domain for your WordPress website, verify it, and make it the default.

5. How do I host a simple website on Azure?

Follow Microsoft’s guide, host a static website on Blob Storage to host a simple website on Azure.

Conclusion

The Azure App Service is a great way to host a WordPress website without an Azure VM or managing infrastructure. All that is required is creating a WordPress on App Service app.

After that, add and verify a custom domain for your WordPress website. Finally, open the site and complete the WordPress installation.

We believe you have been able to host your WordPress site on Azure by following the steps in this guide.

The “Leave a Reply” form at the bottom of this page awaits your input – feel free to share your thoughts.

You could also use the “Was this page helpful?” buttons below to give us your feedback.

About the Author

Photo of author

Victor Ashiedu

Victor is the founder of InfoPress Media, publishers of Ilifeguides and Itechguides. With 20+ years of experience in IT infrastructure, his expertise spans Windows, Linux, and DevOps. Explore his contributions on Itechguides.com for insightful how-to guides and product reviews.

Related Articles

Get in Touch

We're committed to writing accurate content that informs and educates. To learn more, read our Content Writing Policy, Content Review Policy, Anti-plagiarism Policy, and About Us.

However, if this content does not meet your expectations, kindly reach out to us through one of the following means:

  1. Respond to "Was this page helpful?" above
  2. Leave a comment with the "Leave a Comment" form below
  3. Email us at [email protected] or via the Contact Us page.

Leave a comment