[英]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数据库部署任务的所有未来增强功能。
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.