Modifier

Partager via


Get-AzRecoveryServicesBackupRecommendedArchivableRPGroup

Gets the recovery points which are recommended to be moved together to VaultArchive tier.

Syntax

Get-AzRecoveryServicesBackupRecommendedArchivableRPGroup
   [-Item] <ItemBase>
   [-VaultId <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzRecoveryServicesBackupRecommendedArchivableRPGroup gets the recovery points which are recommended to be moved to VaultArchive tier. These recovery points when moved together will lead to maximum savings.

Examples

$vault = Get-AzRecoveryServicesVault -ResourceGroupName "resourceGroup" -Name "vaultName"
$item = Get-AzRecoveryServicesBackupItem -BackupManagementType "AzureVM" -WorkloadType "AzureVM" -VaultId $vault.ID
$rpGroup = Get-AzRecoveryServicesBackupRecommendedArchivableRPGroup -Item $item[3] -VaultId $vault.ID

Here we use Get-AzRecoveryServicesBackupRecommendedArchivableRPGroup cmdlet to fetch the recommended RPs list to be moved to VaultArchive tier and assign to $rpGroup.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Item

Protected Item object for which recovery point need to be fetched

Type:ItemBase
Position:2
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-VaultId

ARM ID of the Recovery Services Vault.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Inputs

ItemBase

String

Outputs

RecoveryPointBase