Apurva Joshi (AJ)Senior Program Manager
When Bad Things Happen to Good Apps: Troubleshooting Application on Azure App Service
2-764
Objectives and Takeaways
Understand tools and best practices for troubleshooting Azure Web App performance and availability issues.
You can’t RDP, but that doesn’t mean you can’t troubleshoot and mitigate issues.
When everything else fails…
Agenda
• What could possibly go wrong? • Identify and categorize type of issue• Tools available for diagnostics • Demos, Demos and more Demos!• Q&A
What can possibly go wrong?
What could possibly go wrong? It’s just a candy!
Kid is happy now
Understanding Type of Issues
9
(This is weird) Customer Reported
Issues
(Where is the Dev?)Application IssuesImpacts specific
customer SLA
(Hey, Man)Generic FAQ
No SLA impact
(OMG!!!)Platform Issue
Impacts multiple customers’ SLA
Redmond, We’ve Got a Problem
(Where is the fix?)Platform Issue
Impacts multiple customers SLA
Understanding Type of Issues
10
(Where is the Dev?)Application IssuesImpacts specific
customer SLA
(Hey, Man)Generic FAQ
No SLA impact
(OMG!!!)Platform Issue
Impacts multiple customers SLA
Redmond, We’ve Got a Problem
(This is weird) Customer Reported
Issues
(Where is the fix?)Platform Issue
Impacts multiple customers SLA
What Can Go Wrong – Platform Issues
• Azure App Service stamps are deployed globally• Regional – one or more stamps in a given region • Global – multiple regions multiple stamps
• Azure App Service depends on other services• SQL Azure• Storage• Network• Cloud Services (management)
• Azure App Service deployment gone bad• Random bugs
11
http://azure.microsoft.com/en-us/status/
Self-help: where it’s possible.
13
(Where is the Dev?)Application IssuesImpacts specific
customer SLA
(Hey, Man)Generic FAQ
No SLA impact
(OMG!!!)Platform Issue
Impacts multiple customers SLA
Redmond, We’ve Got a Problem
(This is weird) Customer Reported
Issues
(Where is the fix?)Platform Issue
Impacts multiple customers SLA
What You Can’t Do
• You can’t RDP into a VM• Your application can’t emit ETW• You don’t have access to VM / Site ETW• You cant install MSI
14
What Diagnostics Tools Are Available?• Logs• HTTP Logs• Event Logs• .NET Detailed Error Message Logs• Failed Request Tracing Logs• .NET Application Logs / Live Streaming • PHP, Node.JS, Java Error Logs
• Azure Management Portal• Application Insights • Kudu Endpoint / Support Portal• Partners solutions • New Relic (.NET only)• Zend Zray (for PHP)
15
Demo
• Welcome Kudu – Overview of Azure App Service’s Best Worst Kept Secrete
16
There is a big event happening and I want to monitor live HTTP traffic across all my regional deployments.
• Support Site Extension: Observe• Live Monitoring
17
I want to isolate slow response/exceptions coming from my Web App (.NET pipeline)
• Support Site Extension: Analyze• FREB• Event Viewer
18
Why is my App Spinning?
• Support Site Extension: Analyze• DaaS
19
My PHP Web App is loading slow. Why? It’s just a simple WordPress site!!
• Support Site Extension: Analyze • DaaS with PHP Parsers • ClearDB Integration
20
I get a pingdom alert in the middle of a night Simple site restart Go back to bed (why can’t you just automate this?)
• Support Site Extension: Mitigate• Auto Healing
21
I think there is a memory leak in one of my Web Apps – this is affecting other sites too!
• Support Site Extension: DaaS with Leak Analysis
22
Want to report potential service interruption issue?
• Support Site Extension: Need Help?• Report an issue with Engineering team • Get help from Forums • Contact Azure Support
23
Improve your skills by enrolling in our free cloud development courses at the Microsoft Virtual Academy.
Try Microsoft Azure for free and deploy your first cloud solution in under 5 minutes!
Easily build web and mobile apps for any platform with AzureAppService for free.
Resources
© 2015 Microsoft Corporation. All rights reserved.