How to create an App Service plan in the Azure portal
Now, I’ll
show you how to create an App Service plan using the Azure portal. Later, I’ll
show you how to create a web app and deploy it to an app service using that App
Service plan.
8.
Log in to the Azure
portal.
9. Click New, then click See All, as
displayed in Figure 2-1.
Figure 2-1
Go to the Marketplace to search for a resource to add.
10. It opens the search screen for
the Marketplace (Figure 2-2). Type app service plan in the search box
and press Enter.
Figure
2-2 The input
screen for searching the Marketplace.
11. Select App Service Plan in the
search results, as shown in Figure 2-3.
Figure 2-3
The search results for App Service plan.
12. Click Create on the App Service
Plan blade displayed in Figure 2-4.
Figure 2-5 The fields to be filled in for your new App Service plan.
App Service Plan This is what you would like to name your App Service
plan. Make this something you can recognize when you want to use the plan
later.
Subscription If you have multiple Azure subscriptions administered by
this account, this will have a drop-down list of subscriptions, and you can select
which one to use.
Resource
Group Resource groups provide a logical container for a related set of
resources.
For example, you could put all of the resources you create for this book in the
same resource group. When you’re finished, you can delete the resource group,
and it will deallocate and remove all of those resources for you. Let’s create
a new resource group for our App Service plan; later in this chapter, we will
create a web app and assign it to our App Service plan. Leave the value as +New
and specify the name of your new resource group. It’s recommended that you
specify something that indicates what the resources are used for.
Location This is the Azure region where the resource group will be
hosted. This includes metadata such as audit logs, where each resource in the
group resides. This can be different from the resources themselves; this is
important for those who care about where data is hosted—for example, those in
countries with data sovereignty laws. Also, Resource Manager operations are
sourced through this region, so you typically want it to be the same as most of
the resources in the group. For our example, select the region closest to you.
Pricing
Tier Click this field to see your choices. The new blade (displayed in
Figure
2-6) shows
the recommended pricing plans. This is a subset of all of the available pricing
tiers. If you want to see all of the plans, click View All on this blade. The
pricing plan lets you specify the amount of storage, scalability, backup
choices, and so on.
Figure 2-6
The Pricing Tier blade.
Select the
S1 Standard pricing plan and then click Select at the bottom of the blade. Now,
your App Service Plan blade should display the pricing plan you selected.
14. Select the check box on the
bottom of the App Service Plan blade that says Pin To Dashboard. This will pin
a tile to the
Dashboard
showing your App Service plan, providing easy access to it. Now, click Create.
It creates the plan and adds a tile to your Dashboard.
15. After the App Service plan is
created, you can click the tile on the Dashboard and modify it. You can also
see what apps are using that plan. After the web app is created and deployed,
I’ll show you how to scale the apps by scaling the App Service plan.
At this
point, you can create one or more app services, such as a web app, and assign
them to that App Service plan. They will all run on the same VMs.



