I want to create a website and use GitHub for source control. How can I have Azure websites point to my GitHub account and pull the code from there?
Asked
Active
Viewed 521 times
1 Answers
5
Azure App Service supports continuous deployment to Web Apps from source code control and repository tools like BitBucket, CodePlex, Dropbox, Git, GitHub, Mercurial, and TFS. You can use these tools to maintain the content and code for your application, and then quickly and easily push changes to your Azure web app when you want.
There are a several steps to make this happen:
- Create an empty website on Azure.
- Push your web code from your local Git repository to one on GitHub.
- From with in the Azure portal, click on your newly created website, followed by Deployments -> Set up continuous deployment.
- At the next screen, you'll be prompted to select your source. Select GitHub.
- You'll be prompted to enter your credentials.
- Select the repository you'd like to monitor, and if possible, the branch.
In a few moments Azure will pull the code from your GitHub repository, and you'll be good to go!
You are not limited to GitHub, though. You can also deploy from BitBucket, CodePlex, Dropbox, GitHub, or Mercurial results in a continuous deployment process where Azure will pull in the most recent updates from your project, nearly instantly.

Dave Voyles
- 4,495
- 7
- 33
- 44
-
Looks like Github can't be used with template deployment though. – chhantyal Jul 18 '17 at 14:50
-
I believe it still can. I deployed several Project Nami projects today from GitHub today using this: https://github.com/ProjectNami/projectnami – Dave Voyles Jul 18 '17 at 19:15