Export (0) Print
Expand All

Set-AzureStorageAccount

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

Set-AzureStorageAccount

Updates the properties of a storage account in a Windows Azure subscription.

 

Parameter Set: Default
Set-AzureStorageAccount [-StorageAccountName] <String> [-Description <String> ] [-GeoReplicationEnabled <Boolean> ] [-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 Set-AzureStorageAccount cmdlet updates the properties of a Windows Azure storage account in the current subscription. Properties that can be set are: "Label", "Description" and "GeoReplicationEnabled".

 

-Description<String>

Specifies a description for the storage account. The description may be up to 1024 characters in length. You must specify either a label or a description, or both.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-GeoReplicationEnabled<Boolean>

Specifies whether geo-replication is enabled for the storage account.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Label<String>

Specifies a label for the storage account. The label may be up to 100 characters in length. You must specify either a label or a description, or both.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-StorageAccountName<String>

Specifies the name of the storage account to be updated.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

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).

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.

  • ManagementOperationContext

 

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

This command updates the label and description of the 'qatest1' storage account in the specified subscription.


C:\PS>Set-AzureStorageAccount -StorageAccountName qatest1 -Label "QATestAccnt" -Description "QA test storage account"

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

This command enables geo-replication of the "qatest1" storage account in the current subscription.


C:\PS>Set-AzureStorageAccount -StorageAccountName "qatest1" –GeoReplicationEnabled $True –Label "QATestAccount" 

Related topics

Show:
© 2014 Microsoft