Deploying multiple virtual directories in the same Azure Website

rajindersingh's Avatar


26 May, 2015 02:59 AM


We have a scenario where we have 3 different websites. One of them is the primary site deployed to Azure website. Other two websites are virtual directories inside the same azure website.
This blog post describes our scenario well

Has any one done this before?

I am assuming that we have to push additional files into the web deploy package.

Any pointers for this will be helpful?


  1. Support Staff 1 Posted by Feodor Fitsner on 26 May, 2015 03:08 AM

    Feodor Fitsner's Avatar

    Nice article, thanks for sharing it.

    As far as I understood you should have 3 Web Deploy packages - one for primary web site and others 2 for virtual directories. If it's a single VS solution you should end up with 3 Web Deploy artifacts in build results.

    Next, you setup 2 virtual directories using Azure Portal.

    Then you setup 3 Web Deploy publishinga - 1 for primary site and 2 for virtual directories (specify <website>/<vdir> in their site name fields).

  2. 2 Posted by daleholborow on 23 Sep, 2015 11:29 PM

    daleholborow's Avatar

    So, this had me tearing my hair out again today. If anyone else has issues on deployment to Azure with a vague error on the final deployment step, I found that I had to publish each project to its virtual directory within Visual Studio first (by connecting to my Azure subscription and using the publish profiles). This apparently sets the correct Access Control List (ACLs), after which, you can then use Appveyor to deploy to virtual directories without issue. I don't think there's any step i am missing in my configuration, and the deployment error message is so vague as to be useless, so hopefully this helps someone in future.

  3. Support Staff 3 Posted by Feodor Fitsner on 23 Sep, 2015 11:55 PM

    Feodor Fitsner's Avatar

    Wow, that's kind of tricky! Thanks for sharing that.  Just wondering why wouldn't you just switch to regular VMs to simplify the things?

    - Feodor

  4. 4 Posted by daleholborow on 24 Sep, 2015 01:41 AM

    daleholborow's Avatar

    I was originally interested in reduced maintenance / manual upgrades etc for the server (ie. i wanted the hands-off approach of Azure Websites, rather than running patches etc to VMs). I've also read a few articles critiquing the VM performance in Azure (admittedly a bit old now), but in future we'll have to revisit the discussion and make a decision for VM / Website / own hosting.

  5. Support Staff 5 Posted by Feodor Fitsner on 24 Sep, 2015 01:47 AM

    Feodor Fitsner's Avatar

    Yeah, sometimes Azure Cloud Service is like a blackbox and you can stare for hours on "Recycling role..." message while deploying

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:00 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac