Scaling and Resilience
This course will show you how to design and create web applications using the Azure App Service.
By the end of this course, you'll have gained a firm understanding of the key components that comprise the Azure App Service. Ideally, you will achieve the following learning objectives:
- A solid understanding of the foundations of Azure web app development and deployment.
- The use cases of Azure Web Jobs and how to implement them.
- How to design and scale your applications and achieve consistent resiliency.
This course is intended for individuals who wish to pursue the Azure 70-532 certification.
You should have work experience with Azure and general cloud computing knowledge.
This Course Includes
- 1 hour and 35 minutes of high-definition video.
- Expert-led instruction and exploration of important concepts surrounding Azure Web Apps.
What You Will Learn
- How to deploy and configure Azure web apps.
- How to implement Azure Web Jobs.
- Scaling and resilience with Azure web apps.
In order to deploy a Web App, you must create or specify an existing App Service plan. An App Service plan defines the supported feature set and capacity of a group of virtual machine resources. An App Service plan defines a Pricing tier such as Free, Shared, Basic, and Standard. Each of these of these Pricing tiers has subcategories that further define the capabilities and capacity such as disk space, number of applications, maximum instances or available processor time.
An App Service plan is unique to a specific Region, Resource group, and Subscription. This means that two Web Apps can be in the same plan only if they're in the same Region, Resource group and Subscription.
Let's create a new Service plan that's part of our Web App creation. To do so, we'll have to go through the Azure portal. So let's go there now. On the menu on the left, you can see that there's an option called App Services. So we click on that. We'll have a panel that pops up, shows us our existing Web Apps. We want to select Add a new App. So click Add, and clicking on Add allows us to select a new App name, so we can add a new App. Let's say, NewAppCa for Cloud Academy. We'll use the existing Resource Group, and let's select the App plan. So we can select the existing one, but we're going to create a new one. So we can give it a name, so we can say, NewServicePlanCa. Now we can select also a geographical location, we can select any of the locations that are listed in this drop-down box. Let's just select for ourselves now, Western USA. Now we can select the Pricing tier. So clicking on the Pricing tier will show us the available options. When you first click on it, it will give you a preset list of just the three, which are the Standard, Basic, and Premium. But if you click View all on the top right, you can see all of the various App plans. Select the Free one, and clicking Select now, allows us to complete the App Service plan creation, and carry on with the rest of the Web App creation process.
To use an existing Web App Service plan when creating a Web App, simply select the plan as part of the Web App creation process. On this screen shot, you can see that there's the App Service plan/Location that is the selection option that we're referring to. Once your Webb App is deployed, you may wish to change the App Service plan at some point. Usually you'll do this to scale your Web App up or down, depending on changing requirements. You may wish to access certain resources only available in a higher tier plan or you may find that you don't require those features and wish to scale down to reduce costs. Or you might find that you simply need to reorganize your Web Apps between your existing App Service plans.
Now that we have our new App, changing the App Service plan is as easy as opening the Web App Settings and selecting Change App Service plan. You can find the option further down the menu on the right, the Settings menu, under the APP SERVICE PLAN section. Click Create New. And we're free to select the Pricing tier that we want. We can have the presets, Standard, Basic, or Premium. Or again, we can View all and select whichever plan suits us. So we select the D1 Shared and Select. Having selected a new Pricing tier, we confirm our selection and that completes the plan change.
In this section, we covered the topics of Deployment slots and how Deployment slots fit into certain Deployment strategies. We also discussed App Service plans and how they define the resources and features available to your Web App. Having covered the foundations of Web App Deployment, we can now move on to the details of Web App configuration.
About the Author
Isaac has been using Microsoft Azure for several years now, working across the various aspects of the service for a variety of customers and systems. He’s a Microsoft MVP and a Microsoft Azure Insider, as well as a proponent of functional programming, in particular F#. As a software developer by trade, he’s a big fan of platform services that allow developers to focus on delivering business value.