Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Set-AzureStorageAccount

Set-AzureStorageAccount

microsoft.windowsazure.commands.servicemanagement.dll, microsoft.azure.commands.management.storage.dll, microsoft.azure.commands.compute.dll

Synopsis

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

Syntax

Set-AzureStorageAccount [-StorageAccountName] [-Label] [-Description] [-GeoReplicationEnabled] [<CommonParameters>]

Set-AzureStorageAccount [-StorageAccountName] [-Label] [-Description] [-Type] [<CommonParameters>]

Detailed Description

The Set-AzureStorageAccount cmdlet updates the properties of a Microsoft Azure storage account in the current subscription. Properties that can be set are: "Label", "Description", "Type" and "GeoReplicationEnabled".

Parameters

-StorageAccountName <String>

Specifies the name of the storage account to be updated.

Aliases

None

Required?

true

Position

0

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.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

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?

false

Accept wildcard characters?

false

-GeoReplicationEnabled <Nullable`1[Boolean]>

Specifies whether the storage account is created with the geo-replication enabled.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Type <String>

Specifies the type of the storage account. Valid values are Standard_LRS Standard_ZRS Standard_GRS Standard_RAGRS If this parameter is not specified, a default value of Standard_GRS is used Note: The GeoReplicationEnabled parameter functionality is the same as specifying Standard_GRS in Type parameter Standard_ZRS accounts cannot be changed to other account types, and vice versa.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-PipelineVariable <string>

Not Specified

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type

New-AzureStorageAccount, Get-AzureStorageAccount, Remove-AzureStorageAccount

Notes

Examples

-------------------------- EXAMPLE 1 --------------------------

Description

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

-------------------------- EXAMPLE 2 --------------------------

Description

PS C:\> Set-AzureStorageAccount -StorageAccountName qatest1 -GeoReplicationEnabled $false

-------------------------- EXAMPLE 3 --------------------------

Description

PS C:\> Set-AzureStorageAccount -StorageAccountName qatest1 -GeoReplicationEnabled $true

Unknown