-
Notifications
You must be signed in to change notification settings - Fork 97
Link ManualSourceControl
Ahmed ElSayed edited this page Dec 15, 2014
·
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 "https://management.azure.com/subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/sourceControls/web?api-version=2014-06-01" -content: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 "https://management.azure.com/subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/sourceControls/web?api-version=2014-06-01"
- Manually force sync (deploy) the site from repository
ARMClient.exe post "https://management.azure.com/subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/sync?api-version=2014-06-01"
- Disconnect manual deployment from the site
ARMClient.exe delete "https://management.azure.com/subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/sourceControls/web?api-version=2014-06-01"