TFS-2017 web interface issues - azure-devops

I have created a release pipeline in TFS web interface. Instead of default website, I have created a new website in IIS in dev server.
How to configure this website in IIS WEB APP MANAGE and IIS Web App Deploy what is the path I have to give in Virtual Application in IIS WEB APP MANAGE and IIS Web App Deploy in TFS web interface.

IIS Web App Manage:
Creating an IIS Web Site and Application Pool. Typically this is only needed the first time deploying to a target machine.
Example: To create an application Site/Application enter /Application as the Virtual path . The parent website should be already existing.
IIS Web App Deploy:
If you have created the web site/application, then you just need to deploy it directly with IIS Web App Deployment task.
You can reference this thread : https://stackoverflow.com/a/45706103/7466674

Related

How do you overwrite the msdeploy parameter setParam:name='IIS Web Application Name',value when deploying from VSTS

I am able to deploy a website to a VM in AWS using VSTS. My code is hosted in git on VSTS. When I deploy using IIS Website. In the IIS Web App Deploy
In Additional Arguments I specified -setParam:name='IIS Web Application Name',value='Default Web Site\TestVSTS. But it still gets deploy to 'Default Web Site'
And on the log file on VSTS i can see the command not getting overwriten with my command. Any body having the same issue ?
Log File Command being executed by vsts :
C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package='C:\vstsagent\A2_work\r3\a\temp_web_package_2238626544802922.zip' -dest:auto -setParam:name='IIS Web Application Name',value='Default Web Site' -enableRule:AppOffline -enableRule:DoNotDeleteRule
Update : Set WebSite to "Default Web Site " and Virtual Application to "TestVSTS" Still did not work. Look Below to see what I did and it did work
Update this Work
The IIS Web App Deploy task has already included –setParam parameter.
Based on the parameter, you want to specify web application name, you just need to specify Website Name (Default Web Site) and Virtual Application (TestVSTS) in IIS Web App Deploy task.

Build and Publish ASP.NET Web Site Team Services

How do you go about setting up the build / publish for an ASP.NET web site (not a compiled application).
I have a classic simple site with primarily static assets. The only reason for the site is an aspx page that is used for a contact form email.
Simple steps:
Install IIS Web App Deployment Using WinRM extension if you want to deploy app to your web server
Create new build definition with Asp.Net Build (PREVIEW) template (select ASP.NET Build PREVIEW template when create build definition)
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 also can refer to this thread: Automated Deployement of ASP.Net MVC Website In IIS server with a Continuous Deployment
If you want to deploy app to azure, you can add Azure App Service Deploy step to deploy your app to azure (do not install previous extension and remove step 3, 4, 5)
You also can refer to this article: Deploy ASP.NET apps to Azure web apps
What I was looking for was publishing a ASP.NET 2.0 Web Site (not an application that requires a build).
It ended up being pretty easy. I have mostly static files, but there is one aspx page for that is used for a contact form. I followed this solution but tweaked it a bit.
All I needed to do was add the npm and gulp task. My gulp task does as the answer suggests - copies all of my pertinent files to a folder called dist. From there, I copy everything from the dist directory to the $(Build.ArtifactStagingDirectory).
Then it is just a matter of publishing the $(Build.ArtifactStagingDirectory) to the server (a drop directory similar to the examples of building an MVC app).
I wired in the release for CI / CD.

How to upload pure HTML site with TFS build

Our web site solution consists of frontend folder, where pure html/css/js application resides, and an ASP.NET WebAPI backend. I am setting up a TFS build for dev and qa environment.
Currently, I have made WebAPI backend to publish automatically via WebDeploy. Html/js fronend also has a site setup on a target IIS machine where I am trying to deploy to. But WebDeploy only works with ASP.NET sites. What mechanism I could utilize to copy files of fronend to target folder on IIS machine?
This might help:
http://www.incyclesoftware.com/2014/06/deploying-uncompiled-resources-release-management/
I haven't had a chance to test it myself yet.

Hosting Asp .Net MVC3 Web Application in IIS 7.5

We have developed an application using Asp .Net MVC3 for our Organization.we want to host that Application to Access the Same using a Link from other systems.I did publish the web Application by right clicking on its properties and used web deploy option.Now i can see that Application in IIS under Default website and when i give browse i can view the Application running Properly.but when i try to access the same from another computer using the same link with my system's Ip Address i couldn't Access the Same.It would be great if we get any assistence on this issue.we r struggling on this for past 2 days

Automate Application Installation with Powershell

I need to write a powershell script that would install my team's web application and all the web application's dependencies (ie: telerik, asp.net mvc3, third-party assemblies) with a single click of a button. Is this possible? Or does someone have to click "Next" to go through an installation wizard?
Sounds like a job for MSDeploy. This ships with PowerShell cmdlets (and a regular console executable.)
http://www.iis.net/download/webdeploy
Features
Seamless integration with IIS 7.0
Manager and Visual Studio 2010
interface for creating packages and
deploying them onto a machine, both
locally and remotely.
Seamless integration with the Web
Platform Installer to install
community web applications simply and
easily.
Web application packaging:
Ability to package a Web application
or an entire site, including the
associated databases.
Ability to package ACLs, COM, GAC and
registry settings.
Supports both live servers and zipped
packages as a source or destination.
Web application deployment:
Administrative privileges are not
required in order to deploy Web
applications.
Ability to add powerful parameters to
change text in files when they are
deployed (such as prompting to
replace a connection string when
deploying from QA to staging
environments).
Integration with the IIS 7.0 Web
Management Service (WMSVC) for remote
deployment by non-administrators.
Server administrators have granular
control over the operations that can
be performed and can delegate tasks
to non-administrators.
Web server migration and synchronization:
Ability to synchronize or migrate the
entire Web server, a Web site or
application. Synchronizes only the
data that has changed.
Ability to detect missing
dependencies during synchronization.
Automatically gathers content, IIS
configuration, SSL certificates and
ASP.NET configuration when you sync a
Web site.
In addition to the IIS Manager and Visual Studio 10, tasks can be performed using the command-line or public APIs.
-Oisn