New Relic + Windows Azure package for NuGet
Installing New Relic on Windows Azure is a bit of a pain so I’ve created a NuGet package for it to make it dead easy. I’ll keep it updated with the latest NewRelic releases.
Make sure you go to New Relic first to sign up and get your key. Performance monitoring will never be the same after you do!
The package will be available through your NuGet package manager. You can view it on the web as well:
http://nuget.org/List/Packages/NewRelicWindowsAzure
Once you install the NuGet package you will need to follow these instructions to finish your setup before depolyment:
https://newrelic.com/docs/dotnet/installing-the-net-agent-on-azure
Using Visual Studio 2012 the license key and app name are not correctly captured during install. Here’s the new nuget output:
PM> install-package NewRelicWindowsAzure
Successfully installed ‘NewRelicWindowsAzure 1.0.0.19′.
Successfully added ‘NewRelicWindowsAzure 1.0.0.19′ to MvcWebRole1.
***Updating project items newrelic.cmd and NewRelicAgent_x64_2.0.11.1.msi***
No Key was provided, please make sure to edit the newrelic.cmd file and add a valid New Relic license key
***Updating the Windows Azure ServiceDefinition.csdef with the newrelic.cmd Startup task***
***Updating the projects .config file with the NewRelic.AppName***
***Package install is complete***
This is fixed now. I’m assuming you’re using Windows 8/2012? There was a breaking change in Powershell v3 but the package is now fixed.
If you have a moment please look at this issue. I installed the packaged and it installed and rebooted however I have no errors in the event log for the azure servers and no data in my new relic account. The new relic diagnostic tool ran on the servers and it was fine. Now I’m getting a 403 when I try to access a page on my site. Any ideas?
The link to “instructions to finish your setup before depolyment” is broken
Thanks for the heads up! It’s fixed now.