Radhika

AZURE APP FUNCTIONS

How to Set Up Azure App Service – Step-by-Step Guide

Azure App Service allows you to deploy and manage web applications without worrying about infrastructure. It supports .NET, Java, Python, PHP, Node.js, and more.


Step 1: Sign in to Azure Portal

  1. Go to Azure Portal.
  2. Sign in with your Microsoft Azure account.

Step 2: Create an Azure App Service

  1. In the Azure Portal, click on “Create a resource” (top left corner).
  2. Search for “App Service” and select “Create”.

Step 3: Configure Basic Settings

  1. Subscription: Select your Azure subscription.
  2. Resource Group: Choose an existing one or create a new one.
  3. Name: Enter a unique name (e.g., myappservice123).
  4. Publish: Select Code (if deploying a web app) or Docker Container (if using containers).
  5. Runtime Stack: Choose your preferred language (e.g., .NET, Node.js, Python).
  6. Region: Select the nearest data center for better performance.
  7. Operating System: Choose Windows or Linux based on your app requirements.

Step 4: Select a Pricing Plan

  1. Click on “Change Size” under the Plan and Pricing section.
  2. Choose a Free (F1) or Basic (B1/B2) plan for testing.
  3. Click Apply.

Step 5: Review and Deploy

  1. Click “Review + Create”.
  2. Check all settings and click “Create”.
  3. Wait for the deployment to complete (it may take a few minutes).

Step 6: Deploy Your Application

Once the App Service is created, you can deploy your code using different methods:

1. Using Azure Portal

  1. Go to App Services → Your App Service.
  2. Click Deployment Center.
  3. Select Local Git or GitHub for deployment.
  4. Follow the on-screen instructions to push your code.

2. Using Visual Studio Code (for Node.js, Python, or .NET Apps)

  1. Install Azure App Service Extension in VS Code.
  2. Login to Azure in VS Code (Ctrl + Shift + P → “Azure: Sign In”).
  3. Open your project folder and right-click on App Service.
  4. Click “Deploy to Web App” and select your app.

3. Using Azure CLI (for Manual Deployment)

  1. Open the terminal and log in:
    az login
  1. Select your app and deploy:
    az webapp up –name myappservice123 –resource-group MyResourceGroup –runtime “PYTHON:3.8”

Step 7: Test Your Web App

  1. Go to Azure Portal → App Services.
  2. Click on your app.
  3. Copy the URL (e.g., https://myappservice123.azurewebsites.net).
  4. Open it in your browser to check if the app is running.

Step 8: Manage & Scale Your App

  • To increase performance, go to Scale Up (App Service Plan) and choose a higher-tier plan.
  • To add custom domains, go to Custom Domains and bind a domain.
  • To monitor performance, use Application Insights.

Step 9: Stop or Delete (If Not Needed)

  1. Go to App Services → Your App Service.
  2. Click Stop (if you want to pause it) or Delete (to remove it completely).

Similiar Posts

View All AZURE

Download Syllabus

Fill up the form below to download the syllabus