How to Deploy Multiple Apps on Azure WebApps

Posted by Anuraj on Friday, June 23, 2017

Azure Web App Azure

This post is about deploying multiple applications on an Azure Web App. App Service Web Apps is a fully managed compute platform that is optimized for hosting websites and web applications. This platform-as-a-service (PaaS) offering of Microsoft Azure lets you focus on your business logic while Azure takes care of the infrastructure to run and scale your apps.

Once you created the Web App, open the portal, select the Web Application, Select Application Settings under Settings from the Web Application. Then scroll down until you reach “Virtual applications and directories” configuration.

Virtual applications and directories

You need to set the virtual directory name, which will be the part of your URL. Next you need to set the Physical path, relative to the site root, finally you need to select the Application checkbox. You can create the directory either using Kudu console or using the Cloud Shell.

Once you’re configuring the virtual directory in portal, you can do the same configuration in the publish settings in Visual Studio. It is little tricky in Visual Studio 2017, since in VS 2017 when you select the Publish option, you need to select the Import Profile option and need to click on the Button, which will launch the Open File Dialog and once you select the File, VS will start publishing the code. If you want to publish only to the sub directory or new virtual directory, you can modify the PublishSettings file. In the file you need to modify the msdeploySite element and destinationAppUrl element. In both you need to append the newly created virtual directory.

Edit Profile settings

Once you did that you can open it and it will publish the app to the specific virtual directory.

Settings - Publish Profile

Once the publishing is done, you’ll have your multi-project solution successfully deployed in separate virtual directories within a single Azure Website.

Happy Programming :)


Similar Posts


Did you like this article? Share it with your friends

Facebook Twitter Google+ LinkedIn Reddit StumbleUpon



Subscribe


Copyright © 2017 - Anuraj P. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Hosted with ❤ by GitHub