concept web app in category azure

appears as: web apps, web app, web app, web apps, The web apps, The web app
Learn Azure in a Month of Lunches, Second Edition

This is an excerpt from Manning's book Learn Azure in a Month of Lunches, Second Edition.

With PaaS solutions such as Web Apps, the infrastructure is intentionally abstracted. As the names of some of the service plan tiers imply, web apps run across a shared platform of available resources. That’s not at all to say that web apps are insecure and that others can view your private data! But compliance or regulatory reasons may require you to run your applications in a controlled, isolated environment. Enter App Service Environments: isolated environments that let you run App Service instances such as web apps in a segmented part of an Azure data center. You control the inbound and outbound network traffic, and can implement firewalls and create virtual private network (VPN) connections back on your on-premises resources.

In Azure, you can automatically scale IaaS resources in and out with virtual machine scale sets. These scale sets run identical VMs, typically distributed behind a load balancer or application gateway. You define autoscale rules that increase or decrease the number of VM instances as customer demand changes. The load balancer or app gateway automatically distributes traffic to the new VM instances, which lets you focus on how to build and run your apps better. Scale sets give you control of IaaS resources with some of the elastic benefits of PaaS. Web apps, which we didn’t cover a lot in the past couple of chapters, make a solid reappearance in this chapter, providing their own ability to scale with application demand.

Figure 9.3 To manually scale a web app vertically, you change the pricing tier (size) of the underlying app service plan. The app service plan defines the amount of resources assigned to your web app. If your application requires a different amount of storage, number of CPUs, or deployment slots, you can change to a different tier to right-size the assigned resources to the application demand.
  • Create a web app that uses a local Git repo for deployment, as you did in chapter 3:
  • az webapp create \
      --name webappmol \
      --resource-group azuremolchapter9 \
      --plan appservicemol \
      --deployment-local-git

    All the concepts and scenarios for autoscale rules and scale-set schedules discussed in section 9.2.2 also apply to web apps. As a quick recap, here are a couple of common scenarios for autoscaling web apps: