How do you deploy an IIS Web App as a folder instead of a virtual application in Azure Devops pipeline? - iis

We have a release pipeline that publishes Virtual Applications from zip-files fine.
However we have some artifacts that we would like to be just a folder and not an application.
Is it possible to define that it should be deployed as a folder somewhere?
We are using the IIS Web App deploy task.

Related

Azure App Service FTP is not pointing to correct wwwroot Folder

I'm experiencing very weird issue with Azure App Service FTP. Was able to connect and deploy asp.net core 3.1 app using FTP, after setting up azure devops CI/CD FTP is no more points to website folder.
Here is my ftp folder (FTP Folder has only wwwroot, deleted everything, but website is functioning)
Here is my app service editor window (App Service Editor shows a lot of files in the same folder and website actually operates from this folder)
Has anyone experienced this issue? I've had this issue before without any CI/CD implementation and had to delete app service and create a new one, but can't do so each time.
Any solution?
Thanks.

Azure Devops Deploy asp.net website(not webapp)

I want to configure Azure DevOps to deploy code (website) from git repository to my on premise server.
For ASP.NET Website you should first pushed the entire code from local to Azure DevOps.
Then create a Build Definition in Azure DevOps to build your project.
Some steps for your reference:
Install IIS Web App Deployment Using WinRM extension since you want to deploy app to your web server
2 . Add Windows Machine File Copy step to copy files to your web server
Add WinRM-IIS Web App Management step to create or update web site in IIS
Add WinRM-IIS Web App Deployment step to deploy app to web site (step 4)
You could also take a look at this thread: Automated Deployement of ASP.Net MVC Website In IIS server with a Continuous Deployment

How do I mount an already existing php app to an empty azure php web app

Ok so I created an empty php web app in Azure, and I already have an existing php app that I have only tested locally, question is: How do I "transfer" that app to that empty php web app I created in Azure?
To migrate your existing PHP app to Azure Web Apps, you might need to do the following things:
Deploy all files of your PHP app to a virtual directory's root (D:\home\site\wwwroot) using FTP or source control:
Deploy your app to Azure App Service using FTP/S
Local Git Deployment to Azure App Service
Configure PHP in Azure App Service Web Apps
Azure Web Apps run on Microsoft IIS. If you have ever had your project run on Apache Web server, you also need to translate .htaccess ontent to IIS web.config.

Add website to Azure Cloud Service

We are currently in the process of building a website on azure. At this moment I have a cloud service that is hosting my web api. Deploying to azure works like a charm.
Besides this project we have a pure HTML AngularJS project. I can publish this website as a WebApp. Though, is it possible to deploy it together with the web api?
You can deploy the second one as a Virtual Application/ Directory (Remember to check the Application check box):
You can use this link on how to publish to Root App as well as Virtual directory in your Azure subscription:
http://blogs.msdn.com/b/tomholl/archive/2014/09/22/deploying-multiple-virtual-directories-to-a-single-azure-website.aspx

How to deploy Azure Website with Virtual Application using VSO Continuous Deployment

I have a Microsoft Azure Website and a virtual application running under it that I have configured. I am able to deploy both the main web application and the virtual application successfully by right clicking on each project and selecting publish. The main web application deploys to the site root, and my virtual application deploys to its sub directory (in this case it's /Api).
We keep our code under source control in Visual Studio Online which you can connect to an Azure website for continuous deployment. However, when I run the build for the virtual application (Api) it deploys it to the root of the site and not to /Api.
I have a number of other cloud services and websites utilizing CD already. It's the virtual application part that is giving me trouble.
The out of the box deployment build only deploys a single application. In this case your site.
To deploy multiple applications you need to use the DefaultTemplate.12.xaml and create a PowerShell to do your deployment in the post-test script step.
This problem will be fixed by a new build system being developed by MSFT...

Resources