Git to Azure

Just a quick guide on publishing web content to Windows Azure using Git!

First things first, make sure you have TortoiseGit and its dependencies installed, and create a new Windows Azure web site in the management console.

For this example, we will be publishing out own mirror of the http://isitup.org site. The sites code is available from GitHub here: https://github.com/sjparkinson/isitup

Let's begin!

Part 1 - Configuring Windows Azure for Git

  1. Visit https://manage.windowsazure.com
  2. Select the website you wish to use Git to publish to
  3. Select "Setup Git publishing"
  4. If you have never specified deployment credentials, select "reset deployment credentials" and specify a username and password
  5. Note down the Git Clone URL

Part 2 - Pulling and Pushing with Git

  1. In your local working copy folder, right click and select "Git Clone"
  2. The URL will be "https://github.com/sjparkinson/isitup"
  3. The directory will be the base URL for the Git working copy/repository for me "c:\users\defaultusername\workinprogress"
  4. Hit ok
  5. wait for a sucess message, and hit close
  6. Right click on the isitup folder, select TortoiseGit, and then Push
  7. select "Arbitary URL" enter the URL noted earlier
  8. Hit OK
  9. Enter your password
  10. Wait for completion
  11. DONE!!!

One I prepared earlier http://isitup.azurewebsites.net