Background: I configured Azure to automatically deploy code from the development branch (on Github) to dev-webapp when the code is translated to develop the branch. When the code is redirected to the master branch, Azure deploys the code from the main branch to the test webapp and the pre pre-deployment slot.
In Azure, I use the New Relic Appservice to monitor these applications. It works. Now I want to notify New Relic when the code is deployed to webapp.
Quote New Relic:
To notify New Relic of the deployment, you can send a POST at https://api.newrelic.com/deployments.xml and add the API key as a header
To notify New Relic when the code was deployed for dev and test, I could configure the webhook in GitHub to run when the code is redirected to the development branch and master branch. I checked this and it works. I feel that this is not optimal, as the notification comes from Github and not from Azure where the deployment is taking place.
I also want to notify New Relic when the pre-prod deploymentslot is replaced with prod.
Is it possible? And what could be the best way to do this?
Maybe webjobs could be a hobby? This should be a website that starts only once after deploying webapp, and the deployment slot is replaced (for prod). I can not find any information on creating such a work.
azure newrelic azure-web-sites
henrikm
source share