DEV Community

Segun Ade
Segun Ade

Posted on

Deploy A SAMPLE APP USING Azure CLI

To open the Azure cli click on the green box where the red arrow points.

Image description

Create the resource group: use the command az group create --name –-location in the code snippet below, i have chosen to use the name bobobrp.

Image description

Then create a resource group az group create --name bobobrp --location eastus. This command creates the resource group bobobrp

Create an App service plan: An app service plan provides the necessary compute resources to run your applications and manage the scaling and availability of the apps.

Use the command : az appservice plan create --name ourAppServicePlan --resource-group bobobrp

Image description

Break down the parameters:
: Specify a name for your App Service Plan.
: name of the resource group where you want to create the App Service Plan.

Create an Azure App Service app: If you haven't already created an Azure App Service, you can create one using the Azure CLI by running the command az webapp create . With the supplied name (i used bobofishandfishes), resource group, and app service plan, this command will build a new web app.
Note: Remember to create the resource group first before using it in the command

Image description

Web app created

Top comments (0)