IClustersOperations.BeginResizingAsync Method

Definition

Begins resizing the specified HDInsight cluster to the specified size.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> BeginResizingAsync (string resourceGroupName, string clusterName, int targetInstanceCount, System.Threading.CancellationToken cancellationToken = default);
abstract member BeginResizingAsync : string * string * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function BeginResizingAsync (resourceGroupName As String, clusterName As String, targetInstanceCount As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)

Parameters

resourceGroupName
System.String

The name of the resource group.

clusterName
System.String

The name of the cluster.

targetInstanceCount
System.Int32

The size to which to resize the cluster.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<AzureOperationResponse>

Exceptions

Thrown when the operation returned an invalid status code

Thrown when a required parameter is null

Applies to