On Application properties click Application insights under monitoring-Create new resources
Under All Resources Application insight is created, click on it
Then click Availability
We can create availability test for our application,click Add test
Select test criteria and location which will be tested
After 20 minutes i got first results
Getting log files
We can download log files locally:
On local machine open powerhsell as administrator (for details how to log on to azure see this post
import-module azure,azurerm add-azureaccount $sub=(Get-AzureRmSubscription).Name Select-AzureSubscription -Default -SubscriptionName $sub save-AzureWebsiteLog -Name 'moja-aplikacija' -Output 'c:\1.zip'
For real-time logging:
Get-AzureWebsiteLog -name 'moja-aplikacija' -tail</pre>
Creating Alerts
We can also create alerts for web application, from application properties click Alerts
Select metric
And trigger for alert
For this test i set really low treshold and after some seconds i got notification
Diagnostic
We can also see diagnostic and hints for improving web application performance
Under application properties click Diagnose and solve problems