Set-AzureStorageAccount
Set-AzureStorageAccount
Updates properties of a storage account.
Syntax
Parameter Set: UpdateAccountType
Set-AzureStorageAccount [-ResourceGroupName] <String> [-Name] <String> [-Type] <String> {Standard_LRS | Standard_ZRS | Standard_GRS | Standard_RAGRS | Premium_LRS} [-Profile <AzureProfile> ] [ <CommonParameters>]
Parameter Set: UpdateCustomDomain
Set-AzureStorageAccount [-ResourceGroupName] <String> [-Name] <String> [-CustomDomainName] <String> [[-UseSubDomain] <Nullable [System.Boolean]> ] [-Profile <AzureProfile> ] [ <CommonParameters>]
Parameter Set: UpdateTags
Set-AzureStorageAccount [-ResourceGroupName] <String> [-Name] <String> [-Tags] <Hashtable[]> [-Profile <AzureProfile> ] [ <CommonParameters>]
Detailed Description
The Set-AzureStorageAccount cmdlet updates properties of a storage account in Azure.
Parameters
-CustomDomainName<String>
Specifies the name of a custom domain.
Aliases |
none |
Required? |
true |
Position? |
3 |
Default Value |
none |
Accept Pipeline Input? |
true (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Name<String>
Specifies the name of the storage account to update.
Aliases |
StorageAccountName,AccountName |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
true(ByPropertyName) |
Accept Wildcard Characters? |
false |
-Profile<AzureProfile>
Specifies an Azure profile.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ResourceGroupName<String>
Specifies the name of a resource group.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true(ByPropertyName) |
Accept Wildcard Characters? |
false |
-Tags<Hashtable[]>
Specifies tags as an array of hash tables.
Aliases |
none |
Required? |
true |
Position? |
3 |
Default Value |
none |
Accept Pipeline Input? |
true(ByPropertyName) |
Accept Wildcard Characters? |
false |
-Type<String>
Specifies the account type of the storage account.Valid values are:
-- Standard_LRS. Locally-redundant storage.
-- Standard_ZRS. Zone-redundant storage.
-- Standard_GRS. Geo-redundant storage.
-- Standard_RAGRS. Read access geo-redundant storage.
You cannot change Standard_ZRS accounts to other account types. You cannot change other account types to Standard_ZRS.
Aliases |
none |
Required? |
true |
Position? |
3 |
Default Value |
none |
Accept Pipeline Input? |
true(ByPropertyName) |
Accept Wildcard Characters? |
false |
-UseSubDomain<Nullable [System.Boolean]>
Aliases |
none |
Required? |
false |
Position? |
4 |
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.
Examples
Example 1: Change the type of a storage account type
This command changes the account type of the account named StorageAccount24 in ResourceGroup11.
PS C:\> Set-AzureStorageAccount -ResourceGroupName "ResourceGroup11" -Name "StorageAccount24" -AccountType "Standard_RAGRS"
Example 2: Set a custom domain
This command adds a custom domain named Contoso domain to the account named StorageAccount24 in ResourceGroup11.
PS C:\> Set-AzureStorageAccount -ResourceGroupName "ResourceGroup11" -Name "StorageAccount24" -CustomDomainName "Contoso domain" -UseSubDomain $True