Using the portal:
Using the portal at https://manage.windowsazure.com/ this is easy. From a newly created azure web site:
- Go to the dashboard
- On the quick glance options on the right, click "Set up deployment from source control"
- On the "where is your source code?" option, select Github
- Authorize, then choose the repo name and branch.
- BINGO: now pushes to that branch will trigger a deployment of that branch onto the azure website. Lovely.
Here's the problem:
I cannot for the life of me see how to do this from the command line (using the xpat-cli installed using npm: "npm install azure-cli -g")
It seems like I should be typing something like:
azure site deployment github --verbose --githubusername [username] --githubrepository [username/reponame] [sitename]
Because the help for "azure site deployment github" says it will: "Link a website to a github account for deployment"
Doesn't seem to work though...
If I then type:
azure site show [sitename]
The output says the source control is "LocalGit" instead of github - which is what it says if I do it the portal way above.
Source Control
data: --------------
data: Type: LocalGit
Any ideas?