Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function Test-GetAzureRecoveryPoint
$azureBackUpItem.Location = $Location
$azureBackUpItem.ContainerUniqueName = $ContainerName
$azureBackUpItem.ItemName = $ItemName
$recoveryPoint = Get-AzureBackupRecoveryPoint -Item $azureBackUpItem -Id $RecoveryPointName
$recoveryPoint = Get-AzureBackupRecoveryPoint -Item $azureBackUpItem -RecoveryPointId $RecoveryPointName
if (!($recoveryPoint -eq $null))
{
Assert-NotNull $recoveryPoint.RecoveryPointTime 'RecoveryPointTime should not be null'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class GetAzureBackupRecoveryPoint : AzureBackupDSCmdletBase
{
[Parameter(Position = 1, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.RecoveryPointId)]
[ValidateNotNullOrEmpty]
public string Id { get; set; }
public string RecoveryPointId { get; set; }

public override void ExecuteCmdlet()
{
Expand All @@ -40,16 +40,16 @@ public override void ExecuteCmdlet()
{
WriteDebug("Making client call");

if (Id != null)
if (RecoveryPointId != null)
{
CSMRecoveryPointResponse recoveryPointObject = AzureBackupClient.GetRecoveryPoint(Item.ContainerUniqueName, Item.ItemName, Id);
CSMRecoveryPointResponse recoveryPointObject = AzureBackupClient.GetRecoveryPoint(Item.ContainerUniqueName, Item.ItemName, RecoveryPointId);
if (recoveryPointObject != null)
{
WriteAzureBackupRecoveryPoint(recoveryPointObject, Item);
}
else
{
WriteDebug(string.Format("{0}{1}", "No recovery point exist with Id := ", Id));
WriteDebug(string.Format("{0}{1}", "No recovery point exist with Id := ", RecoveryPointId));
}
}
else
Expand Down