0
votes

Physical path is getting wrong of IIS Web App Manage while releasing the project. One path is the actual path I given in the Physical path (%SystemDrive%/DevOps/WebApi)field and the release moving only to the IIS default path that is "c:/inetpub/wwwroot" enter image description here

yellow colored files are from wwwroot and the red color is actual release. I need to deploy under Default Web Site not under the Sites folder Pipeline enter image description here enter image description here enter image description here

1

1 Answers

2
votes

I need to deploy under Default Web Site not under the Sites folder

If you want to deploy Web App under Default Web Site, you could specify the Website name Api instead of /Api in the Stage:

enter image description here

enter image description here

Note: If those yellow colored files are generated by the web app you deploy Api, you need to check the Physical path in the IIS of your default web page.

Update:

I need to deploy under the " Default Web Site" because only port 80 is open for public access

To achieve this, we need to provide "Virtual Application" input as Api in the IIS web app deploy taskļ¼š

enter image description here

Now, I could deploy the web app under the " Default Web Site":

enter image description here