Ops / IT Pro
The course is part of these learning paths
There's a lot of effort that goes into keeping our applications available, and secure. That's why so many cloud vendors offer platforms for hosting web-based applications. If you're building web apps, APIs, mobile backends, or business processes then you should consider looking into App Service! App Service has a lot of functionality. It meets compliance standards from around the world, it's highly scalable, it supports multiple languages and makes it easy to get your code deployed.
This Getting Started with Azure App Service course it's basically an intro, but for developers and IT Pros. In this course, you'll learn about the features of App Service at a high level as well as for each component. Then you'll learn about each of the 4 components of App Service through some demos. If you're a developer or IT Pro working with Azure, but new to App Service, this course is for you.
This course will help get you up-to-speed on App Service so that you can start developing / managing apps.
Getting Started With Azure App Service: What You'll Learn
|Lecture||What you'll learn|
|Course Intro||What to expect from this course|
|App Service Overview||A high-level overview of App Service|
|Web, Mobile, API App Overview||A high-level overview of Web, Mobile, API Apps|
|Logic App Overview||A high-level overview of Logic Apps|
|Mobile Apps: Easy Tables||How to use Easy Tables as a "no-code" option|
|Mobile Apps: Client||Running the client code from an iOS simulator|
|Mobile Apps: .NET Backend||Using a .NET backend|
|Mobile Apps: Auth||Using authentication with App Service|
|API Apps||Creating API Apps|
|Logic Apps||Automating business processes|
|Web Apps||Authentication and remote debugging|
|Deployments||Deployment slots and GitHub based deployments|
|Monitoring and Logging||Monitoring and logging options|
|Scaling||Scaling up and out|
|Next Steps||What's next|
Welcome back! In this lesson we’ll explore the monitoring and logging options for App Service.
Let’s start out with application performance monitoring using Application Insights. In the portal, under the monitoring section there’s an option for Application Insights. I’ve pre-enabled this in the app, which you can do in Visual Studio, or in the portal. So if want to use it, you’ll need to enable the monitoring agent.
On this first blade, you can get some basic information about slow requests, as well as a live stream of requests and errors.
At the bottom of this blade you can open up some additional info, however the really interesting stuff is under the analytics section. Clicking on it will open up the Application Insights site in another tab. Application Insights allows you to use a SQL like syntax to query data and even generate charts.
On this home dashboard there are some pre-created queries that you can run. Besides being useful queries, they also help you to get a sense for the query syntax.
Let’s check out the errors query. It starts out by referencing the requests data, followed by a where clause, and then a join to the exceptions table, and then creates a projection for what data you want returned.
Let’s go back to the home page and check out the performance query. Notice unlike the previous query this is showing a chart. Admittedly it’s not populated with much information, however the query syntax has the ability to render charts built right in.
Clicking on table you can see the limited data available to this app. The tables are available to drill into on this side here, where you can start to explore the data a bit. This is a simplistic look at the features, however hopefully it shows the value of Application Insights.
Let’s head back to the portal to check out the live site metrics dashboard.
If you click on Live Stream, it’ll load this dashboard where you can get a glimpse at what’s happening with your app. Let’s see some requests show by loading a page on the site. Now switching back to the app, you can see the request on this top request tile.
So, that’s a high level of application performance monitoring.
Let’s switch gears to cover alerts. Often times you’ll want to be notified when something happens. For example, if your app starts to queue up a lot of HTTP requests, it would help you to know that so you could review your Service Plan.
Alerts are pretty easy to configure, and they allow you to have an email sent, or to have a webhook called. The webhook would allow you to pass the alert off to some of your own code, maybe something like an Azure Function.
You can create alerts at the App Service or application level, and there are different metrics for both.
Under resource you can change to either the service plan or the app. At the moment the resource is set to the service plan, and then click the drop down, you can see there’s a handful of metrics, and then if you switch to the app, you can see there’s some different options. Besides the metrics you could also trigger alerts based on events, which again are different between the app and service plan.
These are all covered in the Azure docs, so I’m going to just put a link to the documentation on what metrics are available on the screen.
Alright, we’ve covered application performance monitoring and alerting, let’s check out logging now.
Before we can start utilizing the logs, we need to enable them, and we can choose which logs we want to enable, and which one we don’t.
And once you have some logs enabled, you can download them via FTP. This uses the same FTP account as the FTP deployment option, so if you’re not using FTP for deployments, you may need to go and create an FTP deployment user first.
Okay, besides the options for monitoring and logging we’ve already covered there’ also some additional basic info under the monitoring section. And there’s always third party tools should you want other options.
Okay, in the next lesson we’ll take a look at scaling options and how to scale up and out. So if you’re ready to cover scaling, then let’s get started in the next lesson.
About the Author
Ben Lambert is a software engineer and was previously the lead author for DevOps and Microsoft Azure training content at Cloud Academy. His courses and learning paths covered Cloud Ecosystem technologies such as DC/OS, configuration management tools, and containers. As a software engineer, Ben’s experience includes building highly available web and mobile apps. When he’s not building software, he’s hiking, camping, or creating video games.