Is it possible to add a virtual directory (like in IIS) to an existing website, hosted in Azure App Service. If so can this be done via the Azure Portal?
Asked
Active
Viewed 1.3k times
1 Answers
16
Virtual Directories are supported for Azure Websites. See Configuring Azure Websites for what you can do through the Azure Management Portal.
From the Azure Portal:
Click on the Website and go to Configure.
Then scroll down to virtual applications and directories (the last config section).
Enter your virtual directory and the physical path relative to the site root and click Save.
As an alternative to Azure Websites, you could use the Cloud Services Web Role or Virtual Machine capability. You could also use Azure Storage to link to your static content.

Trevor Reid
- 3,310
- 4
- 27
- 46

SliverNinja - MSFT
- 31,051
- 11
- 110
- 173
-
2Not sure this is still applicable. If you actually configure the site on Azure, you can set virtual directories under the Configure tab of the site. – StephenPAdams Feb 13 '14 at 04:42
-
3@LookitsPuck - you are correct. I don't see an official announcement from MS on it, but there is [documentation regarding **virtual applications and directories** for websites](http://www.windowsazure.com/en-us/documentation/articles/web-sites-configure/). I also see the option to create **virtual directories** or **applications** under Configuration for websites now. – SliverNinja - MSFT Feb 13 '14 at 16:28
-
2Indded, virtual directories are now available for Azure Websites. – pilau Oct 06 '14 at 09:40