Get-AzureRmStorageAccountNameAvailability

Checks the availability of a storage account name.

Syntax

Get-AzureRmStorageAccountNameAvailability
   [-Name] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzureRmStorageAccountNameAvailability cmdlet checks whether the name of an Azure Storage account is valid and available to use.

Examples

Example 1: Check availability of a storage account name

PS C:\>Get-AzureRmStorageAccountNameAvailability -Name 'ContosoStorage03'

This command checks the availability of the name ContosoStorage03.

Required Parameters

-Name

Specifies the name of the Storage account that this cmdlet checks.

Type:String
Aliases:StorageAccountName, AccountName
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False