IISWebAppManagementOnMachineGroup@0 - IIS Web アプリで v0 タスクを管理する

このタスクを使用して、Web サイト、Web アプリ、仮想ディレクトリ、またはアプリケーション プールを作成または更新します。

構文

# IIS web app manage v0
# Create or update websites, web apps, virtual directories, or application pools.
- task: IISWebAppManagementOnMachineGroup@0
  inputs:
    #EnableIIS: false # boolean. Enable IIS. Default: false.
    IISDeploymentType: 'IISWebsite' # 'IISWebsite' | 'IISWebApplication' | 'IISVirtualDirectory' | 'IISApplicationPool'. Required. Configuration type. Default: IISWebsite.
    ActionIISWebsite: 'CreateOrUpdateWebsite' # 'CreateOrUpdateWebsite' | 'StartWebsite' | 'StopWebsite'. Required when IISDeploymentType = IISWebsite. Action. Default: CreateOrUpdateWebsite.
    #ActionIISApplicationPool: 'CreateOrUpdateAppPool' # 'CreateOrUpdateAppPool' | 'StartAppPool' | 'StopAppPool' | 'RecycleAppPool'. Required when IISDeploymentType = IISApplicationPool. Action. Default: CreateOrUpdateAppPool.
    #StartStopWebsiteName: # string. Required when ActionIISWebsite = StartWebsite || ActionIISWebsite = StopWebsite. Website name. 
    #Protocol: 'http' # 'https' | 'http'. Required when IISDeploymentType = randomDeployment. Protocol. Default: http.
    #IPAddress: 'All Unassigned' # string. Required when IISDeploymentType = randomDeployment. IP address. Default: All Unassigned.
    #Port: '80' # string. Required when IISDeploymentType = randomDeployment. Port. Default: 80.
    #ServerNameIndication: false # boolean. Optional. Use when IISDeploymentType = randomDeployment. Server Name Indication required. Default: false.
    #HostNameWithOutSNI: # string. Optional. Use when IISDeploymentType = randomDeployment. Host name. 
    #HostNameWithHttp: # string. Optional. Use when IISDeploymentType = randomDeployment. Host name. 
    #HostNameWithSNI: # string. Required when IISDeploymentType = randomDeployment. Host name. 
    #SSLCertThumbPrint: # string. Required when IISDeploymentType = randomDeployment. SSL certificate thumbprint. 
    #StartStopRecycleAppPoolName: # string. Required when ActionIISApplicationPool = StartAppPool || ActionIISApplicationPool = StopAppPool || ActionIISApplicationPool = RecycleAppPool. Application pool name. 
  # IIS Website
    WebsiteName: # string. Required when ActionIISWebsite = CreateOrUpdateWebsite. Website name. 
    WebsitePhysicalPath: '%SystemDrive%\inetpub\wwwroot' # string. Required when ActionIISWebsite = CreateOrUpdateWebsite. Physical path. Default: %SystemDrive%\inetpub\wwwroot.
    WebsitePhysicalPathAuth: 'WebsiteUserPassThrough' # 'WebsiteUserPassThrough' | 'WebsiteWindowsAuth'. Required when ActionIISWebsite = CreateOrUpdateWebsite. Physical path authentication. Default: WebsiteUserPassThrough.
    #WebsiteAuthUserName: # string. Required when WebsitePhysicalPathAuth = WebsiteWindowsAuth && ActionIISWebsite = CreateOrUpdateWebsite. Username. 
    #WebsiteAuthUserPassword: # string. Optional. Use when WebsitePhysicalPathAuth = WebsiteWindowsAuth && ActionIISWebsite = CreateOrUpdateWebsite. Password. 
    #AddBinding: false # boolean. Optional. Use when ActionIISWebsite = CreateOrUpdateWebsite. Add binding. Default: false.
    #CreateOrUpdateAppPoolForWebsite: false # boolean. Optional. Use when ActionIISWebsite = CreateOrUpdateWebsite. Create or update app pool. Default: false.
    #ConfigureAuthenticationForWebsite: false # boolean. Optional. Use when ActionIISWebsite = CreateOrUpdateWebsite. Configure authentication. Default: false.
  # IIS Bindings
    #Bindings: # string. Required when IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && AddBinding = true. Add bindings. 
  # IIS Application pool
    #AppPoolNameForWebsite: # string. Required when IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true. Name. 
    #DotNetVersionForWebsite: 'v4.0' # 'v4.0' | 'v2.0' | 'No Managed Code'. Required when IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true. .NET version. Default: v4.0.
    #PipeLineModeForWebsite: 'Integrated' # 'Integrated' | 'Classic'. Required when IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true. Managed pipeline mode. Default: Integrated.
    #AppPoolIdentityForWebsite: 'ApplicationPoolIdentity' # 'ApplicationPoolIdentity' | 'LocalService' | 'LocalSystem' | 'NetworkService' | 'SpecificUser'. Required when IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true. Identity. Default: ApplicationPoolIdentity.
    #AppPoolUsernameForWebsite: # string. Required when AppPoolIdentityForWebsite = SpecificUser && IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true. Username. 
    #AppPoolPasswordForWebsite: # string. Optional. Use when AppPoolIdentityForWebsite = SpecificUser && IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true. Password. 
  # IIS Authentication
    #AnonymousAuthenticationForWebsite: false # boolean. Optional. Use when IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && ConfigureAuthenticationForWebsite = true. Anonymous authentication. Default: false.
    #BasicAuthenticationForWebsite: false # boolean. Optional. Use when IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && ConfigureAuthenticationForWebsite = true. Basic authentication. Default: false.
    #WindowsAuthenticationForWebsite: true # boolean. Optional. Use when IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && ConfigureAuthenticationForWebsite = true. Windows authentication. Default: true.
  # IIS Virtual directory
    #ParentWebsiteNameForVD: # string. Required when IISDeploymentType = IISVirtualDirectory. Parent website name. 
    #VirtualPathForVD: # string. Required when IISDeploymentType = IISVirtualDirectory. Virtual path. 
    #PhysicalPathForVD: '%SystemDrive%\inetpub\wwwroot' # string. Required when IISDeploymentType = IISVirtualDirectory. Physical path. Default: %SystemDrive%\inetpub\wwwroot.
    #VDPhysicalPathAuth: 'VDUserPassThrough' # 'VDUserPassThrough' | 'VDWindowsAuth'. Optional. Use when IISDeploymentType = IISVirtualDirectory. Physical path authentication. Default: VDUserPassThrough.
    #VDAuthUserName: # string. Required when VDPhysicalPathAuth = VDWindowsAuth && IISDeploymentType = IISVirtualDirectory. Username. 
    #VDAuthUserPassword: # string. Optional. Use when VDPhysicalPathAuth = VDWindowsAuth && IISDeploymentType = IISVirtualDirectory. Password. 
  # IIS Application
    #ParentWebsiteNameForApplication: # string. Required when IISDeploymentType = IISWebApplication. Parent website name. 
    #VirtualPathForApplication: # string. Required when IISDeploymentType = IISWebApplication. Virtual path. 
    #PhysicalPathForApplication: '%SystemDrive%\inetpub\wwwroot' # string. Required when IISDeploymentType = IISWebApplication. Physical path. Default: %SystemDrive%\inetpub\wwwroot.
    #ApplicationPhysicalPathAuth: 'ApplicationUserPassThrough' # 'ApplicationUserPassThrough' | 'ApplicationWindowsAuth'. Optional. Use when IISDeploymentType = IISWebApplication. Physical path authentication. Default: ApplicationUserPassThrough.
    #ApplicationAuthUserName: # string. Required when ApplicationPhysicalPathAuth = ApplicationWindowsAuth && IISDeploymentType = IISWebApplication. Username. 
    #ApplicationAuthUserPassword: # string. Optional. Use when ApplicationPhysicalPathAuth = ApplicationWindowsAuth && IISDeploymentType = IISWebApplication. Password. 
    #CreateOrUpdateAppPoolForApplication: false # boolean. Optional. Use when IISDeploymentType = IISWebApplication. Create or update app pool. Default: false.
  # IIS Application pool
    #AppPoolNameForApplication: # string. Required when IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true. Name. 
    #DotNetVersionForApplication: 'v4.0' # 'v4.0' | 'v2.0' | 'No Managed Code'. Required when IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true. .NET version. Default: v4.0.
    #PipeLineModeForApplication: 'Integrated' # 'Integrated' | 'Classic'. Required when IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true. Managed pipeline mode. Default: Integrated.
    #AppPoolIdentityForApplication: 'ApplicationPoolIdentity' # 'ApplicationPoolIdentity' | 'LocalService' | 'LocalSystem' | 'NetworkService' | 'SpecificUser'. Required when IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true. Identity. Default: ApplicationPoolIdentity.
    #AppPoolUsernameForApplication: # string. Required when AppPoolIdentityForApplication = SpecificUser && IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true. Username. 
    #AppPoolPasswordForApplication: # string. Optional. Use when AppPoolIdentityForApplication = SpecificUser && IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true. Password. 
  # IIS Application pool
    AppPoolName: # string. Required when ActionIISApplicationPool = CreateOrUpdateAppPool. Name. 
    DotNetVersion: 'v4.0' # 'v4.0' | 'v2.0' | 'No Managed Code'. Required when ActionIISApplicationPool = CreateOrUpdateAppPool. .NET version. Default: v4.0.
    PipeLineMode: 'Integrated' # 'Integrated' | 'Classic'. Required when ActionIISApplicationPool = CreateOrUpdateAppPool. Managed pipeline mode. Default: Integrated.
    AppPoolIdentity: 'ApplicationPoolIdentity' # 'ApplicationPoolIdentity' | 'LocalService' | 'LocalSystem' | 'NetworkService' | 'SpecificUser'. Required when ActionIISApplicationPool = CreateOrUpdateAppPool. Identity. Default: ApplicationPoolIdentity.
    #AppPoolUsername: # string. Required when AppPoolIdentity = SpecificUser && ActionIISApplicationPool = CreateOrUpdateAppPool. Username. 
    #AppPoolPassword: # string. Optional. Use when AppPoolIdentity = SpecificUser && ActionIISApplicationPool = CreateOrUpdateAppPool. Password. 
  # Advanced
    #AppCmdCommands: # string. Additional appcmd.exe commands.
# IIS Web App Manage v0
# Create or update a Website, Web App, Virtual Directories, and Application Pool.
- task: IISWebAppManagementOnMachineGroup@0
  inputs:
    #EnableIIS: false # boolean. Enable IIS. Default: false.
    IISDeploymentType: 'IISWebsite' # 'IISWebsite' | 'IISWebApplication' | 'IISVirtualDirectory' | 'IISApplicationPool'. Required. Configuration type. Default: IISWebsite.
    ActionIISWebsite: 'CreateOrUpdateWebsite' # 'CreateOrUpdateWebsite' | 'StartWebsite' | 'StopWebsite'. Required when IISDeploymentType = IISWebsite. Action. Default: CreateOrUpdateWebsite.
    #ActionIISApplicationPool: 'CreateOrUpdateAppPool' # 'CreateOrUpdateAppPool' | 'StartAppPool' | 'StopAppPool' | 'RecycleAppPool'. Required when IISDeploymentType = IISApplicationPool. Action. Default: CreateOrUpdateAppPool.
    #StartStopWebsiteName: # string. Required when ActionIISWebsite = StartWebsite || ActionIISWebsite = StopWebsite. Website name. 
    #Protocol: 'http' # 'https' | 'http'. Required when IISDeploymentType = randomDeployment. Protocol. Default: http.
    #IPAddress: 'All Unassigned' # string. Required when IISDeploymentType = randomDeployment. IP address. Default: All Unassigned.
    #Port: '80' # string. Required when IISDeploymentType = randomDeployment. Port. Default: 80.
    #ServerNameIndication: false # boolean. Optional. Use when IISDeploymentType = randomDeployment. Server Name Indication required. Default: false.
    #HostNameWithOutSNI: # string. Optional. Use when IISDeploymentType = randomDeployment. Host name. 
    #HostNameWithHttp: # string. Optional. Use when IISDeploymentType = randomDeployment. Host name. 
    #HostNameWithSNI: # string. Required when IISDeploymentType = randomDeployment. Host name. 
    #SSLCertThumbPrint: # string. Required when IISDeploymentType = randomDeployment. SSL certificate thumbprint. 
    #StartStopRecycleAppPoolName: # string. Required when ActionIISApplicationPool = StartAppPool || ActionIISApplicationPool = StopAppPool || ActionIISApplicationPool = RecycleAppPool. Application pool name. 
  # IIS Website
    WebsiteName: # string. Required when ActionIISWebsite = CreateOrUpdateWebsite. Website name. 
    WebsitePhysicalPath: '%SystemDrive%\inetpub\wwwroot' # string. Required when ActionIISWebsite = CreateOrUpdateWebsite. Physical path. Default: %SystemDrive%\inetpub\wwwroot.
    WebsitePhysicalPathAuth: 'WebsiteUserPassThrough' # 'WebsiteUserPassThrough' | 'WebsiteWindowsAuth'. Required when ActionIISWebsite = CreateOrUpdateWebsite. Physical path authentication. Default: WebsiteUserPassThrough.
    #WebsiteAuthUserName: # string. Required when WebsitePhysicalPathAuth = WebsiteWindowsAuth && ActionIISWebsite = CreateOrUpdateWebsite. Username. 
    #WebsiteAuthUserPassword: # string. Optional. Use when WebsitePhysicalPathAuth = WebsiteWindowsAuth && ActionIISWebsite = CreateOrUpdateWebsite. Password. 
    #AddBinding: false # boolean. Optional. Use when ActionIISWebsite = CreateOrUpdateWebsite. Add binding. Default: false.
    #CreateOrUpdateAppPoolForWebsite: false # boolean. Optional. Use when ActionIISWebsite = CreateOrUpdateWebsite. Create or update app pool. Default: false.
    #ConfigureAuthenticationForWebsite: false # boolean. Optional. Use when ActionIISWebsite = CreateOrUpdateWebsite. Configure authentication. Default: false.
  # IIS Bindings
    #Bindings: # string. Required when IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && AddBinding = true. Add bindings. 
  # IIS Application pool
    #AppPoolNameForWebsite: # string. Required when IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true. Name. 
    #DotNetVersionForWebsite: 'v4.0' # 'v4.0' | 'v2.0' | 'No Managed Code'. Required when IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true. .NET version. Default: v4.0.
    #PipeLineModeForWebsite: 'Integrated' # 'Integrated' | 'Classic'. Required when IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true. Managed pipeline mode. Default: Integrated.
    #AppPoolIdentityForWebsite: 'ApplicationPoolIdentity' # 'ApplicationPoolIdentity' | 'LocalService' | 'LocalSystem' | 'NetworkService' | 'SpecificUser'. Required when IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true. Identity. Default: ApplicationPoolIdentity.
    #AppPoolUsernameForWebsite: # string. Required when AppPoolIdentityForWebsite = SpecificUser && IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true. Username. 
    #AppPoolPasswordForWebsite: # string. Optional. Use when AppPoolIdentityForWebsite = SpecificUser && IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true. Password. 
  # IIS Authentication
    #AnonymousAuthenticationForWebsite: false # boolean. Optional. Use when IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && ConfigureAuthenticationForWebsite = true. Anonymous authentication. Default: false.
    #BasicAuthenticationForWebsite: false # boolean. Optional. Use when IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && ConfigureAuthenticationForWebsite = true. Basic authentication. Default: false.
    #WindowsAuthenticationForWebsite: true # boolean. Optional. Use when IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && ConfigureAuthenticationForWebsite = true. Windows authentication. Default: true.
  # IIS Virtual directory
    #ParentWebsiteNameForVD: # string. Required when IISDeploymentType = IISVirtualDirectory. Parent website name. 
    #VirtualPathForVD: # string. Required when IISDeploymentType = IISVirtualDirectory. Virtual path. 
    #PhysicalPathForVD: '%SystemDrive%\inetpub\wwwroot' # string. Required when IISDeploymentType = IISVirtualDirectory. Physical path. Default: %SystemDrive%\inetpub\wwwroot.
    #VDPhysicalPathAuth: 'VDUserPassThrough' # 'VDUserPassThrough' | 'VDWindowsAuth'. Optional. Use when IISDeploymentType = IISVirtualDirectory. Physical path authentication. Default: VDUserPassThrough.
    #VDAuthUserName: # string. Required when VDPhysicalPathAuth = VDWindowsAuth && IISDeploymentType = IISVirtualDirectory. Username. 
    #VDAuthUserPassword: # string. Optional. Use when VDPhysicalPathAuth = VDWindowsAuth && IISDeploymentType = IISVirtualDirectory. Password. 
  # IIS Application
    #ParentWebsiteNameForApplication: # string. Required when IISDeploymentType = IISWebApplication. Parent website name. 
    #VirtualPathForApplication: # string. Required when IISDeploymentType = IISWebApplication. Virtual path. 
    #PhysicalPathForApplication: '%SystemDrive%\inetpub\wwwroot' # string. Required when IISDeploymentType = IISWebApplication. Physical path. Default: %SystemDrive%\inetpub\wwwroot.
    #ApplicationPhysicalPathAuth: 'ApplicationUserPassThrough' # 'ApplicationUserPassThrough' | 'ApplicationWindowsAuth'. Optional. Use when IISDeploymentType = IISWebApplication. Physical path authentication. Default: ApplicationUserPassThrough.
    #ApplicationAuthUserName: # string. Required when ApplicationPhysicalPathAuth = ApplicationWindowsAuth && IISDeploymentType = IISWebApplication. Username. 
    #ApplicationAuthUserPassword: # string. Optional. Use when ApplicationPhysicalPathAuth = ApplicationWindowsAuth && IISDeploymentType = IISWebApplication. Password. 
    #CreateOrUpdateAppPoolForApplication: false # boolean. Optional. Use when IISDeploymentType = IISWebApplication. Create or update app pool. Default: false.
  # IIS Application pool
    #AppPoolNameForApplication: # string. Required when IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true. Name. 
    #DotNetVersionForApplication: 'v4.0' # 'v4.0' | 'v2.0' | 'No Managed Code'. Required when IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true. .NET version. Default: v4.0.
    #PipeLineModeForApplication: 'Integrated' # 'Integrated' | 'Classic'. Required when IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true. Managed pipeline mode. Default: Integrated.
    #AppPoolIdentityForApplication: 'ApplicationPoolIdentity' # 'ApplicationPoolIdentity' | 'LocalService' | 'LocalSystem' | 'NetworkService' | 'SpecificUser'. Required when IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true. Identity. Default: ApplicationPoolIdentity.
    #AppPoolUsernameForApplication: # string. Required when AppPoolIdentityForApplication = SpecificUser && IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true. Username. 
    #AppPoolPasswordForApplication: # string. Optional. Use when AppPoolIdentityForApplication = SpecificUser && IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true. Password. 
  # IIS Application pool
    AppPoolName: # string. Required when ActionIISApplicationPool = CreateOrUpdateAppPool. Name. 
    DotNetVersion: 'v4.0' # 'v4.0' | 'v2.0' | 'No Managed Code'. Required when ActionIISApplicationPool = CreateOrUpdateAppPool. .NET version. Default: v4.0.
    PipeLineMode: 'Integrated' # 'Integrated' | 'Classic'. Required when ActionIISApplicationPool = CreateOrUpdateAppPool. Managed pipeline mode. Default: Integrated.
    AppPoolIdentity: 'ApplicationPoolIdentity' # 'ApplicationPoolIdentity' | 'LocalService' | 'LocalSystem' | 'NetworkService' | 'SpecificUser'. Required when ActionIISApplicationPool = CreateOrUpdateAppPool. Identity. Default: ApplicationPoolIdentity.
    #AppPoolUsername: # string. Required when AppPoolIdentity = SpecificUser && ActionIISApplicationPool = CreateOrUpdateAppPool. Username. 
    #AppPoolPassword: # string. Optional. Use when AppPoolIdentity = SpecificUser && ActionIISApplicationPool = CreateOrUpdateAppPool. Password. 
  # Advanced
    #AppCmdCommands: # string. Additional appcmd.exe commands.

入力

EnableIIS - IIS を有効にする
boolean. 既定値: false

コンピューターに IIS を true インストールする場合は、 を に設定します。


IISDeploymentType - 構成の種類
string. 必須です。 使用できる値: IISWebsite (IIS Web サイト)、 IISWebApplication (IIS Web アプリケーション)、 IISVirtualDirectory (IIS 仮想ディレクトリ)、 IISApplicationPool (IIS アプリケーション プール)。 既定値: IISWebsite

構成の種類 (Web サイト、Web アプリケーション、仮想ディレクトリ、またはアプリケーション プール) を指定します。


ActionIISWebsite - アクション
string. IISDeploymentType = IISWebsite の場合に必要です。 使用できる値: CreateOrUpdateWebsite (作成または更新)、 StartWebsite (開始)、 StopWebsite (停止)。 既定値: CreateOrUpdateWebsite

IIS Web サイトで実行する適切なアクションを指定します。

[作成] または [更新] を選択すると、Web サイトが作成されるか、既存の Web サイトが更新されます。

開始、停止 は、それぞれ Web サイトを開始または停止します。


ActionIISApplicationPool - アクション
string. IISDeploymentType = IISApplicationPool の場合に必要です。 使用できる値: CreateOrUpdateAppPool (作成または更新)、 StartAppPool (開始)、 StopAppPool (停止)、 RecycleAppPool (リサイクル)。 既定値: CreateOrUpdateAppPool

IIS アプリケーション プールに対して実行する適切なアクションを指定します。

[作成] または [更新] を選択すると、アプリケーション プールが作成されるか、既存のアプリケーション プールが更新されます。

起動、停止、リサイクルは、 それぞれアプリケーション プールを開始、停止、またはリサイクルします。


StartStopWebsiteName - Web サイト名
string. ActionIISWebsite = StartWebsite || ActionIISWebsite = StopWebsite の場合に必要です。

IIS Web サイトの名前を指定します。


WebsiteName - Web サイト名
string. ActionIISWebsite = CreateOrUpdateWebsite の場合に必要です。

作成または更新する IIS Web サイトの名前を指定します。


WebsitePhysicalPath - 物理パス
string. ActionIISWebsite = CreateOrUpdateWebsite の場合に必要です。 既定値: %SystemDrive%\inetpub\wwwroot

Web サイトのコンテンツを格納する物理パスを指定します。 コンテンツは、ローカル コンピューター、リモート ディレクトリ、または ネットワーク共有 (や \\ContentShare\FabrikamなどC:\Fabrikam) に配置できます。


WebsitePhysicalPathAuth - 物理パス認証
string. ActionIISWebsite = CreateOrUpdateWebsite の場合に必要です。 使用できる値: WebsiteUserPassThrough (アプリケーション ユーザー (パススルー))、 WebsiteWindowsAuth (Windows 認証)。 既定値: WebsiteUserPassThrough

Web サイトの物理パスへのアクセスに使用する認証メカニズムを指定します。


WebsiteAuthUserName -
string. WebsitePhysicalPathAuth = WebsiteWindowsAuth && ActionIISWebsite = CreateOrUpdateWebsite の場合に必要です。

Web サイトの物理パスへのアクセスに使用するユーザー名を指定します。


WebsiteAuthUserPassword - パスワード
string. 省略可能。 の場合は WebsitePhysicalPathAuth = WebsiteWindowsAuth && ActionIISWebsite = CreateOrUpdateWebsiteを使用します。

Web サイトの物理パスへのアクセスに使用するユーザーのパスワードを指定します。
ベスト プラクティスは、ビルドパイプラインまたはリリース パイプラインに変数を作成し、それをセキュリティで保護するようにマーク Secret してから、 のように $(userCredentials)この入力を使用するときに指定することです。
メモ: パスワードの特殊文字は、 コマンド ライン引数ごとに解釈されます。


AddBinding - バインドの追加
boolean. 省略可能。 の場合は ActionIISWebsite = CreateOrUpdateWebsiteを使用します。 既定値: false

Web サイトのポート バインドを追加するオプションを指定します。


Protocol - プロトコル
string. IISDeploymentType = randomDeployment の場合に必要です。 使用できる値: httpshttp。 既定値: http

Web サイトが HTTP バインディングを持つ場合は HTTP、Web サイトに SECURE Sockets Layer (SSL) バインドを持つ場合は HTTPS を指定します。


IPAddress - IP アドレス
string. IISDeploymentType = randomDeployment の場合に必要です。 既定値: All Unassigned

エンド ユーザーがこの Web サイトへのアクセスに使用できる IP アドレスを指定します。
[すべての割り当て解除] が選択されている場合、Web サイトはポート上のすべての IP アドレスとホスト名の要求に応答します。 サーバー上の別の Web サイトが同じポートにバインドされているが、特定の IP アドレスを持つ場合、Web サイトは要求に応答しません。


Port - ポート
string. IISDeploymentType = randomDeployment の場合に必要です。 既定値: 80

ハイパーテキスト転送プロトコル スタック (HTTP.sys) が Web サイト要求を監視するポートを指定します。


ServerNameIndication - サーバー名の表示が必要です
boolean. 省略可能。 の場合は IISDeploymentType = randomDeploymentを使用します。 既定値: false

Web サイトのサーバー名表示 (SNI) を設定するオプションを指定します。
SNI は、クライアントが接続しようとしているホスト名を示すように SSL プロトコルと TLS プロトコルを拡張します。 SNI を使用すると、異なる証明書を持つ、複数のセキュリティで保護された Web サイトが同じ IP アドレスを使用できます。


HostNameWithOutSNI - ホスト名
string. 省略可能。 の場合は IISDeploymentType = randomDeploymentを使用します。

Web サイトのホスト名 (またはドメイン名) を指定します。
ホスト名が指定されている場合、クライアントは IP アドレスではなくホスト名を使用して Web サイトにアクセスする必要があります。


HostNameWithHttp - ホスト名
string. 省略可能。 の場合は IISDeploymentType = randomDeploymentを使用します。

Web サイトのホスト名 (またはドメイン名) を指定します。
ホスト名が指定されている場合、クライアントは IP アドレスではなくホスト名を使用して Web サイトにアクセスする必要があります。


HostNameWithSNI - ホスト名
string. IISDeploymentType = randomDeployment の場合に必要です。

Web サイトのホスト名 (またはドメイン名) を指定します。
ホスト名が指定されている場合、クライアントは IP アドレスではなくホスト名を使用して Web サイトにアクセスする必要があります。


SSLCertThumbPrint - SSL 証明書の拇印
string. IISDeploymentType = randomDeployment の場合に必要です。

Web サイトが HTTPS 通信に使用する Secure Socket Layer 証明書のサムプリントを指定します。 サムプリントは 40 文字の長い 16 進文字列です。 SSL 証明書は、ローカル コンピューターの個人用ストアのコンピューターに既にインストールされている必要があります。


Bindings - バインドを追加する
string. IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && AddBinding = true の場合に必要です。

拡張機能ボタン ... をクリックして、Web サイトのバインドを追加します。


CreateOrUpdateAppPoolForWebsite - アプリ プールを作成または更新する
boolean. 省略可能。 の場合は ActionIISWebsite = CreateOrUpdateWebsiteを使用します。 既定値: false

アプリケーション プールを作成または更新するオプションを指定します。 オンにすると、指定したアプリケーション プールに Web サイトが作成されます。


ConfigureAuthenticationForWebsite - 認証を構成する
boolean. 省略可能。 の場合は ActionIISWebsite = CreateOrUpdateWebsiteを使用します。 既定値: false

Web サイトの認証を構成するオプションを指定します。


AppPoolNameForWebsite - 名前
string. IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true の場合に必要です。

作成または更新する IIS アプリケーション プールの名前を指定します。


DotNetVersionForWebsite - .NET バージョン
string. IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true の場合に必要です。 許可値: v4.0v2.0No Managed Code。 既定値: v4.0

アプリケーション プールによって読み込まれる.NET Frameworkのバージョンを指定します。 このアプリケーション プールに割り当てられているアプリケーションにマネージド コードが含まれていない場合は、一覧から [ マネージド コードなし ] オプションを選択します。


PipeLineModeForWebsite - マネージド パイプライン モード
string. IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true の場合に必要です。 使用できる値: IntegratedClassic。 既定値: Integrated

IIS がマネージド コンテンツの要求を処理する方法を決定するマネージド パイプライン モードを指定します。 クラシック モードは、アプリケーション プール内のアプリケーションを統合モードで実行できない場合にのみ使用します。


AppPoolIdentityForWebsite - Id
string. IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true の場合に必要です。 使用できる値: ApplicationPoolIdentity (アプリケーション プール ID) LocalService 、(ローカル サービス)、 LocalSystem (ローカル システム)、 NetworkService (ネットワーク サービス)、 SpecificUser (カスタム アカウント)。 既定値: ApplicationPoolIdentity

アプリケーション プールのワーカー プロセスを実行するアカウントを構成します。 定義済みのセキュリティ アカウントのいずれかを指定するか、カスタム アカウントを構成します。


AppPoolUsernameForWebsite -
string. AppPoolIdentityForWebsite = SpecificUser && IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = true の場合に必要です。

使用するカスタム アカウントのユーザー名を指定します。


AppPoolPasswordForWebsite - パスワード
string. 省略可能。 の場合は AppPoolIdentityForWebsite = SpecificUser && IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && CreateOrUpdateAppPoolForWebsite = trueを使用します。

カスタム アカウントのパスワードを指定します。
ベスト プラクティスは、ビルドまたはリリース パイプラインで変数を作成し、それをセキュリティで保護するためにとして Secret マークし、この入力を使用するときに を提供することです (例 $(userCredentials): )。
メモ: パスワードの特殊文字は、 コマンド ライン引数ごとに解釈されます。


AnonymousAuthenticationForWebsite - 匿名認証
boolean. 省略可能。 の場合は IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && ConfigureAuthenticationForWebsite = trueを使用します。 既定値: false

Web サイトの匿名認証を有効にするオプションを指定します。


BasicAuthenticationForWebsite - 基本認証
boolean. 省略可能。 の場合は IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && ConfigureAuthenticationForWebsite = trueを使用します。 既定値: false

Web サイトの基本認証を有効にするオプションを指定します。


WindowsAuthenticationForWebsite - Windows 認証
boolean. 省略可能。 の場合は IISDeploymentType = IISWebsite && ActionIISWebsite = CreateOrUpdateWebsite && ConfigureAuthenticationForWebsite = trueを使用します。 既定値: true

Web サイトの Windows 認証を有効にするオプションを指定します。


ParentWebsiteNameForVD - 親 Web サイト名
string. IISDeploymentType = IISVirtualDirectory の場合に必要です。

仮想ディレクトリの親 Web サイトの名前を指定します。


VirtualPathForVD - 仮想パス
string. IISDeploymentType = IISVirtualDirectory の場合に必要です。

仮想ディレクトリの仮想パスを指定します。

