Dela via


BatchAccountOperationsExtensions.BeginCreateAsync Metod

Definition

Skapar ett nytt Batch-konto med de angivna parametrarna. Det går inte att uppdatera befintliga konton med det här API:et och bör i stället uppdateras med API:et För att uppdatera Batch-kontot.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.BatchAccount> BeginCreateAsync (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 BeginCreateAsync : 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 BeginCreateAsync (operations As IBatchAccountOperations, resourceGroupName As String, accountName As String, parameters As BatchAccountCreateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of BatchAccount)

Parametrar

operations
IBatchAccountOperations

Åtgärdsgruppen för den här tilläggsmetoden.

resourceGroupName
String

Namnet på resursgruppen som innehåller Batch-kontot.

accountName
String

Ett namn på Batch-kontot som måste vara unikt i regionen. Batch-kontonamn måste vara mellan 3 och 24 tecken långa och får endast innehålla siffror och gemener. Det här namnet används som en del av DNS-namnet som används för att komma åt Batch-tjänsten i den region där kontot skapas. Exempel: http://accountname.region.batch.azure.com/.

parameters
BatchAccountCreateParameters

Ytterligare parametrar för att skapa konto.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

Gäller för