Install the NuGet package AppDynamics.Agent.Azure.AppService.Windows to add the .NET microservices agent directly to projects you plan to deploy to Windows Azure. This package works for Azure App Service (formerly Azure Websites): Web Apps and API Apps.

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.

Add the .NET Microservices Agent to Your Azure Solution

Use the NuGet package manager to browse the nuget.org package source and install the AppDynamics.Agent.Azure.AppService.Windows 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.AppService.Windows package installation prompts you as follows:

  1. The installer may ask you to verify your changes. If so, click OK.
  2. Click I accept to agree to the terms of the license.
  3. In the Solution Explorer, select the AppDynamicsConfig.json file.
  4. Enter the connection information for your Controller in the area on the left, in JSON format.
    For example: 
    {
      "controller": {
        "host": "PUT_YOUR_VALUE_HERE",
        "port": 0,
        "account": "PUT_YOUR_VALUE_HERE",
        "password": "PUT_YOUR_VALUE_HERE",
        "ssl": false,
        "enable_tls12": false
      },
      "application": {
        "name": "PUT_YOUR_VALUE_HERE"
      }
    }

Configure the Controller Connection

You have the following options to configure the .NET Agent to connect to the Controller:

By default, the .NET microservices agent names Azure tiers as site name. The .NET microservices agent names Azure nodes by machine name appended with the website hostname.