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 @@ -93,5 +93,7 @@ internal static class AzureBackupCmdletHelpMessage
public const string WeekNumber = "List of Week Numbers of the month";
public const string MonthsOfYear = "List of Months of the year";
public const string Retention = "Retention duration value";

public const string PolicyObject = "Policy object for enabling protection";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ public SwitchParameter RemoveRecoveryPoints
}
private bool DeleteBackupData;

[Parameter(Position = 2, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.Reason)]
public string Reason { get; set; }

[Parameter(Position = 3, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.Comments)]
public string Comments { get; set; }

public override void ExecuteCmdlet()
{
ExecutionBlock(() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
[Cmdlet(VerbsLifecycle.Enable, "AzureRMBackupProtection"), OutputType(typeof(AzureRMBackupJob))]
public class EnableAzureRMBackupProtection : AzureRMBackupItemCmdletBase
{
[Parameter(Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.PolicyName)]
[Parameter(Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.PolicyObject)]
[ValidateNotNullOrEmpty]
public AzureRMBackupProtectionPolicy Policy { get; set; }

Expand Down