We have a requirement to instrument azure functions hosted on App Service Plan linux using AppDynamics. There is an extension available to instrument azure functions running on Windows App Service plan as per the documentation below.
Instrument the .NET Agent with Azure Functions
But there is no such option available to instrument azure functions running on Linux. Are there any other solution options available for automatic instrumentation of Azure functions hosted on linux App Service Plan using AppDynamics?
According to this Pre-requisite Only Windows OS is supported in AppDynamics. You need to raise a feature request in Cisco AppDynamics support here, To request support for Linux OS based Function app for AppDynamics.
As a workaround, You can create an ARM based Function and add the AppDynamics parameters as mentioned here.
In visual studio create a template of Azure Resource group and add the below code:-
And deploy this in your Azure Web app.
Instead of using Appdynamics, One alternative is to directly use built in Azure Functions Monitoring service that comes by default. You can refer my SO thread answer to utilize Azure Functions Monitoring and logging.