Welcome to Azure App Service Quickstart

This guide will walk you through the essential steps to deploy your first web application to Azure App Service. App Service is a fully managed platform that enables you to build and host web apps, mobile back ends, and RESTful APIs in the programming language of your choice without managing infrastructure.

Prerequisites

Steps to Deploy

1

Create an App Service Plan and Web App

Navigate to the Azure portal and search for "App Services". Click "Create" and follow the prompts.

You'll need to choose a resource group, a name for your web app, and an operating system. Select a runtime stack suitable for your application (e.g., Node.js, Python, .NET).

Azure App Service Creation Screenshot
2

Choose a Deployment Method

Azure App Service offers various deployment methods. For this quickstart, we'll use Local Git deployment.

In your web app's settings, go to "Deployment Center" and select "Local Git". Azure will provide you with a Git URL and credentials. Note these down.

Alternatively, you can use tools like GitHub Actions, Azure DevOps, or WebDeploy. The choice depends on your workflow.

3

Configure Your Local Project

If you're using Git, make sure your project is initialized as a Git repository.

git init

Add your application files to the repository.

git add .
git commit -m "Initial commit"

Add the Azure App Service Git URL as a remote repository.

git remote add azure <your_azure_git_url>

Replace <your_azure_git_url> with the URL provided in the Azure portal.

4

Deploy Your Code

Push your local Git repository to the Azure remote. You'll be prompted for the Git credentials you set up in the Azure portal.

git push azure main

Wait for the deployment to complete. Azure will build and deploy your application.

5

Verify Your Deployment

Once the deployment is successful, you can visit your web app by navigating to its URL in your browser. It will be in the format http://<your_app_name>.azurewebsites.net.

Congratulations! You've successfully deployed your application to Azure App Service.

Next Steps