Create a WordPress website hosted on Azure

This article is deprecated. Check out the updated version.

In this five-part tutorial, you will learn how to create and configure a WordPress website hosted on Microsoft Azure and connect a secure custom domain to it. In the first part of this tutorial series, you will learn how to create a new resource in Azure and install WordPress. To complete the exercise, you will need an Azure subscription.

We are going to create a WordPress website hosted on Azure in less than five minutes. Therefore, we won’t write any code and will use instead one of the WordPress applications from the Azure Marketplace.

Create a WordPress website

WordPress is a free and open-source content management system. It provides powerful website building features that help you create and publish your websites easily.

  1. Sign in to Azure Portal, expand the left navigation panel and select Create a resource.

    Create a resource on Azure Portal
  2. In the Azure Marketplace, search for WordPress and select the default WordPress option.

    Search for WordPress
  3. Then click Create to build the app.

    Create a WordPress app
  4. Configure the new WordPress app. Select:

    • App name: It should be unique and will be part of the domain name (.azurewebsites.net).
    • Subscription.
    • Resource Group: Click Create new and enter the name of the new resource group.
    • Database Provider: We are going to use Azure Database for MySQL.
    Configure WordPress app
  5. The next step is to configure the App Service plan. Select App Service plan/Location. You can either use the existing plan or create a new one. Select Create new.

    Configure App Service plan
  6. In the App Service plan tab, enter a name for the new app service plan and choose a location.

    Create a new App Service plan
  7. Select the Pricing tier to see the available types of services plans and their features.

  8. In Spec Picker, select the Dev/Test tab and select the F1 (free) pricing tier. Then click Apply.

    Select App Service plan pricing tier
  9. Back on the New App Service plan tab, select OK to create and apply the new service plan.

  10. In the WordPress app configuration tab, select Database. In the Database server tab, enter the following information:

    • Server name.
    • Server admin login name.
    • Password.
    • Pricing tier: We are going to use Basic, 1 vCore(s), 5 GB. Select the Pricing tier. Then select the Basic tab, choose 1 vCore and 5 GB storage and click OK.
    • Database name.
    Create a database
  11. Then click OK.

  12. Select Create and wait for the app to be created (it may take several minutes). Once the deployment is complete, select Go to resource.

    Go to resource

Complete the WordPress Configuration

  1. In the Overview tab, click on URL (<app-service-name>.azurewebsites.net) to go to your WordPress website and complete the WordPress configuration.

    Azure App Service
  2. If your website has been successfully set up, you will see the default WordPress screen. Select language and location and enter a site name, a username, and a password.

    Install WordPress
  3. Once the setup is completed, login to WordPress (https://<app-name>.azurewebsites.net/wp-admin). You are now ready to add content in your website!

Next steps

The next step is to start building your websites. Install a theme, remove the existing WordPress parts (Hello World post, comment and page, unused plugins and themes) and configure basic WordPress settings (tagline, timezone and date format, permalinks and discussion settings).

In the Tools tab, the Site Health shows important information about your WordPress configuration and recommended improvements. One common issue is that your website is running on an old version of PHP. In the next tutorial, you will learn how to update the PHP version via the Azure Cloud Shell.

You May Also Like