Sdílet prostřednictvím


IClustersOperations.ResizeAsync Method

Definition

Resizes the specified HDInsight cluster to the specified size.

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

Parameters

resourceGroupName
String

The name of the resource group.

clusterName
String

The name of the cluster.

targetInstanceCount
Int32

The size to which to resize the cluster.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when a required parameter is null

Applies to