Set-AzureRmBackupVault

Changes the storage type of a Backup vault.

Syntax

Set-AzureRmBackupVault
   [[-Storage] <AzureBackupVaultStorageType>]
   [-Vault] <AzureRMBackupVault>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Set-AzureRmBackupVault cmdlet changes the storage type of an Azure Backup vault. You cannot modify other properties of a vault.

Examples

Example 1: Change the storage for an existing vault

PS C:\>Get-AzureRmBackupVault -Name "Vault03" | Set-AzureRmBackupVault -Storage LocallyRedundant

This command gets the Azure Backup vault named Vault03 by using the Get-AzureRmBackupVault cmdlet. The command passes that vault to the current cmdlet by using the pipeline operator. The current cmdlet changes the storage type to LocallyRedundant.

Required Parameters

-Vault

Specifies a Backup vault that this cmdlet modifies. To obtain an AzureRmBackupVault object, use the Get-AzureRmBackupVault cmdlet.

Type:Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupVault
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Storage

Specifies the storage type for the backup data. The acceptable values for this parameter are: LocallyRedundant and GeoRedundant.

Type:Microsoft.Azure.Commands.AzureBackup.Models.AzureBackupVaultStorageType
Parameter Sets:GeoRedundant, LocallyRedundant
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

AzureRmBackupVault

Outputs

None

Notes

  • When you register the first server or virtual machine for a vault, the storage type is locked. Subsequently, you cannot change the storage type.