IStorageAccountsOperations.BeginCreateWithHttpMessagesAsync(String, String, StorageAccountCreateParametersInner, Dictionary<String,List<String>>, CancellationToken) IStorageAccountsOperations.BeginCreateWithHttpMessagesAsync(String, String, StorageAccountCreateParametersInner, Dictionary<String,List<String>>, CancellationToken) Method

Definition

Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an account is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Storage.Fluent.Models.StorageAccountInner>> BeginCreateWithHttpMessagesAsync (string resourceGroupName, string accountName, Microsoft.Azure.Management.Storage.Fluent.Models.StorageAccountCreateParametersInner parameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
abstract member BeginCreateWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.Storage.Fluent.Models.StorageAccountCreateParametersInner * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Storage.Fluent.Models.StorageAccountInner>>

Parameters

resourceGroupName
String String

The name of the resource group within the user's subscription. The name is case insensitive.

accountName
String String

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

parameters
StorageAccountCreateParametersInner StorageAccountCreateParametersInner

The parameters to provide for the created account.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken CancellationToken

The cancellation token.

Returns

Task<Microsoft.Rest.Azure.AzureOperationResponse<StorageAccountInner>>

Exceptions

Microsoft.Rest.Azure.CloudException Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException Microsoft.Rest.ValidationException

Thrown when a required parameter is null

Applies to