Set-​Azure​Rm​Backup​Vault

Changes the storage type of a Backup vault.

Syntax

Set-AzureRmBackupVault
   [-Vault] <AzureRMBackupVault>
   [[-Storage] <AzureBackupVaultStorageType>]
   [<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:AzureRMBackupVault
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Storage

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

Type:AzureBackupVaultStorageType
Parameter Sets:GeoRedundant, LocallyRedundant
Position:2
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.