AccountOperationsExtensions.CreateAsync 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> CreateAsync(
    this IAccountOperations operations,
    string resourceGroupName,
    string accountName,
    BatchAccountCreateParameters parameters,
    CancellationToken cancellationToken = null
)
public:
[ExtensionAttribute]
static Task<AccountResource^>^ CreateAsync(
    IAccountOperations^ operations,
    String^ resourceGroupName,
    String^ accountName,
    BatchAccountCreateParameters^ parameters,
    CancellationToken cancellationToken = null
)
static member CreateAsync : 
        operations:IAccountOperations *
        resourceGroupName:string *
        accountName:string *
        parameters:BatchAccountCreateParameters *
        cancellationToken:CancellationToken = null -> Task<AccountResource>
<ExtensionAttribute>
Public Shared Function CreateAsync (
    operations As IAccountOperations,
    resourceGroupName As String,
    accountName As String,
    parameters As BatchAccountCreateParameters,
    cancellationToken As CancellationToken
) As Task(Of AccountResource)

Parameters

  • resourceGroupName
    Type: System.String

    The name of the resource group that contains the new Batch account.

  • accountName
    Type: System.String

    A 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/.

Return Value

Type: System.Threading.Tasks.Task<AccountResource>

See Also

AccountOperationsExtensions Class
Microsoft.Azure.Management.Batch Namespace

Return to top