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 I'd suggest using Visual Studio Publish.

Below I'll take you through the steps to set-up Visual Studio Publish and once that is done you will be a few clicks away from deploying your project.

1. First login to Azure and navigate to your Azure App Service that you want to deploy to, then click the Get publish profile. This will download the Azure App Service's *.PublishSettings file which we'll use a little bit later.

Azure Get Publish Profile

2. Next in Visual Studio right click your site project and click Publish...

Visual Studio Site Publish

3. This will bring up the Publish dialog, here click the + New button.

Visual Studio New Publish

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

Visual Studio Import Profile

5. Here we click Browse... and select the *.PublishSettings file we downloaded earlier and hit Finish.

Visual Studio Publish Settings file

6. Web Deploy is now added, however double check the Settings and click the Pencil to modify any settings required for Configuration, Target Framework, etc.

Visual Studio Publish Settings

7. Web Deploy is now set-up to deploy to your Azure App Service and you are ready to deploy. To deploy simply click the Publish button.

Visual Studio Publish button

That's it! This will run scripts in the Output window and when it has finished it will load up your Azure App Service URL in a browser.