Add Application Insights telemetry to your Azure Function (for TrackTrace and TrackException)

You can use Azure Application Insights to help debug application issues in a .NET-based Azure Function App. Below are basic steps on how to do this. In certain cases, the Microsoft.ApplicationInsights package alone might be sufficient for your purposes. For this example, I am using the Microsoft.ApplicationInsights.WindowsServer package because it includes additional functionality. More information about the ApplicationInsights…

0

Using the Azure ARM SDK for Node to get Site Metrics for your App Service

Documentation for using the Azure ARM SDK for Node to get Site Metrics for your App Service can be found here: http://azure.github.io/azure-sdk-for-node/azure-arm-website/latest/Sites.html#getSiteMetrics   Here is sample code for how to get this to return the results as JSON in the console. You can use other  login methods (not just loginWithServicePrincipalSecret), such as interactiveLogin. var msRestAzure =…

0

Samples for using the Azure App Service Kudu REST API to programmatically manage files in your site

Information about the Kudu REST API is found here: https://github.com/projectkudu/kudu/wiki/REST-API The VFS API section contains examples for programmatically managing files and directories in the App Service.   Here is an example (written in PowerShell) for listing the files and folders in the wwwroot folder. $username = “`$websitename”; $password = “password”; <# This is the password…

0

Umbraco logging in Azure App Service

Umbraco is a third-party CMS that can be hosted in Azure App Service. Umbraco has built-in Log4Net logging that can be useful for troubleshooting issues within an Umbraco application. In Azure App Service, these logs can typically be found under D:\home\site\wwwroot\App_Data\Logs. The naming convention for these logs is UmbracoTraceLog.InstanceName.txt . Note: InstanceName refers to a machine instance that hosts your…

0