Category: Microsoft Azure

Enabling git deployments on an Azure Web App

Git deployments are very useful as they allow for a developer to deploy a web app from a code commit, and it is a nice way of developing as opposed to copying files via FTP.

As with everything on Azure – it is very easy to do.

An empty web app has been crated (New -> Web App).

To enable git deployments, navigate to the properties of the newly created web app, and click on “Deployment Options”.

Click on “Choose Source” . From this, you can select a number of different deployment options, such as linking the web app to a TFS repository,  a BitBucket account, or even One Drive. We are going to deploy to a local git repository.

To do this, select “Local git Repository” from the menu and click OK.

Screen Shot 2017-02-13 at 22.56.51

Once completed, under the properties section of the web app, click on “Properties”. Navigate to the “GIT URL”, and copy it.

Screen Shot 2017-02-13 at 22.58.38

Next step is to open a git command line and run git clone with the newly created git URL.

Screen Shot 2017-02-13 at 23.03.10

To illustrate the process, a simple index.html file is created and dropped into the new folder. This code is then added to the repository.

Screen Shot 2017-02-13 at 23.10.06

Once this deployment has finished, if we refresh the page, our changes are already present.

Screen Shot 2017-02-13 at 23.12.29



Deploying a WordPress Website to Azure

Deploying a WordPress Website to Azure could not be easier and can be achieved in a few easy steps.

Create the Website in the Azure Portal

Azure - New

Once logged into Azure  – Click on the plus sign along the left hand side – a menu should appear.

Once this menu has appeared, click on “See all” beside Marketplace. Another menu should appear.

In the search bar, type “WordPress” and click on the first item on the list.

Another menu will appear giving you some information on WordPress – click the create button at the bottom of this screen.

Another screen will then appear prompting you for some information:

wordpress - filled in

App Name – This is what you want your web address to be (it is in the format – in this case, we have picked

Resource Group – Often, a feature on Azure is made up of may different components – a resource group allows you to group these components together for easy management. In this case, we have created a resource group “WordPress” for all things WordPress related.

Database Provider – There are two options present here – ClearDB and MySQL in app preview. We will select ClearDB as it is not in preview. You get one ClearDB 20MB Database free on your subscription.

App Service – There may be a default app service automatically created, but if there is not, follow the wizard to create one.

Database – This is a name generated by ClearDB – no need to change it.

Legal Terms – These must be accepted in order to use ClearDB.


Once Happy with all the details, click on Create.

Wait a few moments and you will receive a notification saying that the website has been created.

Setting up WordPress


Once created, navigate to the web address – in this case

You will then be shown a language selection screen – select your language and click continue.

Another setup will appear – from here – fill in the necessary details


Site Title – This will appear at the top of your website.

Username / Password – These will be used to log on to the website.

Email – This will be used by WordPress to communicate with you (with regards to updates etc).

Once happy, click “Install WordPress”, and wait a few moments.  You will then be taken to the admin site for your WordPress install, where you can style the website to your needs.



To access the front end for your website, remove the /wp-admin part of the URL.




© 2020

Theme by Anders NorenUp ↑