Microsoft Azure - Create App Service Plan For Linux (Azure CLI)
Last Updated :
30 Mar, 2023
An app service plan is a subscription model for hosting apps on Azure. It allows you to host multiple apps on a single server without having to pay for each app separately. In this article, we will show you how to deploy an Azure App Service Plan for Linux service type using Azure CLI (Command Line Interface) from Azure Portal in simple easy steps.
Prerequisites: Contributor Access on Subscription is required to create a resource group and app service plan.
Implementation
Step 1: Log in to Azure Portal
Step 2: Open Azure Cloud Shell and switch to PowerShell console or Bash to run the Azure CLI Commands
Step 3: Now create a New Resource Group using the CLI command.
Run the below following command to create a resource group in azure
az group create \
--location "<add location>" \
--name "<Add Resource Group Name>"
Example:
az group create \
--location "eastus" \
--name "Test-RG"
or
az group create --location "eastus" --name "Test-RG"
Sample Reference:
Step 4: Next create a Linux App Service Plan
Run the below following command to create Linux App Service Plan
az appservice plan create \
-g "<Add Resource Group Name>" \
-n "<Add App Plan Name>" \
--is-linux \
--number-of-workers <Add Number of Workers> \
--sku <Add SKU>
Example:
az appservice plan create -g
"Test-RG" -n "LinuxAppServicePlan"
--is-linux --number-of-workers 1 --sku F1
or
az appservice plan create \
-g "Test-RG" \
-n "LinuxAppServicePlan" \
--is-linux \
--number-of-workers 1 \
--sku F1
Sample Reference:
Once created verify the deployment in Azure Portal. If your deployment is successful! that means you are done. Now you can use this app service for hosting the services with Linux Plan.
Similar Reads
Microsoft Azure - Create App Services in Azure Portal In this article, we will learn about the new and improved experience for creating App Services. Azure App Service lets you create apps faster with a one-of-a-kind cloud service to quickly and easily create enterprise-ready web and mobile apps for any platform or device and deploy them on a scalable
5 min read
Microsoft Azure - Creating an App Service Plan App Service plans give you the flexibility to allocate specific apps to a given set of resources and further optimize your Azure resource utilization. The purpose of creating an Azure Service Plan is to save the cost of your resources. With one Azure App Service Plan, you can share across multiple a
1 min read
Microsoft Azure - Create Web Apps in Azure Here, In this article, we'll see how we can create an App Service Web App which lets you quickly build, deploy, and scale enterprise-grade web, mobile, and API apps running on any platform. App Service allows you to select your runtime stack (available stacks: Python, .Net, Java, PHP, Node, Ruby) wh
2 min read
Microsoft Azure- Add Extensions in Azure App Service In this article, we will learn how to add extensions to web applications in the Azure App service. We can add additional functionality to Azure app services by using extensions. Adding Extensions to Azure App Service: To do so follow the below-given steps: Step 1: Click on an "Instance" in my Azure
1 min read
Microsoft Azure - Azure App Service Managed Certificates In this article, we will learn what you can do with the Azure CLI Interactive Mode. You can do a lot of powerful things with the Azure CLI like create web apps and VMs and you can do even more with the CLI when you use its interactive mode. Let's try that. We'll try that in the Azure Cloud Shell, bu
3 min read