Open YouTube

Configure Azure App Service | AZ-104 | Episode 23

autoenpublicupdated

Azure App Service Overview

  1. App Service and App Service Plans provide a platform as a service model for deploying applications without managing full Windows or Linux operating systems.
  2. App Service Plans allocate resources, while App Services provide the runtime environments where applications run.
  3. App Services support application types such as web apps, mobile apps, function apps, and logic apps.

Runtime Support and Compatibility

  1. Azure App Service supports current major runtime stacks such as .NET, ASP.NET, and PHP, but older applications may still run if deprecated calls are not required.
  2. Microsoft gives advance notice before deprecating supported runtime versions, allowing time for evaluation or code updates.
  3. An App Service name must be globally unique because it becomes part of a public Azure website URL, though DNS CNAME records can map it to a custom name.

Deployment Slots

  1. Deployment slots are available depending on the App Service Plan tier: free, shared, and basic have none; standard includes five; premium includes twenty.
  2. Slots support common environments such as dev, test, QA, staging, and production, helping move code through release stages.
  3. Deployment slot swapping allows warmed-up code to move into production quickly and be swapped back if problems occur.
  4. Slots can manage environment variables, connection strings, credentials, and identities so settings change appropriately between environments.
  5. Deployment slots support testing approaches such as blue-green testing, A-B testing, and canary testing by routing traffic to specific slots.

Identity, Domains, and Backup

  1. App Services include identity provider integration, including Microsoft Entra ID and third-party identity providers.
  2. Custom domain names can be configured for App Services in addition to the default Azure website domain.
  3. Built-in App Service backup capabilities exist, but they do not replace an organization's own backup strategy.

Scaling App Service Plans

  1. Scaling up or down changes the App Service Plan tier, resources, and available features such as deployment slots.
  2. Scaling in or out changes the number of App Service Plan instances.
  3. Autoscale rules can be based on metrics, operators, thresholds, time windows, cooldowns, minimums, maximums, and schedule-based conditions.
  4. When multiple autoscale rules apply, Azure uses the greatest required instance count produced by the rules.

Slot Swap Demonstration

  1. The demo shows a production slot with one web app page and a staging slot with a Hello World page under the same App Service Plan.
  2. The staging slot is swapped with production, causing the production URL to show the Hello World code without changing the URL.
  3. The swapped slots can be quickly swapped back if needed.

Resource Planning

  1. Multiple App Services can share one App Service Plan, but one app can consume shared resources and affect other apps in the same plan.
  2. When an App Service Plan scales because one app consumes resources, the entire plan scales, including other apps inside it.
  3. In many cases, an App Service Plan should align closely with the App Service it hosts, except when apps need to be deployed together.

Conclusion

  1. App Service Plans provide resources and services, while App Services provide runtime environments and feature sets for modern application development.
  2. App Services can host monolithic applications but are especially well suited for microservice deployments.

Actiepunten

  1. Investigate whether older applications can run on current supported runtimes by testing for deprecated or breaking changes.
  2. Use an organizational backup strategy in addition to built-in App Service backups.
  3. Watch other videos in the course or explore Microsoft Learn at aka.ms/learn to continue learning.