-
Notifications
You must be signed in to change notification settings - Fork 97
Link ManualSourceControl
David Ebbo edited this page Jan 20, 2015
·
6 revisions
This illustrates how to call ARM directly to setup manual publishing from GitHub to your website.
- Setup continuous manual 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>",
"IsManualIntegration": true,
"Branch": "dev" (Optional)
}
}
- Check to see what is currently published to the site
ARMClient.exe get /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/sourceControls/web?api-version=2014-11-01
- Manually force sync (deploy) the site from repository
ARMClient.exe post /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/sync?api-version=2014-11-01
- Disconnect manual deployment from the site
ARMClient.exe delete /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/sourceControls/web?api-version=2014-11-01