Azure App Service Monitoring and Azure CDN

Last updated on Dec 10 2021
Keethi Reddy

Table of Contents

Azure App Service Monitoring and Azure CDN

Microsoft provides different features to monitor our App service.

Quotas

Application hosted in App Service is subject to certain limits on the resources they can use. The boundaries are defined by the App Service plan associated with the app. When we create an app service plan, we generally select a pricing tier and also size. Based on the size and pricing tier, we’ll be allocated with a certain amount of CPU and a certain amount of memory. Quotas for Free or Shared apps are as follows.

  • CPU(Short)
  • CPU(Day)
  • Memory
  • Bandwidth
  • Filesystem- Applicable for Basic, Standard, and Premium plans

The only quota applicable to apps hosted on Basic, Standard, and Premium plans is Filesystem, based on the number of App service plans that we have created in our subscription.

Metrics

Metrics provide information about the app or App Service plan’s behaviour. So Metrics are provided at two levels.

  • One is at the App service plan level, which will include CPU and Memory percentage, Data in and out, Disc queue length, and HTTP queue length.
  • The second level of metrics provided at an application level, which includes average response time, average memory working set, CPU time, Data in and out, etc. All of these metrics are essential. There are a lot more metrics available when we go for application insight, which is an advanced monitoring tool using which we can monitor web apps.

Granularity and retention

  • Minute granularity: These metrics are retained for 30 hours.
  • Hour granularity: These metrics are retained for 30 days.
  • Day granularity: These metrics are retained for 30 days.

However, if we use the application insights, then this retention will increase drastically.

Diagnostics

App service web apps provide diagnostic functionality for logging information from both the web server and the web application. These are logically separated into web server diagnostics and application diagnostics.

Web server Diagnostics: In this, we can have a detailed error logging, which is any Http 400, and the above error will get logged. We can also view the logs. And the second thing is failed request tracking, which basically contains the trace of IIS components that are used to process our request. And the third one is web server logging. These are the overall metrics on how many Http requests we received, and from a particular IP address.

Application Diagnostics: It allows us to capture the information produced by the web application. So if we’re using system diagnostic trace, all the information will be provided by application diagnostics.

Diagnostic information can be stored in file system or Azure storage.

Stream logs

During the development of an application, it is often useful to see logging information in near-real-time. We can steam logging information to our development environment using either Azure PowerShell or the azure Command-line interface.

These are the basic commands that we need to use to stream the log files.

  • Streaming with Azure PowerShell
    • Get-AzureWebSiteLog – Name webappname -Tail
    • Get-AzureWebSitelog – Name webappname -Tail -Message Error
  • Streaming with Azure Command-Line Interface
    • az webapp log tail – name webappname -resource-group myResourceGroup
    • az webapp log tail -name webappname -resource-group myResourceGroup -filter Error

Azure Content Delivery Network

Azure CDN caches web content at a strategically placed location to provide maximum throughput for delivering content to users. To better explain this, let?s take an example.

ollo

Let?s say we have a vast amount of video content located in Australia, but the primary users of that content are located in the US, and if any of the users from India will try to access the content from Australia. Then they will experience some latency because of the distance between Australia and India. In that scenario, we can use a content delivery network to reduce that latency.

CDN products

There are several types of products that are available by Azure, and there are two other third party providers that provide CDN products in partnership with Microsoft.

  • Azure CDN Standard from Microsoft (Preview)
  • Azure CDN Standard from Akamai
  • Azure CDN Standard from Verizon
  • Azure CDN Premium from Verizon

Features of Content Delivery Network (CDN)

Following are the fundamental features of Azure CDN:

  • Dynamic site acceleration: It is the capability to deliver dynamic web content with minimum latency. It is achieved by using different techniques such as route optimization to avoid congestion points, TCP optimization, etc.
  • HTTPS support: It provides us the HTTPS support of secure web content.
  • Query string caching: Based on query string caching, we can cache the content also within CDN location.
  • Geo-Filtering: We can apply some geo-filtering if we want certain content filtered for a particular geographical region.
  • Azure diagnostics logs: It provides the facility of records of diagnosis.

CDN configuration

  • When we start using CDN, the first thing we will create is the CDN profile. It is a collection of CDN endpoints, and by default, it can contain up to 10 CDN endpoints. When we are creating a CDN profile, we will specify the type of product that you want to use. For Example, CDN premium from Verizon or CDN standard for Microsoft, etc.
  • Secondly, we will create a CDN endpoint. When we are creating CDN endpoint, we will specify the name, and also origin type what exactly we?re trying to configure this CDN for. It can be Azure storage, cloud storage, web app, or a custom origin.
  • Finally, we will define the Origin path where these videos or web content is located and also the protocol of origin. Once we create a CDN endpoint, we?ll get an endpoint that will be whatever the name we have given ?example.net.?

Ways to control how files are cached

  • Caching rules
    • Global caching rules
    • Custom caching rules
  • Purged cached assets
  • Pre-load assets on an Azure CDN endpoint

