FabricClient.ApplicationManagementClient.UpdateApplicationAsync Method

Definition

Overloads

UpdateApplicationAsync(ApplicationUpdateDescription)

Updates a Service Fabric application.

UpdateApplicationAsync(ApplicationUpdateDescription, TimeSpan, CancellationToken)

Updates a Service Fabric application.

UpdateApplicationAsync(ApplicationUpdateDescription)

Updates a Service Fabric application.

public System.Threading.Tasks.Task UpdateApplicationAsync (System.Fabric.Description.ApplicationUpdateDescription applicationUpdateDescription);
member this.UpdateApplicationAsync : System.Fabric.Description.ApplicationUpdateDescription -> System.Threading.Tasks.Task

Parameters

applicationUpdateDescription
ApplicationUpdateDescription

Application update description.

Returns

System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the operation.

Exceptions

InvalidNameUri: The application name is not a valid Naming URI.

ApplicationNotFound: The application does not exist.

ApplicationUpdateInProgress: Another application update is already in progress.

System.ArgumentException

The application update parameters specified are incorrect. Refer to MinimumNodes, MaximumNodes and Metrics for correct specification of application capacity parameters.

It is possible that parameters in ApplicationUpdateDescription are valid, but when combined with existing application capacity parameters they produce an invalid combination. For example, setting MinimumNodes to a value that is higher than the one that was specified in MaximumNodes when application was created.

Applies to

UpdateApplicationAsync(ApplicationUpdateDescription, TimeSpan, CancellationToken)

Updates a Service Fabric application.

public System.Threading.Tasks.Task UpdateApplicationAsync (System.Fabric.Description.ApplicationUpdateDescription applicationUpdateDescription, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.UpdateApplicationAsync : System.Fabric.Description.ApplicationUpdateDescription * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

applicationUpdateDescription
ApplicationUpdateDescription

Application update description.

timeout
System.TimeSpan

Defines the maximum amount of time the system will allow this operation to continue before returning System.TimeoutException.

cancellationToken
System.Threading.CancellationToken

The CancellationToken that the operation is observing. It can be used to propagate notification that the operation should be canceled.

Returns

System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the operation.

Exceptions

InvalidNameUri: The application name is not a valid Naming URI.

ApplicationNotFound: The application does not exist.

ApplicationUpdateInProgress: Another application update is already in progress.

System.ArgumentException

The application update parameters specified are incorrect. Refer to MinimumNodes, MaximumNodes and Metrics for correct specification of application capacity parameters.

It is possible that parameters in ApplicationUpdateDescription are valid, but when combined with existing application capacity parameters they produce an invalid combination. For example, setting MinimumNodes to a value that is higher than the one that was specified in MaximumNodes when application was created.

Applies to