Creating an Application Insights function