Create a WordPress site

Azure Public Test Date Azure Public Test Result

Azure US Gov Last Test Date Azure US Gov Last Test Result

Best Practice Check Cred Scan Check

Bicep Version

Deploy To Azure Deploy To Azure US Gov Visualize

Create a WordPress site (and its MySQL database) on a Container Instance

This template creates a WordPress website and its MySQL database on a Container Instance. The WordPress site content and MySQL database are persistently stored on an Azure Storage File Share.

Tags: Azure Container Instance, WordPress, Microsoft.ManagedIdentity/userAssignedIdentities, Microsoft.Authorization/roleAssignments, Microsoft.Storage/storageAccounts, Microsoft.Resources/deploymentScripts, UserAssigned, Microsoft.ContainerInstance/containerGroups, Public

Solution overview and deployed resources

The following resources are deployed as part of the solution

  • Azure Container Instance: Azure Container Instance to host the WordPress site and the MySQL database.
  • Azure Container Instance: A run-once Azure Container Instance, where the az-cli is executed to create the file shares
  • Storage Account: Storage account for the file shares to store the WordPress site content and MySQL database
  • File share: Azure File shares to store WordPress site content and MySQL database.

Deployment steps

You can click the "deploy to Azure" button at the beginning of this document or follow the instructions for command line deployment using the scripts in the root of this repo.

Parameters:

  • siteName: The site name, the first segment of the WordPress site FQDN (e.g. mywordpress.westus.azurecontainer.io)
  • mysqlPassword: The password to access the MySQL database.

Output:

  • siteFQDN: The WordPress site FQDN (e.g. mywordpress.westus.azurecontainer.io)

Usage

Use browser to access the site FQDN from deployment output. WordPress will guide you through the rest of the setup.

Notes

Azure Container Instance is available in selected locations. Please use one of the available location for Azure Container Instance resource.