< Back

Set-AzureRmBackupVault

Tue Jan 29, 2019 9:34 pm

NAME Set-AzureRmBackupVault



SYNOPSIS

Changes the storage type of a Backup vault.





SYNTAX

Set-AzureRmBackupVault [-Vault] <AzureRMBackupVault> [[-Storage] {GeoRedundant | LocallyRedundant}] [-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.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Storage <AzureBackupVaultStorageType>

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



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Vault <AzureRMBackupVault>

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



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



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.



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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... ackupvault

Get-AzureRmBackupVault

New-AzureRmBackupVault

Remove-AzureRmBackupVault