AccountOperationsExtensions.BeginCreateAsync Method (IAccountOperations, String, String, BatchAccountCreateParameters, CancellationToken)
Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
Namespace: Microsoft.Azure.Management.Batch
Assembly: Microsoft.Azure.Management.Batch (in Microsoft.Azure.Management.Batch.dll)
Syntax
public static Task<AccountResource> BeginCreateAsync(
this IAccountOperations operations,
string resourceGroupName,
string accountName,
BatchAccountCreateParameters parameters,
CancellationToken cancellationToken = null
)
public:
[ExtensionAttribute]
static Task<AccountResource^>^ BeginCreateAsync(
IAccountOperations^ operations,
String^ resourceGroupName,
String^ accountName,
BatchAccountCreateParameters^ parameters,
CancellationToken cancellationToken = null
)
static member BeginCreateAsync :
operations:IAccountOperations *
resourceGroupName:string *
accountName:string *
parameters:BatchAccountCreateParameters *
cancellationToken:CancellationToken = null -> Task<AccountResource>
<ExtensionAttribute>
Public Shared Function BeginCreateAsync (
operations As IAccountOperations,
resourceGroupName As String,
accountName As String,
parameters As BatchAccountCreateParameters,
cancellationToken As CancellationToken
) As Task(Of AccountResource)
Parameters
operations
Type: Microsoft.Azure.Management.Batch.IAccountOperationsThe operations group for this extension method.
resourceGroupName
Type: System.StringThe name of the resource group that contains the new Batch account.
accountName
Type: System.StringA name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: https://accountname.region.batch.azure.com/.
parameters
Type: Microsoft.Azure.Management.Batch.Models.BatchAccountCreateParametersAdditional parameters for account creation.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
Return Value
Type: System.Threading.Tasks.Task<AccountResource>
See Also
AccountOperationsExtensions Class
Microsoft.Azure.Management.Batch Namespace
Return to top