< Back

Set-AzureRmRecoveryServicesBackupProperties

Tue Jan 29, 2019 10:03 pm

NAME Set-AzureRmRecoveryServicesBackupProperties



SYNOPSIS

Sets the properties for backup management.





SYNTAX

Set-AzureRmRecoveryServicesBackupProperties [-BackupStorageRedundancy {GeoRedundant | LocallyRedundant}] -Vault <ARSVault> [-Confirm] [-WhatIf]

[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]





DESCRIPTION

The Set-AzureRmRecoveryServicesBackupProperties cmdlet sets backup storage properties for a Recovery Services vault.





PARAMETERS

-BackupStorageRedundancy <AzureRmRecoveryServicesBackupStorageRedundancyType>

Specifies the backup storage redundancy type.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Vault <ARSVault>

Specifies the name of the vault. The vault must be an AzureRmRecoveryServicesVault object.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-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



<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

ARSVault

Parameter 'Vault' accepts value of type 'ARSVault' from the pipeline





OUTPUTS



NOTES









Example 1: Set GeoRedundant storage for a vault



PS C:\\> $Vault01 = Get-AzureRmRecoveryServicesVault -Name "TestVault"

PS C:\\> Set-AzureRmRecoveryServicesBackupProperties -Vault $Vault01 -BackupStorageRedundancy GeoRedundant



The first command gets the vault named TestVault, and then stores it in the $Vault01 variable.



The second command sets the backup storage redundancy for $Vault01 to GeoRedundant.







RELATED LINKS

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

Get-AzureRmRecoveryServicesBackupProperties

Get-AzureRmRecoveryServicesVault