TFS 2017版本定义. WinRM-IIS Web应用程序管理任务.在“默认网站"下创建应用 [英] TFS 2017 Release definition. WinRM - IIS Web App Management task. Create application under "Default web site"

查看:246
本文介绍了TFS 2017版本定义. WinRM-IIS Web应用程序管理任务.在“默认网站"下创建应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制定一个发布定义,它将一个网站部署到测试IIS服务器(Windows Server 2012,IIS 8).

I am working on a release definition which will deploy a website to a test IIS server (Windows server 2012, IIS 8).

我想使用IIS Web应用程序管理任务在默认网站/斯科特"下创建和配置应用程序或虚拟目录

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"

当我将默认网站/斯科特"或默认网站\ 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应用程序.我不介意它是否共享应用程序池.

The Scott application will be created alongside many existing applications underneath the Default Web Site parent. I don't mind if it shares the app pool.

我可以使用WinRM任务吗?如果没有,那么除了编写Powershell之外还有其他选择吗?

Can I use the WinRM task? If not, are there any alternatives apart from writing 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. However this is not available wit TFS for now:

正在使用 Visual Studio Team Services 帐户 预览任务向导. IIS Web应用程序部署 SQL Server数据库部署应移至此扩展名.全部 IIS Web App部署任务或SQL Server数据库部署任务的未来增强功能 扩展名.

The Visual Studio Team Services accounts that are using the preview tasks wiz. IIS Web Application Deployment or SQL Server Database Deployment, should move to this extension. 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应用程序部署直接将Web应用程序部署到IIS服务器使用Web Deploy的任务.您可以添加环境变量IIS Web Application Name并将其用作网站名称,例如:

For now you have to directly deploy a Web Application to the IIS Server with IIS Web App Deploy task which using Web Deploy. You could add a environment variable IIS Web Application Name and use this as the website name, such as:

" IIS Web应用程序名称"参数是您要在其中部署Web应用程序的IIS路径.其中可以包含诸如Default Web Site/Contoso.web_deploy之类的值,该值在部署IIS应用程序"任务的"部署"下指定.网站名称.

The "IIS Web Application Name" parameter is the IIS path where you want to deploy your web application. This can include a value such as Default Web Site/Contoso.web_deploy, this is specified in the Deploy IIS App task under Deployment | Website Name.

有关更多详细步骤,您可以查看以下两个不错的博客:

For more detail steps, you could take a look at below two nice blogs:

这篇关于TFS 2017版本定义. WinRM-IIS Web应用程序管理任务.在“默认网站"下创建应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