Microsoft Docs

Azure App Service – Getting Started

Getting Started with Azure App Service

Azure App Service is a fully managed platform for building, deploying, and scaling web apps. Follow the steps below to create and publish a sample web application.

Prerequisites

Step 1 – Sign in to Azure

az login

Step 2 – Create a Resource Group

az group create --name MyAppRG --location eastus

Step 3 – Create an App Service Plan

az appservice plan create --name MyPlan --resource-group MyAppRG --sku B1 --is-linux

Step 4 – Create a Web App

az webapp create --resource-group MyAppRG --plan MyPlan --name my-sample-app-$(date +%s) --runtime "NODE|14-lts"

Step 5 – Deploy Sample Code

Clone the sample repository and push it to Azure.

git clone https://github.com/Azure-Samples/nodejs-docs-hello-world.git
cd nodejs-docs-hello-world
git remote add azure 
git push azure main

Step 6 – Browse Your App

After deployment, open the app in a browser:

az webapp browse --name  --resource-group MyAppRG

Next Steps