Work@Microsoft    Study@UW.edu    Live@Seattle

How to deploy to the Virtual Directory in an Azure website

How to deploy to the Virtual Directory in an Azure website
5 (100%) 1 vote

Last month, I shared how to map a sub-domain to an Azure website.   For example, I own the domain http://scottge.net.  The solution would allow me to deploy an website to its sub-domain: http://ask.scottge.net.

This post is about deploying your website to the Virtual Directory of an existing Azure website.  For example, I have the website http://demos.scottge.net.  I want to deploy an Image Gallery website to its Virtual Directory: http://demos.scottge.net/ASPNET-MVC-ImageGallery.

1. Add a Virtual Directory to your Azure website

Go to the Configuration tab of the Azure website, and scroll down to the section ‘virtual applications and directories’.

Add a new virtual directory.  I name it as “ASPNET-MVC-ImageGallery” in my case.   Tick the ‘Application’ checkbox and save the changes.

2. Deploy the website to the Virtual Directory

First, download the publishing profile of the root website.  In my case, it is the publishing profile for scott-demos (aka. demos.scottge.net).

Next, modify the following two locations in the ‘Connection’ setting to append the virtual directory name.

Last, click Next, and publish the website.

 

 


Comments to How to deploy to the Virtual Directory in an Azure website

Leave a Comment

Your email address will not be published. Required fields are marked *

Loading...
ScottGe.net