【发布时间】:2020-07-26 05:53:07
【问题描述】:
我正在 Azure DevOps Release Pipeline 中使用 IIS Web App Deploy Task 部署 IIS Web App。这很好用,但不要设置正确的应用程序池。我正在尝试在Parameters.xml中设置一个参数或作为任务的-setParam。但这并没有改变任何东西。谷歌搜索的解决方案没有帮助。在部署期间如何操作应用程序池?谢谢。
编辑
参考this answer,我像这样配置了parameters.xml 和管道。 (appHostConfig 而不是 appPoolConfig 没有改变任何东西)
parameters.xml
<parameters>
<parameter name="Parameter 1" description="Full site path where you want to install your application (for example, Default Web Site/Application)." defaultValue="Default Web Site/MyApplication" tags="IisApp">
<parameterEntry kind="ProviderPath" scope="iisApp" match="Default\ Web\ Site/MyApplication" />
</parameter>
<parameter name="Parameter 2" description="Enter the name of the application pool." defaultValue="MyAppPool" tags="AppPoolConfig">
<parameterEntry kind="ProviderPath" scope="appPoolConfig" match="MyAppPool" />
</parameter>
<parameter name="IIS Web Application Name" description="Enter the name of the website." defaultValue="MyApplication" tags="IisApp" />
<parameter name="Application Pool" description="Enter the name of the application pool." defaultValue="MyAppPool" tags="AppPoolConfig" />
</parameters>
在 IIS Web App Deploy Task 中设置网站
(结果到-setParam:name='IIS Web Application Name',value='Default Web Site/MyApplication')
在 IIS Web App 部署任务中设置应用程序池参数
【问题讨论】:
标签: iis azure-devops azure-pipelines-release-pipeline msdeploy application-pool