NOTE: You will need to be a Slack admin, and have access to create web sites, etc., in the target Azure account.
- Go to slack, creating a new web hook.
- Note the webhook URL (e.g.
https://hooks.slack.com/services/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
) - Set it to post the channel you'd like.
- Note the webhook URL (e.g.
- Go here, click deploy.
- This adds a web-hook listening site to Azure
- Log in to Azure and find the above site that just deployed
- Open the Application Settings, find App Settings
- Add
slackhookuri
, set its value to the above web hook URL (hooks.slack.com...)
- Log in to your Azure site's Kudu site
- https://{mysite}.scm.azurewebsites.net/WebHooks (note, this isn't the one you just did, but the one you want to watch for deployments, e.g. pomodo-alpha.scm.azurewebsites.net).
- Add a new post deployment web hook, pointing to the site you just deployed to azure, (such as
https://kudupostdeploymentslackhook5437.azurewebsites.net/
)
Whenever a deployment succeeds, you will get a message in Slack with the message of the commit that triggered it.
Unfortunately, it looks like we are unable to reuse the same post deployment hook application. So this will need to be redone for each instance of your application (sorry LEM).
Hi Chris,
Can you remove this gist please? Slack said the webhook URL is unique, so they removed our integration and disabled the URL. no real issue, but just want to clean this public gist out. Thanks!