I am attempting to use Visual Studio's Team Explorer and TFS to create a Build Definition to deploy a MVC site to IIS.
I followed the Pluralsight tutorial called 'Continuous Deployment with Team Foundation Server 2010'.
The steps I followed from the tutorial included:
- Installed IIS Management Scripts and Tools
- Installed Management Service
- On the Management Service I allowed remote connections and enable Windows Credentials Only
- Installed Web Deploy
- Created a deployment domain account
- Allowed domain account permissions to modify IIS file system
- Set delegation rules using this domain account
- Set IIS Permissions using domain account
The MSBuild arguements I set in the build definition were:
/p:DeployOnBuild=true
/p:DeployTarget=MSDeployPublish
/p:CreatePackageOnPublish=False
/p:MSDeployPublishMethod=WMSVC
/p:SkipExtraFilesOnServer=True
/p:AllowUntrustedCertificate=True
/p:MSDeployServiceUrl="https://<iis server name>:8172/msdeploy.axd"
/p:Username="<domain>\<user>"
/p:Password="<password>"
/p:DeployIISAppPath="Default Web Site/<site name>"
I queued a build and it passes, is written to the drop folder but NOT to IIS.
I published the MVC application from the Solution Explorer using the same property values and it was successfully deployed to IIS.
Does anyone know what I am missing?