MSDN Documentation: App Services Setup

Getting Started with App Services Setup

This guide will walk you through the essential steps to set up and configure your Microsoft App Services environment. App Services provides a robust platform for building, deploying, and scaling web applications and APIs.

Prerequisites

Before you begin, ensure you have the following:

Step-by-Step Setup Guide

1

Create an App Service Plan

An App Service plan defines a set of compute resources for your web app to run. You can think of it as the underlying infrastructure.

Steps:

  1. Navigate to the Azure portal.
  2. Search for "App Service plans" and select it.
  3. Click "Create".
  4. Fill in the required details: Subscription, Resource Group, Name, Operating System, Region, and Pricing Tier.
  5. Click "Review + create", then "Create".
Tip: For development and testing, the 'Free' or 'Basic' tiers are often sufficient. For production workloads, consider 'Standard' or 'Premium' tiers for better performance and scalability.
2

Create a Web App

A Web App is the actual resource that hosts your application code.

Steps:

  1. In the Azure portal, search for "App Services" and select it.
  2. Click "Create App Service".
  3. Select your subscription and resource group.
  4. Enter a unique name for your Web App. The domain name will be your-app-name.azurewebsites.net.
  5. Select the Runtime stack (e.g., .NET, Node.js, Python, Java).
  6. Choose the Operating System.
  7. Select the App Service Plan you created in the previous step.
  8. Click "Review + create", then "Create".
3

Configure Deployment Options

You can deploy your application code using various methods.

Local Git Deployment

This is a straightforward method for manual deployments.

  1. In your Web App's overview page, find the "Deployment Center" under the "Deployment" section.
  2. Select "Local Git" as your source.
  3. Configure Git credentials if prompted.
  4. Once configured, you will get a Git remote URL. Use this to push your code from your local machine.
git remote add azure <your-git-remote-url>
git push azure master

Azure DevOps / GitHub Integration

For continuous integration and continuous deployment (CI/CD), integrate with services like Azure DevOps or GitHub Actions.

  1. In the "Deployment Center", select your preferred CI/CD provider.
  2. Follow the on-screen instructions to authorize and configure the connection to your repository.
  3. Set up build and deployment pipelines.
4

Configure Application Settings

Application settings allow you to configure environment-specific variables for your app without modifying code.

Steps:

  1. Navigate to your Web App in the Azure portal.
  2. Under the "Settings" section, click "Configuration".
  3. Go to the "Application settings" tab.
  4. Click "New application setting" to add key-value pairs (e.g., database connection strings, API keys).
  5. Click "Save".
Note: Application settings are treated as environment variables within your application.

Next Steps

Once your App Service is set up and your application is deployed, consider exploring the following:

Learn More About Deployment