New-AzureStorageAccount

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

New-AzureStorageAccount

Creates a new storage account in a Windows Azure subscription.

Parameter Set: ParameterSetAffinityGroup
New-AzureStorageAccount [-StorageAccountName] <String> -AffinityGroup <String> [-Description <String> ] [-Label <String> ] [ <CommonParameters>]

Parameter Set: ParameterSetLocation
New-AzureStorageAccount [-StorageAccountName] <String> -Location <String> [-Description <String> ] [-Label <String> ] [ <CommonParameters>]

This topic describes the cmdlet in the .6.19 version of the Windows Azure PowerShell module. To find out the version of the module you're using, from the Windows Azure PowerShell console, type (get-module azure).version.

The New-AzureStorageAccount cmdlet creates an account that provides access to Windows Azure storage services. A storage account is a globally unique resource within the storage system. The account is the parent namespace for the Blob, Queue, and Table services.

-AffinityGroup<String>

Specifies the name of an existing affinity group in the current subscription. You can specify either a Location or an AffinityGroup parameter, but not both.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Description<String>

Specifies a description for the storage account. The description may be up to 1024 characters in length.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Label<String>

Specifies a label for the storage account. The label may be up to 100 characters in length.

Aliases

none

Required?

false

Position?

named

Default Value

The one used for the Service Name

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Location<String>

Specifies the location of the Windows Azure data center where the storage account is created. You can include either a Location or an AffinityGroup parameter, but not both.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-StorageAccountName<String>

Specifies a name for the storage account. The storage account name must be unique to Windows Azure and must be between 3 and 24 characters in length and use lowercase letters and numbers only.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

-------------- Example 1 --------------

This example creates a new storage account named "azure1" and assigns it to the "prodapps" affinity group.

C:\PS>New-AzureStorageAccount -StorageAccountName "azure1" -Label "AzureOne" -AffinityGroup "prodapps"

-------------- Example 2 --------------

This example creates a new storage account named "azuretwo" in the "North Central US" data center location.

C:\PS>New-AzureStorageAccount -StorageAccountName "azuretwo" -Label "AzureTwo" -Location "North Central US"

Remove-AzureStorageAccount

Get-AzureStorageAccount

Set-AzureStorageAccount