You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

TFS 2018 Release Management部署IIS相关技术问题咨询

Hey Nick, let's break down your two questions step by step— I’ve worked with TFS 2018 Release Management extensively, so I can help clarify this for you.

1. Difference Between IIS Web App Manage and IIS Web App Deploy Tasks & Whether to Use Both

These two tasks serve distinct purposes, and whether you need both depends on your deployment scenario:

  • IIS Web App Manage: This task is all about configuring the IIS infrastructure before your app goes live. Think of it as "setting up the stage" for your web app. It handles operations like:

    • Creating/deleting IIS websites and application pools
    • Adjusting application pool settings (e.g., .NET Framework version, managed pipeline mode, service identity)
    • Configuring site bindings (HTTP/HTTPS ports, hostnames, SSL certificates)
    • Setting the website's physical path and authentication modes
  • IIS Web App Deploy: This task focuses solely on deploying your web application content to an existing IIS environment. It’s the "putting your app on the stage" step, with key actions including:

    • Syncing your build artifacts (compiled web files) to the IIS site’s physical path
    • Handling Web.config transforms and parameter replacements
    • Using Web Deploy (MSDeploy) to push updates efficiently
    • Restarting the site/app pool post-deployment if needed

Do you need both?

If your IIS server already has the website and app pool pre-configured manually (and you don’t need to adjust settings between releases), you might only need the IIS Web App Deploy task.
For fully automated, consistent releases (especially on fresh servers or when you need standardized IIS settings across deployments), use both tasks in sequence: run IIS Web App Manage first to ensure the environment is set up correctly, then IIS Web App Deploy to push your content. This eliminates manual configuration errors and keeps your pipeline reliable.

2. Fixing the Greyed-Out Website Name Field in IIS Web App Deploy

The greyed-out field means the task is linked to a release pipeline parameter (Parameters.WebsiteName) instead of allowing direct manual input. Here’s how to resolve this:

  • Option 1: Update the pipeline parameter directly

    1. Open your release definition and navigate to the Pipeline tab.
    2. Select the stage with the IIS Web App Deploy task, then click the Variables button (top-right corner of the stage panel).
    3. Locate the WebsiteName variable in the list, edit its value to match your IIS website name, and save the definition. The task will now use this updated value.
  • Option 2: Unlink the parameter and enter manually

    1. Open the IIS Web App Deploy task for editing.
    2. Hover over the greyed-out Website Name field—you’ll see a small curly brace {} icon (parameter binding) next to it.
    3. Click the icon, then select Enter a value instead of referencing Parameters.WebsiteName.
    4. Type your desired website name directly into the field, save the task, and you’re done.
  • Note about build definition parameters: If you linked a build definition parameter to this release parameter, you’ll need to either update the build’s WebsiteName value or break the link in the release variables panel (set the release variable to a static value instead of pulling from the build).

内容的提问来源于stack exchange,提问作者Nick

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 06:13:03