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
Public Function UpdateApplicationAsync (applicationUpdateDescription As ApplicationUpdateDescription) As Task

Parameters

applicationUpdateDescription
ApplicationUpdateDescription

Application update description.

Returns

A 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.

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
Public Function UpdateApplicationAsync (applicationUpdateDescription As ApplicationUpdateDescription, timeout As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

applicationUpdateDescription
ApplicationUpdateDescription

Application update description.

timeout
TimeSpan

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

cancellationToken
CancellationToken

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

Returns

A 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.

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