たとえば、仮想ディレクトリを作成するには、「」と入力/Application/VdirしますSite/Application/VDir。 親 Web サイトとアプリケーションは既に存在している必要があります。


PhysicalPathForVD - 物理パス
string. IISDeploymentType = IISVirtualDirectory の場合に必要です。 既定値: %SystemDrive%\inetpub\wwwroot

仮想ディレクトリのコンテンツが格納される物理パスを指定します。 コンテンツは、ローカル コンピューター、リモート ディレクトリ、または ネットワーク共有 ( や \\ContentShare\FabrikamなどC:\Fabrikam) に存在できます。


VDPhysicalPathAuth - 物理パス認証
string. 省略可能。 の場合は IISDeploymentType = IISVirtualDirectoryを使用します。 使用できる値: VDUserPassThrough (アプリケーション ユーザー (パススルー))、 VDWindowsAuth (Windows 認証)。 既定値: VDUserPassThrough

仮想ディレクトリの物理パスへのアクセスに使用する認証メカニズムを指定します。


VDAuthUserName -
string. VDPhysicalPathAuth = VDWindowsAuth && IISDeploymentType = IISVirtualDirectory の場合に必要です。

仮想ディレクトリの物理パスへのアクセスに使用するユーザー名を指定します。


VDAuthUserPassword - パスワード
string. 省略可能。 の場合は VDPhysicalPathAuth = VDWindowsAuth && IISDeploymentType = IISVirtualDirectoryを使用します。

仮想ディレクトリの物理パスへのアクセスに使用するユーザーのパスワードを指定します。
ベスト プラクティスは、ビルドまたはリリース パイプラインで変数を作成し、それをセキュリティで保護するためにとして Secret マークし、この入力を使用するときに を提供することです (例 $(userCredentials): )。
メモ: パスワードの特殊文字は、 コマンド ライン引数ごとに解釈されます。


ParentWebsiteNameForApplication - 親 Web サイト名
string. IISDeploymentType = IISWebApplication の場合に必要です。

アプリケーションを作成または更新する親 Web サイトの名前を指定します。


VirtualPathForApplication - 仮想パス
string. IISDeploymentType = IISWebApplication の場合に必要です。

アプリケーションの仮想パスを指定します。

たとえば、アプリケーション Site/Applicationを作成するには、「」と入力します /Application。 親 Web サイトは既に存在している必要があります。


PhysicalPathForApplication - 物理パス
string. IISDeploymentType = IISWebApplication の場合に必要です。 既定値: %SystemDrive%\inetpub\wwwroot

アプリケーションのコンテンツが格納される物理パスを指定します。 コンテンツは、ローカル コンピューター、リモート ディレクトリ、または ネットワーク共有 ( や \\ContentShare\FabrikamなどC:\Fabrikam) に存在できます。


ApplicationPhysicalPathAuth - 物理パス認証
string. 省略可能。 の場合は IISDeploymentType = IISWebApplicationを使用します。 使用できる値: ApplicationUserPassThrough (アプリケーション ユーザー (パススルー))、 ApplicationWindowsAuth (Windows 認証)。 既定値: ApplicationUserPassThrough

アプリケーションの物理パスへのアクセスに使用される認証メカニズムを指定します。


ApplicationAuthUserName -
string. ApplicationPhysicalPathAuth = ApplicationWindowsAuth && IISDeploymentType = IISWebApplication の場合に必要です。

アプリケーションの物理パスへのアクセスに使用するユーザー名を指定します。


ApplicationAuthUserPassword - パスワード
string. 省略可能。 の場合は ApplicationPhysicalPathAuth = ApplicationWindowsAuth && IISDeploymentType = IISWebApplicationを使用します。

アプリケーションの物理パスへのアクセスに使用するユーザーのパスワードを指定します。
ベスト プラクティスは、ビルドまたはリリース パイプラインで変数を作成し、それをセキュリティで保護するためにとして Secret マークし、この入力を使用するときに を提供することです (例 $(userCredentials): )。
メモ: パスワードの特殊文字は、 コマンド ライン引数ごとに解釈されます。


CreateOrUpdateAppPoolForApplication - アプリ プールを作成または更新する
boolean. 省略可能。 の場合は IISDeploymentType = IISWebApplicationを使用します。 既定値: false

アプリケーション プールを作成または更新するオプションを指定します。 オンにすると、指定したアプリケーション プールにアプリケーションが作成されます。


AppPoolNameForApplication - 名前
string. IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true の場合に必要です。

作成または更新する IIS アプリケーション プールの名前を指定します。


DotNetVersionForApplication - .NET バージョン
string. IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true の場合に必要です。 許可値: v4.0v2.0No Managed Code。 既定値: v4.0

アプリケーション プールによって読み込まれる.NET Frameworkのバージョンを指定します。 このアプリケーション プールに割り当てられているアプリケーションにマネージド コードが含まれていない場合は、一覧から [ マネージド コードなし ] オプションを選択します。


PipeLineModeForApplication - マネージド パイプライン モード
string. IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true の場合に必要です。 使用できる値: IntegratedClassic。 既定値: Integrated

IIS がマネージド コンテンツの要求を処理する方法を決定するマネージド パイプライン モードを指定します。 クラシック モードは、アプリケーション プール内のアプリケーションを統合モードで実行できない場合にのみ使用します。


