使用此任务将 Docker Compose 应用程序部署到 Service Fabric 群集。 此任务根据 Compose 文件中定义的设置将 Azure Service Fabric 应用程序部署到群集。
此任务已弃用。
使用此任务将 Docker Compose 应用程序部署到 Service Fabric 群集。 此任务根据 Compose 文件中定义的设置将 Azure Service Fabric 应用程序部署到群集。
语法
# Service Fabric Compose deploy v0
# Deploy a Docker Compose application to an Azure Service Fabric cluster.
- task: ServiceFabricComposeDeploy@0
  inputs:
    clusterConnection: # string. Alias: serviceConnectionName. Required. Cluster Service Connection. 
    composeFilePath: '**/docker-compose.yml' # string. Required. Compose File Path. Default: **/docker-compose.yml.
    applicationName: 'fabric:/Application1' # string. Required. Application Name. Default: fabric:/Application1.
  # Registry Settings
    registryCredentials: 'AzureResourceManagerEndpoint' # 'AzureResourceManagerEndpoint' | 'ContainerRegistryEndpoint' | 'UsernamePassword' | 'None'. Required. Registry Credentials Source. Default: AzureResourceManagerEndpoint.
    #dockerRegistryConnection: # string. Alias: dockerRegistryEndpointName. Optional. Use when registryCredentials = ContainerRegistryEndpoint. Docker Registry Service Connection. 
    azureSubscription: # string. Alias: azureSubscriptionEndpoint. Required when registryCredentials = AzureResourceManagerEndpoint. Azure subscription. 
    #registryUserName: # string. Optional. Use when registryCredentials = UsernamePassword. Registry User Name. 
    #registryPassword: # string. Optional. Use when registryCredentials = UsernamePassword. Registry Password. 
    #passwordEncrypted: true # boolean. Optional. Use when registryCredentials = UsernamePassword. Password Encrypted. Default: true.
  # Advanced Settings
    #upgrade: false # boolean. Upgrade. Default: false.
    #deployTimeoutSec: # string. Deploy Timeout (s). 
    #removeTimeoutSec: # string. Remove Timeout (s). 
    #getStatusTimeoutSec: # string. Get Status Timeout (s).
输入
              clusterConnection
               - 
              群集服务连接
              输入别名: serviceConnectionName. 
              string。 必填。
指定要用于连接到群集的 Azure Service Fabric 服务连接。 选择 Manage 注册新的服务连接。
              composeFilePath
               - 
              撰写文件路径
              string。 必填。 默认值:**/docker-compose.yml。
指定要部署的撰写文件的路径。 可以在路径中使用 变量 和通配符。 示例:$(System.DefaultWorkingDirectory)/**/drop/projectartifacts/**/docker-compose.yml。
注释
作为此任务的一部分,不支持组合组合文件。
              applicationName
               - 
              应用程序名称
              string。 必填。 默认值:fabric:/Application1。
指定已部署应用程序的 Service Fabric 应用程序名称。 使用 fabric:/ 作为前缀。 Service Fabric 群集中的应用程序名称必须是唯一的。
              registryCredentials
               - 
              注册表凭据源
              string。 必填。 允许的值:AzureResourceManagerEndpoint(Azure 资源管理器服务连接)、ContainerRegistryEndpoint(容器注册表服务连接)、UsernamePassword(用户名和密码),None。 默认值:AzureResourceManagerEndpoint。
指定如何将 Docker 容器注册表的凭据提供给部署任务。 允许的值为:
- 
              
AzureResourceManagerEndpoint(Azure 资源管理器服务连接):使用azureSubscription获取 Azure 容器注册表的服务主体 ID 和密钥。 - 
              
ContainerRegistryEndpoint(容器注册表服务连接):使用dockerRegistryConnection选择 Docker 注册表服务连接。 如果在生成代理上安装与群集服务连接中的服务器证书指纹匹配的证书,则它将用于加密密码;否则,不会加密密码。 - 
              
UsernamePassword(用户名和密码):使用registryUsername和registryPassword来存储 Docker 注册表的用户名和密码。 应使用具有 选项的Password Encrypted加密密码。 如果未使用Invoke-ServiceFabricEncryptText加密密码,并且与群集连接中的服务器证书指纹匹配的证书安装在生成代理上,则证书将用于加密密码。 否则,密码不会加密,将以明文形式发送。 - 
              
None:未提供注册表凭据。 这用于访问公共容器注册表。 
              dockerRegistryConnection
               - 
              Docker 注册表服务连接
              输入别名: dockerRegistryEndpointName. 
              string。 可选。 当 registryCredentials = ContainerRegistryEndpoint时使用。
指定 Docker 注册表服务连接。 如果在生成代理上安装与群集服务连接中的服务器证书指纹匹配的证书,则它将用于加密密码;否则,不会加密密码。
              azureSubscription
               - 
              Azure 订阅
              输入别名: azureSubscriptionEndpoint. 
              string。 
              registryCredentials = AzureResourceManagerEndpoint时是必需的。
指定 Azure 订阅。
              registryUserName
               - 
              注册表用户名
              string。 可选。 当 registryCredentials = UsernamePassword时使用。
指定 Docker 注册表的用户名。
              registryPassword
               - 
              注册表密码
              string。 可选。 当 registryCredentials = UsernamePassword时使用。
指定 Docker 注册表的密码。 如果未加密密码,建议使用自定义发布管道机密变量来存储密码。
              passwordEncrypted
               - 
              密码加密
              boolean。 可选。 当 registryCredentials = UsernamePassword时使用。 默认值:true。
使用 Invoke-ServiceFabricEncryptText加密密码。 如果不加密密码,且在生成代理上安装与群集服务连接中的服务器证书指纹匹配的证书,则它将用于加密密码;否则,将发生错误。
              upgrade
               - 
              升级
              boolean。 默认值:false。
升级现有部署,而不是将其删除。
              deployTimeoutSec
               - 
              部署超时 (s)
              string。
指定部署应用程序的超时(以秒为单位)。
              removeTimeoutSec
               - 
              删除超时 (s)
              string。
指定删除现有应用程序的超时(以秒为单位)。
              getStatusTimeoutSec
               - 
              获取状态超时 (s)
              string。
指定获取现有应用程序状态的超时(以秒为单位)。
任务控制选项
除任务输入之外,所有任务都具有控制选项。 有关详细信息,请参阅 控件选项和常见任务属性。
输出变量
没有。
注解
使用此任务将 Docker-compose 应用程序部署到 Service Fabric 群集。 此任务根据撰写文件中定义的设置将 Azure Service Fabric 应用程序部署到群集。
注释
此任务目前为预览版,需要支持撰写部署的 Service Fabric 预览版。 请参阅 Azure Service Fabric 中的Docker Compose 部署支持。
Service Fabric
- 此任务使用 Service Fabric 安装来连接并部署到 Service Fabric 群集。
 - 在生成代理上下载并安装 Azure Service Fabric Core SDK。