How to add an instance that was deleted earlier (For .NET and .NET Core agents)
Steps for .NET agent
- Navigate to the path: %ProgramData%\DotNetAgent\
- Delete the apminsight.net.info file from the folder with the same name as the application.
Note: The name of the monitor folder created for the selected application will be same as that application's name. - Restart the APM Insight .NET Agent service.
Note: It will recycle the application pools. - Perform some transactions manually.
Steps for .NET Core agent
You can follow any of the below methods.
Adding agent via PowerShell
- Navigate to the path: [AgentDestinationPath]\Site24x7DotNetCoreAgent\
- Delete the apminsight.net.info file found in the folder with the same name as the application.
Note: The name of the monitor folder created for the selected application will be same as that application's name. - Restart the .NET Core applications.
- Perform some transactions manually.
Adding agent via NuGet package
- Navigate to the application's publish directory.
- Navigate to the DotNetAgent\[Application Name] folder.
- Delete the apminsight.net.info file.
- Restart the .NET Core application.
- Perform some transactions manually.
Adding agent via Azure App service extension (For .NET and .NET Core)
- Navigate to http://[yoursitename].scm.azurewebsites.net in your web browser.
- Go to Debug Console > CMD to open the file explorer.
- Navigate to the following path: Site24x7DotNetAgent\DotNetAgent_[servername]\[yourAppName]
Note: If the path is not available, upgrade the APM Insight extension to the latest version. - Delete the apminsight.net.info file.
- Restart the Azure App Service and start performing some transactions manually.
Related Articles
How to add a PHP instance that was deleted earlier
For agent versions 4.0 and above For every instance, there will be a corresponding configuration file present inside the conf folder of the S247DataExporter installation path. Delete the appropriate configuration file and restart the S247DataExporter ...
DC migration steps for APM Insight .NET and .NET Core agents
.NET agent Obtain the new device key. Log in to the server and update the license.key value in the apminsight.conf file located at %ProgramData%\DotnetAgent\<appname>. Delete the existing instance information file, apminsight.net.info, located at ...
How to enable or disable application filters in the .NET Core agent?
The APM Insight .NET Core agent is designed to monitor IIS-hosted applications based on the list entered in the appfilter.config file in the agent's installation location. Irrespective of the filter, we can monitor all .NET Core applications hosted ...
DC migration steps for APM Insight agents
For Server based installations 1. Obtain the new device key. 2. Update the license.key value in the APM Insight configuration file (or the environment variable mentioned) with the new device key. The location varies for each agent, as listed below: ...
Adding an APM instance that has been deleted earlier
APM Insight agent state is maintained in 'apminsight.info' file (located in the directory where agent jar resides). Please delete this file and restart the server, this will add the APM instance successfully.