Sample code on using the Azure SDK for Node to create a new Azure WebApp on AppService and enable Application Insights on it.
You can find more details here.
Sample on creating an Azure WebApp + AppInsights using Azure SDK for Node
JavaScript
Sample code on using the Azure SDK for Node to create a new Azure WebApp on AppService and enable Application Insights on it.
You can find more details here.