Skip to content

Setup GitHub publishing to Site

David Ebbo edited this page Jan 20, 2015 · 2 revisions

This illustrates how to call ARM directly to setup continuous publishing from GitHub to your websites.

ARMClient.exe put /providers/Microsoft.Web/sourceControls/GitHub?api-version=2014-11-01 @payload.json

Sample payload.json

{
  "properties": {
    "token": "<your access token>",
  }
}
  • See the list of stored access token
ARMClient.exe get /providers/Microsoft.Web/sourceControls?api-version=2014-11-01

ARMClient.exe get /providers/Microsoft.Web/sourceControls/GitHub?api-version=2014-11-01
  • Setup continuous GitHub deployment to the site
ARMClient.exe put /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/sourceControls/web?api-version=2014-11-01 @payload.json

Sample payload.json

{
  "properties": {
    "RepoUrl": "https://github.com/<user>/<repository>",
    "Branch": "master" (Optional)
  }
}
  • Disconnect GitHub deployment from the site
ARMClient.exe delete /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/sourceControls/web?api-version=2014-11-01
Clone this wiki locally