-
Notifications
You must be signed in to change notification settings - Fork 97
Link ManualSourceControl
suwatch edited this page Nov 4, 2014
·
6 revisions
This illustrates how to call ARM(CSM) directly to setup manual publishing from GitHub to your website.
- Setup continuous manual deployment to the site
CSMClient.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
CSMClient.exe get "https://management.azure.com/subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/sourceControls/web?api-version=2014-06-01"
- Disconnect manual deployment from the site
CSMClient.exe delete "https://management.azure.com/subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/sourceControls/web?api-version=2014-06-01"