-
Notifications
You must be signed in to change notification settings - Fork 4k
[RecoveryServices] Adding support for restore item for azure file share #7681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
[Parameter(Mandatory = true, Position = 3, ParameterSetName = AzureFileParameterSet, | ||
HelpMessage = ParamHelpMsgs.RestoreFS.ResolveConflict)] | ||
[ValidateNotNullOrEmpty] | ||
public RestoreFSResolveConfictOption ResolveConflict { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confict -> Conflict
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, please remove the position setting for all positions >= 3
/// <summary> | ||
/// Source File Path of the file to be recovered | ||
/// </summary> | ||
[Parameter(Mandatory = false, Position = 4, ParameterSetName = AzureFileParameterSet, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove position
/// <summary> | ||
/// Source File Type of the file to be recovered | ||
/// </summary> | ||
[Parameter(Mandatory = false, Position = 5, ParameterSetName = AzureFileParameterSet, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove position
/// <summary> | ||
/// Target storage account name where the disks need to be recovered | ||
/// </summary> | ||
[Parameter(Mandatory = false, Position = 6, ParameterSetName = AzureFileParameterSet, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove position
/// <summary> | ||
/// The target file share name to which the files are restored. | ||
/// </summary> | ||
[Parameter(Mandatory = false, Position = 7, ParameterSetName = AzureFileParameterSet, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove position
/// <summary> | ||
/// The target folder name to which the files are restored. | ||
/// </summary> | ||
[Parameter(Mandatory = false, Position = 8, ParameterSetName = AzureFileParameterSet, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove position
"C:\azure-powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.RecoveryServices.Backup\Microsoft.Azure.Commands.RecoveryServices.Backup.dll","Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.GetAzureRmRecoveryServicesBackupItem","Get-AzureRmRecoveryServicesBackupItem","1","8420","Parameter set 'GetItemsForPolicy' of cmdlet 'Get-AzureRmRecoveryServicesBackupItem' contains at least one parameter with a position larger than four, which is discouraged.","Limit the number of positional parameters in a single parameter set to four or fewer." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove these
"C:\azure-powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.RecoveryServices.Backup\Microsoft.Azure.Commands.RecoveryServices.Backup.dll","Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.GetAzureRmRecoveryServicesBackupItem","Get-AzureRmRecoveryServicesBackupItem","1","8420","Parameter set 'GetItemsForPolicy' of cmdlet 'Get-AzureRmRecoveryServicesBackupItem' contains at least one parameter with a position larger than four, which is discouraged.","Limit the number of positional parameters in a single parameter set to four or fewer." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove these
Description
https://github.com/Azure/azure-powershell-cmdlet-review-pr/issues/113
Checklist
CONTRIBUTING.md
platyPS
module