IAccountOperations.CreateWithHttpMessagesAsync Method (String, String, BatchAccountCreateParameters, Dictionary<String, List<String>>, 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
Task<AzureOperationResponse<AccountResource>> CreateWithHttpMessagesAsync(
string resourceGroupName,
string accountName,
BatchAccountCreateParameters parameters,
Dictionary<string, List<string>> customHeaders = null,
CancellationToken cancellationToken = null
)
Task<AzureOperationResponse<AccountResource^>^>^ CreateWithHttpMessagesAsync(
String^ resourceGroupName,
String^ accountName,
BatchAccountCreateParameters^ parameters,
Dictionary<String^, List<String^>^>^ customHeaders = null,
CancellationToken cancellationToken = null
)
abstract CreateWithHttpMessagesAsync :
resourceGroupName:string *
accountName:string *
parameters:BatchAccountCreateParameters *
customHeaders:Dictionary<string, List<string>> = null *
cancellationToken:CancellationToken = null -> Task<AzureOperationResponse<AccountResource>>
Function CreateWithHttpMessagesAsync (
resourceGroupName As String,
accountName As String,
parameters As BatchAccountCreateParameters,
customHeaders As Dictionary(Of String, List(Of String)),
cancellationToken As CancellationToken
) As Task(Of AzureOperationResponse(Of AccountResource))
Parameters
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.
customHeaders
Type: System.Collections.Generic.Dictionary<String, List<String>>The headers that will be added to the request.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
Return Value
Type: System.Threading.Tasks.Task<AzureOperationResponse<AccountResource>>
See Also
IAccountOperations Interface
Microsoft.Azure.Management.Batch Namespace
Return to top