StorageAccountsOperations.CheckNameAvailabilityAsync(StorageAccountCheckNameAvailabilityParameters, CancellationToken) Method

Definition

Checks that the storage account name is valid and is not already in use.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Storage.Models.CheckNameAvailabilityResult>> CheckNameAvailabilityAsync (Azure.ResourceManager.Storage.Models.StorageAccountCheckNameAvailabilityParameters accountName, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckNameAvailabilityAsync : Azure.ResourceManager.Storage.Models.StorageAccountCheckNameAvailabilityParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Storage.Models.CheckNameAvailabilityResult>>
override this.CheckNameAvailabilityAsync : Azure.ResourceManager.Storage.Models.StorageAccountCheckNameAvailabilityParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Storage.Models.CheckNameAvailabilityResult>>
Public Overridable Function CheckNameAvailabilityAsync (accountName As StorageAccountCheckNameAvailabilityParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CheckNameAvailabilityResult))

Parameters

accountName
StorageAccountCheckNameAvailabilityParameters

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.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<Response<CheckNameAvailabilityResult>>

Applies to