简体   繁体   English

TFS 2017版本定义。 WinRM - IIS Web App管理任务。 在“默认网站”下创建应用程序

[英]TFS 2017 Release definition. WinRM - IIS Web App Management task. Create application under “Default web site”

I am working on a release definition which will deploy a website to a test IIS server (Windows server 2012, IIS 8). 我正在研究一个发布定义,它将网站部署到测试IIS服务器(Windows server 2012,IIS 8)。

I would like to use the IIS Web App Management task to create and configure an application or virtual directory under "Default Web Site/Scott" 我想使用IIS Web App Management任务在“默认网站/ Scott”下创建和配置应用程序或虚拟目录

When I specify "Default Web Site/Scott" or "Default Web Site\\Scott" as the Website, the task fails due to the name attribute. 当我将“默认网站/ Scott”或“默认网站\\ Scott”指定为网站时,由于name属性,任务失败。

The Scott application will be created alongside many existing applications underneath the Default Web Site parent. Scott应用程序将与默认网站父级下的许多现有应用程序一起创建。 I don't mind if it shares the app pool. 我不介意它是否共享应用程序池。

Can I use the WinRM task? 我可以使用WinRM任务吗? If not, are there any alternatives apart from writing Powershell? 如果没有,除了编写Powershell之外还有其他选择吗?

In the WinRM - IIS Web App Management task, there is also a Parameters for IIS Application configuration you could simply configure to deploy the IIS Web Applications. WinRM - IIS Web App管理任务中,还有一个IIS应用程序配置参数,您可以简单地配置它以部署IIS Web应用程序。 However this is not available wit TFS for now: 但是目前TFS无法提供此功能:

The Visual Studio Team Services accounts that are using the preview tasks wiz. 使用预览任务Visual Studio Team Services帐户。 IIS Web Application Deployment or SQL Server Database Deployment , should move to this extension. IIS Web应用程序部署SQL Server数据库部署应移至此扩展。 All future enhancements to the IIS Web App Deployment task or to the SQL Server Database Deployment task will be provided in this extension. 此扩展中将提供IIS Web App部署任务或SQL Server数据库部署任务的所有未来增强功能。

Source Link 来源链接

For now you have to directly deploy a Web Application to the IIS Server with IIS Web App Deploy task which using Web Deploy. 现在,您必须使用Web部署使用IIS Web App部署任务将Web应用程序直接部署到IIS服务器。 You could add a environment variable IIS Web Application Name and use this as the website name, such as: 您可以添加环境变量IIS Web Application Name并将其用作网站名称,例如:

在此输入图像描述

The “ IIS Web Application Name ” parameter is the IIS path where you want to deploy your web application. IIS Web应用程序名称 ”参数是您要部署Web应用程序的IIS路径。 This can include a value such as Default Web Site/Contoso.web_deploy , this is specified in the Deploy IIS App task under Deployment | 这可以包括一个值,例如Default Web Site/Contoso.web_deploy ,这是在部署|部署IIS下的部署IIS应用程序任务中指定的 Website Name . 网站名称

For more detail steps, you could take a look at below two nice blogs: 有关更多详细步骤,您可以查看以下两个不错的博客:

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 tfs 发布管理客户端在 IIS 中设置网站/Web 应用程序的主机名? - How can I set the host name for a web site/web application in IIS using tfs release management client? 在IIS默认网站下创建asp.net MVC Web应用程序或将其创建为新网站之间的区别 - Difference between creating my asp.net MVC web application ,under the IIS Default web site, or create it as a new web site 如何在IIS默认网站根目录(虚拟路径:“ /”)中创建应用程序? - How to create Application in the IIS Default Web Site root (virtual path : '/')? 如何从IIS 8.5默认网站下的先前删除的Web应用程序中删除文件夹? - How to delete folder from previously deleted Web App under IIS 8.5 Default Web Site? 如何在iis 7服务器中创建默认网站? - How to create default web site in iis 7 server? 是否可以使用TFS Build为ASP.net网站(而非ASP.net应用程序)创建构建定义? - Is it possible to create a build definition for an ASP.net web site (not an ASP.net application) with TFS Build? 在IIS网站上浏览嵌套的Web应用程序 - Urls on nested web application under IIS Web Site ASP.NET CORE 3.0 应用到默认网站/MySite 下的 IIS 无法正常工作 - ASP.NET CORE 3.0 application to IIS under Default Web Site/MySite does not work properly 网站作为IIS 7中的应用程序 - web site as application in IIS 7 在IIS 7上重新创建默认网站 - Recreation of Default Web Site on IIS 7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM