New-AzureStorageAccount
New-AzureStorageAccount
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>]
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 Windows Azure data center location 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 (http://go.microsoft.com/fwlink/p/?LinkID=113216).
-------------- Example 1 --------------
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 --------------
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"
Related topics