So, this brings us to the end of blog. This Tecklearn ‘Azure App Service Monitoring and Azure CDN’ blog helps you with commonly asked questions if you are looking out for a job in Azure and Cloud Computing. If you wish to learn Microsoft Azure and build a career in Cloud Computing domain, then check out our interactive, Microsoft Azure Developer and Administrator Training, that comes with 24*7 support to guide you throughout your learning period. Please find the link for course details:

https://www.tecklearn.com/course/microsoft-azure-developer-associate-az-203-and-microsoft-azure-administrator-associate-az-103/

Microsoft Azure Developer Associate: AZ-203 and Microsoft Azure Administrator Associate AZ-103 Training

About the Course

This Course provides training for Microsoft Azure Administrator and Azure Developer. Tecklearn’s Azure Administrator training provides you with a deep understanding of the entire administrative lifecycle in Azure environments. This Azure course shows you how to maintain services related to computing, storage, network, and security. Enhance your Azure Administrator skills and prepare to ace the AZ-103 Azure Administrator exam. The Azure Developer certification course prepares you for Microsoft’s Azure Developer certification exam AZ-203. It covers Azure architecture, Azure technology development solutions, Azure storage services, and solutions, Cognitive Services such as Computer Vision, Q&A Maker, Azure service solutions, and API management services.

Why Should you take Azure Developer and Administrator Training?

  • Microsoft certified Azure Associate developer earns salary ranging from $95,000 to $135,000
  • Average salary of Microsoft Certified Azure Administrator is $90,000 – Indeed.com
  • Apple, eBay, Samsung, Citrix, UST Global, Mindtree, TCS, Wipro, Infosys & many other MNC’s worldwide use Azure across industries
  • According to Microsoft, more than 1,000 new sign-ups for Azure occur each day, which equates to approximately 365,000 new sign-ups each year
  • By 2022, 90% of enterprises will use both the IaaS and PaaS capabilities from cloud provider – Gartner

What you will Learn in this Course?

Introduction to Azure Compute Solutions and Cloud Computing

  • Introduction to Microsoft Azure
  • About Azure Certification

Overview of Azure Storage Services

  • Azure Storage
  • Azure File Use Case
  • Azure DNS
  • Azure Site Recovery

Secure and Manage Azure Storage

  • Security Issue
  • Azure Regions
  • Azure Services

Implementing Secure Data Solutions and Integrating Caching & CDN

  • Azure CDN
  • Azure Traffic Manager
  • Azure Load Balancer
  • Azure Scale Set

Implementing Azure App Service Web Apps and Mobile Apps

  • Design and Implement Azure Service Apps
  • Web Apps
  • Pricing Calculator – Azure

Managing Azure Subscriptions and Resource Groups

  • Create Resource Group
  • Create App Service Plan
  • Create Web App and Deploy Angular Application using SCM
  • Deploy .NET Application using SCM
  • Deploy App using Visual Studio
  • Web Job Types
  • Sendgrid

Develop Event-based and Message-based Solutions in Azure

  • Messaging Strategy
  • Design and implement Messaging Strategy
  • Azure Notifications
  • Microsoft Azure Service Bus
  • Queues
  • Topics
  • Create Topic
  • Create Subscription
  • Azure Relay
  • Using EventHubs

Implementing Azure App Service API Apps & Azure Functions

  • Azure PAAS Services
  • API Management
  • Function Apps
  • Logic Apps

Overview of Azure Virtual Machines and Configure Virtual Machines for High Availability

  • Virtual Machines
  • Create VM
  • PowerShell DSC and Custom Script Extension
  • Scale ARM VMS
  • VMSS
  • Monitoring VMs
  • Dev Test Labs
  • VM Storage

Design and implement Azure DevOps

  • CI/CD Pipelines
  • VSTS
  • Deployment in pass and VM’s
  • Scheduled deployments

Manage Azure Active Directory (AD)

  • Manage Identity, Application and Network Services
  • Overview of Azure Active Directory
  • Azure Active Directory B2C
  • Azure Active Directory B2B
  • Key Vault
  • Azure Graph API

Azure Virtual Networks and Network Security

  • Redis Caching
  • Azure search
  • Virtual Networks
  • Configure Virtual Network
  • Hybrid Network Connectivity
  • ARM VM Networking
  • Azure security and recovery services

Developing Solutions That Use Relational Database and Azure Blob Storage

  • Azure DB Services – SQL DB
  • Azure Notifications
  • Backup and Restore
  • Enabling Geo-Replication
  • Export source Database
  • Scale Azure SQL Databases

Developing Solutions That Use Azure Table Storage & Cosmos DB

  • COSMOS DB
  • Azure Key Vault
  • Azure App Insights

Azure Command Line Interface (CLI) and PowerShell

  • Resource management and deployments using PowerShell and CLI
  • ARM templates
  • Implement ARM templates
  • Control Access
  • PowerShell runbooks
  • Azure Automation
  • Real Time Examples

Got a question for us? Please mention it in the comments section and we will get back to you.

 

0 responses on "Azure App Service Monitoring and Azure CDN"

Leave a Message

Your email address will not be published. Required fields are marked *