【问题标题】:TFS Release definition - Application pool is not getting created with the custom account detailsTFS 版本定义 - 未使用自定义帐户详细信息创建应用程序池
【发布时间】:2018-08-01 09:35:22
【问题描述】:

我正在尝试创建发布定义以在部署新应用程序时创建应用程序池。正在使用新的应用程序名称创建新的应用程序池。

但是,我希望它在自定义服务帐户下创建。使用 ApplicationPoolIdentity 创建它的位置。

PFB 我用来创建应用程序及其应用程序池的 powershell 脚本作为发布定义中的任务之一,

-serverName $(Release.EnvironmentName) 
    -userName $(AdminLogin) 
    -password $(Password) 
    -webApplicationName RexxOnlineUpdateProcessing.Service 
    -webSiteName 'Default Web Site' 
    -appPool RexxOnlineUpdateProcessing.Service 
    -appPoolIdentity 4 
    -appPoolUserName $(AppPoolIdentityUserName) 
    -appPoolPassword $(AppPoolIdentityPassword) 
    -websiteBindingProtocols 'http/*:80:'

如果我在这里遗漏了什么,请告诉我。

【问题讨论】:

  • 您使用的是哪个版本的 TFS?您是如何指定发布定义的?

标签: powershell tfs release release-management


【解决方案1】:

对于自定义帐户,identityType 的值应为 3。检查this site

顺便说一句,您可以使用WinRM - IIS Web App Management 任务来创建应用程序池。在此任务中,您可以选择Custom Account 身份,一旦选择了自定义帐户,就会显示用户名和密码:

【讨论】:

    猜你喜欢
    • 2012-05-23
    • 1970-01-01
    • 2020-04-15
    • 2021-09-09
    • 2013-03-27
    • 2019-07-16
    • 2014-03-10
    • 1970-01-01
    • 2012-07-20
    相关资源
    最近更新 更多