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 @@ -220,7 +220,7 @@ public abstract class RetentionScheduleBase

public virtual void Validate()
{
if (RetentionTimes == null || RetentionTimes.Count == 0 || RetentionTimes.Count != 1)
if (RetentionTimes == null || RetentionTimes.Count != 1)
{
throw new ArgumentException(Resources.InvalidRetentionTimesInPolicyException);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,17 +170,6 @@ public override void ExecuteCmdlet()
ServiceClientHelpers.GetServiceClientProviderType(
Models.WorkloadType.AzureFiles );
}
else if( WorkloadType == Models.WorkloadType.AzureFiles )
{
if( BackupManagementType != Models.BackupManagementType.AzureStorage )
{
throw new ArgumentException(
Resources.AzureFileUnsupportedBackupManagementTypeException );
}
serviceClientProviderType =
ServiceClientHelpers.GetServiceClientProviderType(
Models.WorkloadType.AzureFiles );
}
else if( WorkloadType == Models.WorkloadType.MSSQL )
{
if( BackupManagementType != Models.BackupManagementType.AzureWorkload )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,6 @@ public class ASRInMageAzureV2SpecificRPIDetails : ASRProviderSpecificRPIDetails
/// </summary>
public ASRInMageAzureV2SpecificRPIDetails(InMageAzureV2ReplicationDetails details)
{
this.LastHeartbeat = this.LastHeartbeat;
this.RecoveryAvailabilitySetId = details.RecoveryAvailabilitySetId;
this.AgentVersion = details.AgentVersion;
this.DiscoveryType = details.DiscoveryType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ private void StartRPITestFailover()
}
else
{
// TODO
new ArgumentException(
Resources
.UnsupportedDirectionForTFO); // Throw Unsupported Direction Exception
Expand Down Expand Up @@ -306,6 +307,7 @@ private void StartRPITestFailover()
}
else
{
// TODO
// RecoveryToPrimary Direction is Invalid for InMageAzureV2.
new ArgumentException(Resources.InvalidDirectionForVMWareToAzure);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ private void InMageUnplannedFailover(UnplannedFailoverInput input)
}
else
{
// TODO
// RecoveryToPrimary Direction is Invalid for InMage.
new ArgumentException(Resources.InvalidDirectionForAzureToVMWare);
}
Expand Down Expand Up @@ -318,6 +319,7 @@ private void InMageAzureV2UnplannedFailover(UnplannedFailoverInput input)
}
else
{
// TODO
// RecoveryToPrimary Direction is Invalid for InMageAzureV2.
new ArgumentException(Resources.InvalidDirectionForVMWareToAzure);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ private void SetRPIReprotect()
}
else
{
// TODO
// PrimaryToRecovery Direction is Invalid for InMageAzureV2.
new ArgumentException(Resources.InvalidDirectionForAzureToVMWare);
}
Expand Down Expand Up @@ -507,6 +508,7 @@ private void SetRPIReprotect()
}
else
{
// TODO
// PrimaryToRecovery Direction is Invalid for InMage.
new ArgumentException(Resources.InvalidDirectionForVMWareToAzure);
}
Expand Down