Join the discussion about .NET monitoring in the New Relic Community Forum! The Community Forum is a public platform to discuss and troubleshoot your New Relic toolset.
If you need additional help, get support at support.newrelic.com.
New Relic Windows Azure Nuget Package
Includes the latest New Relic x64 installer, so that you can easily include New Relic in your Windows Azure deployment.
Make sure you go to New Relic first to sign up and get your key from New Relic. Performance monitoring will never be the same after you do!
The package is available through your NuGet package manager and on the web
- install-package NewRelicWindowsAzure
- The Package installer will prompt you for your NewRelic.AppName and your New Relic license key
Note: If you want to instrument more than one project in your solution, simply change the "Default project" in the package manager console and install the package
Visit New Relic after your package deploy is complete to see your performance metrics.
For more information on what this package is doing go to: https://support.newrelic.com/help/kb/dotnet/installing-the-net-agent-on-azure
What this package does
- Adds the newrelic.cmd and .msi to the root of the project for the Service Definition task to pick up and use during the deployment of your application
- It prompts you for both the New Relic license key (for the .cmd file) and for what you would like the value of the NewRelic.AppName to be in your .config file
- It adds a reference to your project to the NewRelic.Api.Agent.dll so that you can manually instrument methods in your WebRoles as well as your WorkerRoles
- It updates your Azure ServiceDefinition.csdef file - creating a task for the given role to execute the newrelic.cmd with the appropriate execution context
- It updates / adds the config key NewRelic.AppName to the web/app.config file
Setting up your local environment to contribute
- Open visual studio
- Tools menu >> Library Package Manager >> Package manager settings
- Under the Package Manager, click on Package sources
- Create a source named "Local" and set the directory to where you cloned the repository (something like "c:\code\nuget-azure-cloud-services")
- Click Add then "OK"
Using the package locally
- To use it you can open up your web app and choose >> tools >> Library Package Manager >> Package manager console
- In the console make sure that the source drop down is set to local
- Then type in "Install-Package NewRelicWindowsAzure"
- Hit enter