Sdílet prostřednictvím


ServiceFabricDeploy@1 - Service Fabric application deployment v1 task

Use this task to deploy a Service Fabric application to a cluster. This task deploys an Azure Service Fabric application to a cluster according to the settings defined in the publish profile.

Inputs

applicationPackagePath - Application Package
string. Required.

Specifies the path to the application package that is to be deployed. Variables and wildcards can be used in the path.


serviceConnectionName - Cluster Connection
string. Required.

Specifies the Azure Service Fabric service connection to be used to connect to the cluster. The settings defined in this referenced service connection override those defined in the publish profile. Choose Manage to register a new service connection.


publishProfilePath - Publish Profile
string.

Optional. Specifies the path to the publish profile file that defines the settings to use. Variables and wildcards can be used in the path. Learn more about how to create publish profiles in Visual Studio.


applicationParameterPath - Application Parameters
string.

Optional. Specifies the path to the application parameters file. Variables and wildcards can be used in the path. If specified, this overrides the value in the publish profile. Learn more about how to create an application parameters file in Visual Studio.


compressPackage - Compress Package
boolean. Default value: false.

Optional. Specifies whether the application package should be compressed before copying to the image store. If enabled, this overrides the value in the publish profile. Learn more about compressing packages.


copyPackageTimeoutSec - CopyPackageTimeoutSec
string.

Optional. Specifies the timeout in seconds for copying application package to the image store. If specified, this overrides the value in the publish profile.


registerPackageTimeoutSec - RegisterPackageTimeoutSec
string.

Optional. Specifies the timeout in seconds for registering or un-registering an application package.


overwriteBehavior - Overwrite Behavior
string. Required. Allowed values: Always, Never, SameAppTypeAndVersion. Default value: SameAppTypeAndVersion.

Overwrites behavior if an application exists in the cluster with the same name and upgrades have not been configured.

Never will not remove the existing application. This is the default behavior.

Always will remove the existing application, even if its application type and version is different from the application being created.

SameAppTypeAndVersion will remove the existing application only if its application type and version is the same as the application being created.


skipUpgradeSameTypeAndVersion - Skip upgrade for same Type and Version
boolean. Default value: false.

Optional. Specifies whether an upgrade will be skipped if the same application type and version already exists in the cluster; otherwise, the upgrade fails during validation. If enabled, re-deployments are idempotent.


skipPackageValidation - Skip package validation
boolean. Default value: false.

Optional. Specifies whether the package should be validated or not before deployment. Learn more about package validation.


useDiffPackage - Use Diff Package
boolean. Default value: false.

Optional. Upgrades by using a diff package that contains only the updated application files, the updated application manifest, and the service manifest files.

A diff package is created by comparing the package specified in the application package input against the package that is currently registered in the target cluster. If a service version in the cluster's current package is the same as the new package, then this service package will be removed from the new application package. Learn more about diff packages.


overridePublishProfileSettings - Override All Publish Profile Upgrade Settings
boolean. Default value: false.

Optional. Overrides all upgrade settings with either specified values or the default value (if not specified). Learn more about upgrade settings.


isUpgrade - Upgrade the Application
boolean. Optional. Use when overridePublishProfileSettings = true. Default value: true.

Overwrites the application if the value is set to false.


unregisterUnusedVersions - Unregister Unused Versions
boolean. Default value: true.

Optional. Indicates whether all unused versions of the application type will be removed after an upgrade.


upgradeMode - Upgrade Mode
string. Required when overridePublishProfileSettings = true && isUpgrade = true. Allowed values: Monitored, UnmonitoredAuto, UnmonitoredManual. Default value: Monitored.


FailureAction - FailureAction
string. Required when overridePublishProfileSettings = true && isUpgrade = true && upgradeMode = Monitored. Allowed values: Rollback, Manual. Default value: Rollback.


UpgradeReplicaSetCheckTimeoutSec - UpgradeReplicaSetCheckTimeoutSec
string. Optional. Use when overridePublishProfileSettings = true && isUpgrade = true.


TimeoutSec - TimeoutSec
string. Optional. Use when overridePublishProfileSettings = true && isUpgrade = true.


ForceRestart - ForceRestart
boolean. Optional. Use when overridePublishProfileSettings = true && isUpgrade = true. Default value: false.


HealthCheckRetryTimeoutSec - HealthCheckRetryTimeoutSec
string. Optional. Use when overridePublishProfileSettings = true && isUpgrade = true && upgradeMode = Monitored.


