Open In App

Microsoft Azure – Create App Service Plan For Linux (Azure CLI)

Improve
Improve
Like Article
Like
Save
Share
Report

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.


Last Updated : 30 Mar, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads