Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Publish Multiple Projects to Different Locations on Azure Website

Tags:

Feel free to recommend a better title or changes to my explanation below!

I am using Windows Azure Websites (for the first time) and have connected it to a solution in Visual Studio Online (also my first time). I was also able to connect to Visual Studio Online, create a project, throw up a master page and web form connected to a master page and my Azure website updated itself. Great!

My Issue

If I add another project to the solution it seems that this new project overwrites the files in the first one. I can't figure out how to set this up so:

Project 1 -> deploy to wwwroot (happens by default great!)

Project 2 -> deploy to wwwroot/sub/directory/ (doesn't seem to work)

Could somebody explain how to configure project 2 so that when the solution auto deploys to an Azure Website that it goes to a specific location?

like image 893
Markus Avatar asked Jan 24 '14 20:01

Markus


People also ask

How do I publish my Azure project?

Create or open an Azure cloud service project in Visual Studio. In Solution Explorer, right-click the project, and, from the context menu, select Convert > Convert to Azure Cloud Service Project. In Solution Explorer, right-click the newly created Azure project, and, from the context menu, select Publish.


1 Answers

  1. Go to the Configure tab for the site in Azure portal.
  2. Scroll all the way to the bottom then add a new application where ever you want like Project2 below.

    Basically the 'Project2' part is the URL after the root '/' and the 'site\wwwroot\Project2' is where the actual folder should live under the site root

  3. Download the publishing profile and import it in Visual Studio, then add the application name after your site name like below. Also remember to update the destination URL as well

hope that helps

like image 185
ahmelsayed Avatar answered Sep 21 '22 06:09

ahmelsayed