Author : MD TAREQ HASSAN | Updated : 2020/11/18
What is App Service Plan?
- App Service plan defines a set of compute resources for a web app to run (analogous to the server farm in conventional web hosting)
- An app always runs in an App Service plan
- App service plan is the container that defines a set of compute resources for your APP service is to use
- App service plan is the hosting configuaration/model by which the cost of resources (used by applications) will be calculated and billed
- Determines what features will be available and how you will be billed
What does App Service Plan do?
- Azure region: determines in which region the underlaying VMs will be provisioned
- Number of VM instances (scale-out, scale-in)
- Size of VM instances (CPU/RAM/Storage)
- Pricing Tier:
- Determines what App Service features you get
- Determines how much you pay for the plan
- Each tier also provides a specific subset of App Service features (the higher the tier, the more features are available)
Pricing
https://azure.microsoft.com/en-us/pricing/details/app-service/windows/
Creating app service plan using Azure portal
- Go to: https://portal.azure.com/#create/Microsoft.AppServicePlanCreate
- Fillup details
- Create and review > Create
Upgrading app service plan using Azure portal
- Go to resource groups: https://portal.azure.com/#blade/HubsExtension/BrowseResourceGroups
- Select target resource group > Select target App service plan
- Settings section > Scale up > Production > S1
- Apply
Creating App service plan using PowerShell
# Create resource group
New-AzResourceGroup -Name "demo-rg" -Location "Japan East"
# Create app service plan
New-AzAppServicePlan -ResourceGroupName "demo-rg" -Name "demo-asp" -Location "Japan East" -Tier "Standard"
Upgrading App service plan using PowerShell
# Upgrade app service plan
# Basic -> Standard
Set-AzAppServicePlan -Name "demo-asp" -ResourceGroupName 'demo-rg' -Tier Standard