HealthCheckWaitDurationSec - HealthCheckWaitDurationSec
string. Optional. Use when overridePublishProfileSettings = true && isUpgrade = true && upgradeMode = Monitored.


HealthCheckStableDurationSec - HealthCheckStableDurationSec
string. Optional. Use when overridePublishProfileSettings = true && isUpgrade = true && upgradeMode = Monitored.


UpgradeDomainTimeoutSec - UpgradeDomainTimeoutSec
string. Optional. Use when overridePublishProfileSettings = true && isUpgrade = true && upgradeMode = Monitored.


ConsiderWarningAsError - ConsiderWarningAsError
boolean. Optional. Use when overridePublishProfileSettings = true && isUpgrade = true && upgradeMode = Monitored. Default value: false.


DefaultServiceTypeHealthPolicy - DefaultServiceTypeHealthPolicy
string. Optional. Use when overridePublishProfileSettings = true && isUpgrade = true && upgradeMode = Monitored.


MaxPercentUnhealthyDeployedApplications - MaxPercentUnhealthyDeployedApplications
string. Optional. Use when overridePublishProfileSettings = true && isUpgrade = true && upgradeMode = Monitored.


UpgradeTimeoutSec - UpgradeTimeoutSec
string. Optional. Use when overridePublishProfileSettings = true && isUpgrade = true && upgradeMode = Monitored.


ServiceTypeHealthPolicyMap - ServiceTypeHealthPolicyMap
string. Optional. Use when overridePublishProfileSettings = true && isUpgrade = true && upgradeMode = Monitored.


configureDockerSettings - Configure Docker settings
boolean. Default value: false.

Configures the application with the specified Docker settings.


registryCredentials - Registry Credentials Source
string. Required when configureDockerSettings = true. Allowed values: AzureResourceManagerEndpoint (Azure Resource Manager Endpoint), ContainerRegistryEndpoint (Container Registry Endpoint), UsernamePassword (Username and Password). Default value: AzureResourceManagerEndpoint.

Specifies how credentials for the Docker registry are provided.


dockerRegistryConnection - Docker Registry Connection
Input alias: dockerRegistryEndpoint. string. Required when configureDockerSettings = true && registryCredentials = ContainerRegistryEndpoint.

Specifies a Docker registry service connection. Required for commands that need to authenticate with a registry.

Note

The task tries to encrypt the registry secret before transmitting it to the service fabric cluster. However, the task needs the cluster's server certificate to be installed on the agent machine. If the certificate is not present, the registry secret will not be encrypted.


azureSubscription - Azure subscription
Input alias: azureSubscriptionEndpoint. string. Required when configureDockerSettings = true && registryCredentials = AzureResourceManagerEndpoint.

Specifies an Azure subscription.

Note

The task will try to encrypt the registry secret before transmitting it to the service fabric cluster. However, the task needs the cluster's server certificate to be installed on the agent machine. If the certificate is not present, the registry secret will not be encrypted.


registryUserName - Registry User Name
string. Optional. Use when configureDockerSettings = true && registryCredentials = UsernamePassword.

Specifies the username for the Docker registry.


registryPassword - Registry Password
string. Optional. Use when configureDockerSettings = true && registryCredentials = UsernamePassword.

Specifies the password for the Docker registry. If the password is not encrypted, you should use a custom release pipeline secret variable to store it.


passwordEncrypted - Password Encrypted
boolean. Optional. Use when configureDockerSettings = true && registryCredentials = UsernamePassword. Default value: true.

You should encrypt your password using Invoke-ServiceFabricEncryptText. If you do not, and a certificate matching the Server Certificate Thumbprint in the Cluster Service Connection is installed on the build agent, that certificate will be used to encrypt the password; otherwise, an error will occur.


ReplicaQuorumTimeoutSec - ReplicaQuorumTimeoutSec
string. Optional. Use when overridePublishProfileSettings = true && isUpgrade = true.


Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

None.

Remarks

Use this task to deploy a Service Fabric application to a cluster. This task deploys an Azure Service Fabric application to a cluster according to the settings defined in the publish profile.

Service Fabric

This task uses a Service Fabric installation to connect and deploy to a Service Fabric cluster. Download and install Service Fabric on the build agent.

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands Self-hosted agents must have capabilities that match the following demands to run jobs that use this task: Cmd
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version 1.95.0 or greater
Task category Deploy