Azure

In an ideal world, when deploying your website to an Azure App Service you should be using Continuous Integration (CI) and Continuous Deployment (CD) tools like TeamCity, Octopus Deploy or Azure DevOps. However if you are running a small site or just want to quickly deploy to an Azure App Service then Visual Studio Publish is recommended.

This guide walks through setting up Visual Studio Publish to enable quick deployment to your Azure App Service in just a few clicks.

Step 1: Download Publish Profile

First, access Azure and navigate to your Azure App Service. Click the Get publish profile button. This downloads the Azure App Service’s *.PublishSettings file for later use.

Azure App Service Get publish profile

Step 2: Open Publish Dialog in Visual Studio

In Visual Studio, right-click your site project and select Publish…

Visual Studio Project Publish

Step 3: Create New Publish Profile

The Publish dialog appears. Click the + New button.

Visual Studio New Publish

Step 4: Import Profile

Select Import Profile - Import your publish settings to deploy your app, then click Next.

Visual Studio Import Profile

Step 5: Select PublishSettings File

Click Browse… and select the *.PublishSettings file downloaded earlier, then click Finish.

Visual Studio import publish browse

Step 6: Review and Configure Settings

Web Deploy is now added. Verify the Settings and click the Pencil icon to modify Configuration, Target Framework, and other required settings.

Visual Studio Publish settings

Step 7: Deploy

Web Deploy is configured. Click the Publish button to deploy to your Azure App Service.

Visual Studio Publish button

The Output window displays deployment scripts, and upon completion, your Azure App Service URL opens in a browser.