共用方式為


ClustersOperationsExtensions.UpdateAsync 方法

定義

更新叢集的屬性。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.BatchAI.Models.Cluster> UpdateAsync (this Microsoft.Azure.Management.BatchAI.IClustersOperations operations, string resourceGroupName, string workspaceName, string clusterName, Microsoft.Azure.Management.BatchAI.Models.ScaleSettings scaleSettings = default, System.Threading.CancellationToken cancellationToken = default);
static member UpdateAsync : Microsoft.Azure.Management.BatchAI.IClustersOperations * string * string * string * Microsoft.Azure.Management.BatchAI.Models.ScaleSettings * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.BatchAI.Models.Cluster>
<Extension()>
Public Function UpdateAsync (operations As IClustersOperations, resourceGroupName As String, workspaceName As String, clusterName As String, Optional scaleSettings As ScaleSettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Cluster)

參數

operations
IClustersOperations

這個擴充方法的作業群組。

resourceGroupName
String

資源所屬資源群組的名稱。

workspaceName
String

工作區的名稱。 工作區名稱只能包含英數位元的組合,以及虛線 () 和底線 (_) 。 名稱長度必須介於 1 到 64 個字元之間。

clusterName
String

指定資源群組內的叢集名稱。 叢集名稱只能包含英數位元的組合,以及虛線 () 和底線 (_) 。 名稱長度必須介於 1 到 64 個字元之間。

scaleSettings
ScaleSettings

調整設定。 叢集所需的調整設定。 Batch AI 服務支援手動和自動調整叢集。

cancellationToken
CancellationToken

取消語彙基元。

傳回

適用於