Configure the Controller Connection
You have the following options to configure the .NET Microservices Agent to connect to the Controller:
- During development: As shown in the previous screenshot, you can enter your
environment variables in the
AppDynamicsConfig.
json file, and save it in source control. - During build: Define your msbuild parameters or environment variables that are passed to the
AppDynamicsConfig.
json file at build time.AppDynamicsConfig.json
does exist at build time. So, if you're defining your msbuild parameters/env variables at build time, you will need to ignore it in source control so that the newAppDynamicsConfig.json
file will be created. - During runtime: Enter your environment variables in Azure.
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.