@@ -37,28 +37,28 @@ public class EnableAzureRmRecoveryServicesProtection : RecoveryServicesBackupCmd
37
37
internal const string AzureVMComputeParameterSet = "AzureVMComputeEnableProtection" ;
38
38
internal const string ModifyProtectionParameterSet = "ModifyProtection" ;
39
39
40
- [ Parameter ( Mandatory = true , ValueFromPipelineByPropertyName = true , ParameterSetName = AzureVMClassicComputeParameterSet , HelpMessage = ParamHelpMsg . Item . AzureVMName ) ]
40
+ [ Parameter ( Position = 1 , Mandatory = true , HelpMessage = ParamHelpMsg . Policy . ProtectionPolicy ) ]
41
+ [ ValidateNotNullOrEmpty ]
42
+ public AzureRmRecoveryServicesPolicyBase Policy { get ; set ; }
43
+
44
+ [ Parameter ( Position = 2 , Mandatory = true , ParameterSetName = ModifyProtectionParameterSet , HelpMessage = ParamHelpMsg . Item . ProtectedItem , ValueFromPipeline = true ) ]
45
+ [ ValidateNotNullOrEmpty ]
46
+ public AzureRmRecoveryServicesItemBase Item { get ; set ; }
47
+
48
+ [ Parameter ( Position = 2 , Mandatory = true , ValueFromPipelineByPropertyName = true , ParameterSetName = AzureVMClassicComputeParameterSet , HelpMessage = ParamHelpMsg . Item . AzureVMName ) ]
41
49
[ Parameter ( Mandatory = true , ValueFromPipelineByPropertyName = true , ParameterSetName = AzureVMComputeParameterSet , HelpMessage = ParamHelpMsg . Item . AzureVMName ) ]
42
50
public string Name { get ; set ; }
43
51
44
- [ Parameter ( Mandatory = true , ValueFromPipelineByPropertyName = true , ParameterSetName = AzureVMClassicComputeParameterSet , HelpMessage = ParamHelpMsg . Item . AzureVMServiceName ) ]
52
+ [ Parameter ( Position = 3 , Mandatory = true , ValueFromPipelineByPropertyName = true , ParameterSetName = AzureVMClassicComputeParameterSet , HelpMessage = ParamHelpMsg . Item . AzureVMServiceName ) ]
45
53
public string ServiceName { get ; set ; }
46
54
47
- [ Parameter ( Mandatory = true , ValueFromPipelineByPropertyName = true , ParameterSetName = AzureVMComputeParameterSet , HelpMessage = ParamHelpMsg . Item . AzureVMResourceGroupName ) ]
55
+ [ Parameter ( Position = 3 , Mandatory = true , ValueFromPipelineByPropertyName = true , ParameterSetName = AzureVMComputeParameterSet , HelpMessage = ParamHelpMsg . Item . AzureVMResourceGroupName ) ]
48
56
public string ResourceGroupName { get ; set ; }
49
57
50
- [ Parameter ( Mandatory = true , ParameterSetName = AzureVMClassicComputeParameterSet , HelpMessage = ParamHelpMsg . Common . WorkloadType ) ]
51
- [ Parameter ( Mandatory = true , ParameterSetName = AzureVMComputeParameterSet , HelpMessage = ParamHelpMsg . Common . WorkloadType ) ]
58
+ [ Parameter ( Position = 4 , Mandatory = true , ParameterSetName = AzureVMClassicComputeParameterSet , HelpMessage = ParamHelpMsg . Common . WorkloadType ) ]
59
+ [ Parameter ( Position = 4 , Mandatory = true , ParameterSetName = AzureVMComputeParameterSet , HelpMessage = ParamHelpMsg . Common . WorkloadType ) ]
52
60
public WorkloadType WorkLoadType { get ; set ; }
53
61
54
- [ Parameter ( Mandatory = true , HelpMessage = ParamHelpMsg . Policy . ProtectionPolicy ) ]
55
- [ ValidateNotNullOrEmpty ]
56
- public AzureRmRecoveryServicesPolicyBase Policy { get ; set ; }
57
-
58
- [ Parameter ( Mandatory = true , ParameterSetName = ModifyProtectionParameterSet , HelpMessage = ParamHelpMsg . Item . ProtectedItem , ValueFromPipeline = true ) ]
59
- [ ValidateNotNullOrEmpty ]
60
- public AzureRmRecoveryServicesItemBase Item { get ; set ; }
61
-
62
62
public override void ExecuteCmdlet ( )
63
63
{
64
64
ExecutionBlock ( ( ) =>
0 commit comments