You can use Microsoft Visual Studio with the NuGet package AppDynamics.Agent.Azure.CloudServices to add the .NET Agent directly to Azure Cloud Services projects: Web Roles and Worker Roles.
Prepare to Install the NuGet Package
To install the for Windows Azure NuGet package you need:
These instructions assume you are familiar with NuGet package management in Visual Studio and with the Microsoft Azure Portal. You can also try the step-through tutorial on how to instrument an App Service on the community knowledgebase.
If you are upgrading to a new version of the for Windows Azure NuGet Package, see Upgrade AppDynamics.WindowsAzure NuGet Package.
Use the NuGet package manager to browse the nuget.org package source and install the AppDynamics.Agent.Azure.CloudServices package to your Azure solution in Visual Studio.
For details about managing NuGet packages, see the documentation for your version of Visual Studio.
The AppDynamics.Agent.Azure.CloudServices package installation prompts you as follows:
The package manager installs the .NET agent into your project.
The configuration file installs to <project_root>/App_Data/AppDynamics/Config/config.xml
. Enter the connection information for your Controller in the config.xml file. For details about Controller connection settings, see Agent-to-Controller Connections.
By default the .NET Agent names Azure tiers as role name for Cloud Services.
If you want to customize the tier name, edit config.xml under <project_root>/App_Data/AppDynamics/Config.xml
. For more information and examples, see "Name IIS Tiers Manually" on Name .NET Tiers.
After you finish any configuration changes, publish your solution to Windows Azure. For Cloud Services solutions, you can put load on your published project and log on to the Controller and begin monitoring your solution.
If you have already published your solution, you can update the .NET Agent configuration for the currently installed version without upgrading the agent.
<solution_root>/AppDynamics
.By default, the APPD_AGENT_CONFIGUPDATE variable is set to true. If you want to modify the configuration on your Azure Cloud Services machine, and you want to prevent the script from overwriting it, set APPD_AGENT_CONFIGUPDATE to false.