BatchAccountOperationsExtensions.CreateAsync 方法

定義

使用指定的參數建立新的 Batch 帳戶。 現有的帳戶無法使用此 API 更新,而應該改用更新 Batch 帳戶 API 來更新。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.BatchAccount> CreateAsync (this Microsoft.Azure.Management.Batch.IBatchAccountOperations operations, string resourceGroupName, string accountName, Microsoft.Azure.Management.Batch.Models.BatchAccountCreateParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.Batch.IBatchAccountOperations * string * string * Microsoft.Azure.Management.Batch.Models.BatchAccountCreateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.BatchAccount>
<Extension()>
Public Function CreateAsync (operations As IBatchAccountOperations, resourceGroupName As String, accountName As String, parameters As BatchAccountCreateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of BatchAccount)

參數

operations
IBatchAccountOperations

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

resourceGroupName
String

包含 Batch 帳戶的資源組名。

accountName
String

Batch 帳戶的名稱,該帳戶在區域內必須是唯一的。 Batch 帳戶名稱的長度必須介於 3 到 24 個字元之間,而且只能使用數位和小寫字母。 此名稱會當做 DNS 名稱的一部分,用來存取帳戶建立所在區域中的 Batch 服務。 例如:http://accountname.region.batch.azure.com/

parameters
BatchAccountCreateParameters

帳戶建立的其他參數。

cancellationToken
CancellationToken

取消語彙基元。

傳回

適用於