AppPoolIdentityForApplication - Id
string. IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true の場合に必要です。 使用できる値: ApplicationPoolIdentity (アプリケーション プール ID) LocalService 、(ローカル サービス)、 LocalSystem (ローカル システム)、 NetworkService (ネットワーク サービス)、 SpecificUser (カスタム アカウント)。 既定値: ApplicationPoolIdentity

アプリケーション プールのワーカー プロセスを実行するアカウントを構成します。 定義済みのセキュリティ アカウントのいずれかを指定するか、カスタム アカウントを構成します。


AppPoolUsernameForApplication -
string. AppPoolIdentityForApplication = SpecificUser && IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = true の場合に必要です。

使用するカスタム アカウントのユーザー名を指定します。


AppPoolPasswordForApplication - パスワード
string. 省略可能。 の場合は AppPoolIdentityForApplication = SpecificUser && IISDeploymentType = IISWebApplication && CreateOrUpdateAppPoolForApplication = trueを使用します。

カスタム アカウントのパスワードを指定します。
ベスト プラクティスは、ビルドまたはリリース パイプラインで変数を作成し、それをセキュリティで保護するためにとして Secret マークし、この入力を使用するときに を提供することです (例 $(userCredentials): )。
メモ: パスワードの特殊文字は、 コマンド ライン引数ごとに解釈されます。


AppPoolName - 名前
string. ActionIISApplicationPool = CreateOrUpdateAppPool の場合に必要です。

作成または更新する IIS アプリケーション プールの名前を指定します。


DotNetVersion - .NET バージョン
string. ActionIISApplicationPool = CreateOrUpdateAppPool の場合に必要です。 許可値: v4.0v2.0No Managed Code。 既定値: v4.0

アプリケーション プールによって読み込まれる.NET Frameworkのバージョンを指定します。 このアプリケーション プールに割り当てられているアプリケーションにマネージド コードが含まれていない場合は、一覧から [ マネージド コードなし ] オプションを選択します。


PipeLineMode - マネージド パイプライン モード
string. ActionIISApplicationPool = CreateOrUpdateAppPool の場合に必要です。 使用できる値: IntegratedClassic。 既定値: Integrated

IIS がマネージド コンテンツの要求を処理する方法を決定するマネージド パイプライン モードを指定します。 クラシック モードは、アプリケーション プール内のアプリケーションを統合モードで実行できない場合にのみ使用します。


AppPoolIdentity - Id
string. ActionIISApplicationPool = CreateOrUpdateAppPool の場合に必要です。 使用できる値: ApplicationPoolIdentity (アプリケーション プール ID) LocalService 、(ローカル サービス)、 LocalSystem (ローカル システム)、 NetworkService (ネットワーク サービス)、 SpecificUser (カスタム アカウント)。 既定値: ApplicationPoolIdentity

アプリケーション プールのワーカー プロセスを実行するアカウントを構成します。 定義済みのセキュリティ アカウントのいずれかを指定するか、カスタム アカウントを構成します。


AppPoolUsername -
string. AppPoolIdentity = SpecificUser && ActionIISApplicationPool = CreateOrUpdateAppPool の場合に必要です。

使用するカスタム アカウントのユーザー名を指定します。


AppPoolPassword - パスワード
string. 省略可能。 の場合は AppPoolIdentity = SpecificUser && ActionIISApplicationPool = CreateOrUpdateAppPoolを使用します。

カスタム アカウントのパスワードを指定します。
ベスト プラクティスは、ビルドまたはリリース パイプラインで変数を作成し、それをセキュリティで保護するためにとして Secret マークし、この入力を使用するときに を提供することです (例 $(userCredentials): )。
メモ: パスワードの特殊文字は、 コマンド ライン引数ごとに解釈されます。


StartStopRecycleAppPoolName - アプリケーション プール名
string. ActionIISApplicationPool = StartAppPool || ActionIISApplicationPool = StopAppPool || ActionIISApplicationPool = RecycleAppPool の場合に必要です。

IIS アプリケーション プールの名前を指定します。


AppCmdCommands - その他のappcmd.exe コマンド
string.

追加 AppCmd.exe のコマンドを指定します。 複数のコマンドの場合は、行区切り記号を使用します。
次に例を示します。
list apppools
list sites
recycle apppool /apppool.name:ExampleAppPoolName


タスク制御オプション

すべてのタスクには、タスク入力に加えて制御オプションがあります。 詳細については、「 コントロール オプションと一般的なタスク プロパティ」を参照してください。

出力変数

[なし] :

解説

このタスクを使用して、Web サイト、Web アプリ、仮想ディレクトリ、またはアプリケーション プールを作成または更新します。

必要条件

要件 説明
パイプラインの種類 クラシック リリース
実行日 エージェント、DeploymentGroup
確認要求 なし
Capabilities このタスクは、ジョブ内の後続のタスクに対する要求を満たしていません。
コマンドの制限 Any
設定可能な変数 Any
エージェントのバージョン 2.111.0 以上
タスクのカテゴリ デプロイ
要件 説明
パイプラインの種類 クラシック リリース
実行日 DeploymentGroup
確認要求 なし
Capabilities このタスクは、ジョブ内の後続のタスクに対する要求を満たしていません。
コマンドの制限 Any
設定可能な変数 Any
エージェントのバージョン 2.111.0 以上
タスクのカテゴリ 配置