Shalem
Shalem

Reputation: 1516

How to Publish .Net solution containing multiple projects through Visual Studio to Azure

I'm having a .Net Solution with 2 Projects. I've created a webapp in azure for deployment. So, i downloaded publishsetting file from Azure webapp.

Is there anyway to publish the entire solution[multiple projects] to that webapp using downloaded publishsettings file.

I see that only one project can be published to azure. Please suggest

Upvotes: 1

Views: 1937

Answers (1)

Rob Reagan
Rob Reagan

Reputation: 7686

Hosting on the same Azure Web App with different slots

First, you'll need to define your second slot. This can be done in the portal by navigating to your Web App's management blade, then clicking the Deployment Slots menu option. Once a slot is defined, you can click on it under the Deployment Slots menu, and you'll be taken to a totally separate Overview tab for the slot. Note that on this page, you can download a totally separate Publish Profile for the slot.

With two web applications in the same Visual Studio solution, you can right click on each, choose "Publish", then use a primary or slot publish profile to determine where each web application will be published.

Multiple custom domain names for different web applications in one Azure Web App

Use the same steps as above. After publishing both of your sites (using two slots - the primary and the new slot you define), browse to the Custom Domains tab in each slot. Here, you can set up each custom domain so that Azure will route traffic to the appropriate slot accordingly.

Upvotes: 1

Related Questions