@@ -56,6 +56,33 @@ public class NewAzureRmAsrVmNicConfig : SiteRecoveryCmdletBase
56
56
[ ValidateNotNullOrEmpty ]
57
57
public string RecoveryVMNetworkId { get ; set ; }
58
58
59
+ /// <summary>
60
+ /// Gets or sets name of the recovery NIC.
61
+ /// </summary>
62
+ [ Parameter ( ParameterSetName = ASRParameterSets . AzureToAzure ,
63
+ Mandatory = false ,
64
+ HelpMessage = "Specifies the name of the recovery NIC." ) ]
65
+ [ ValidateNotNullOrEmpty ]
66
+ public string RecoveryNicName { get ; set ; }
67
+
68
+ /// <summary>
69
+ /// Gets or sets name of the recovery NIC resource group name.
70
+ /// </summary>
71
+ [ Parameter ( ParameterSetName = ASRParameterSets . AzureToAzure ,
72
+ Mandatory = false ,
73
+ HelpMessage = "Specifies the name of the recovery NIC resource group." ) ]
74
+ [ ValidateNotNullOrEmpty ]
75
+ public string RecoveryNicResourceGroupName { get ; set ; }
76
+
77
+ /// <summary>
78
+ /// Gets or sets whether an existing NIC can be used during failover.
79
+ /// </summary>
80
+ [ Parameter ( ParameterSetName = ASRParameterSets . AzureToAzure ,
81
+ Mandatory = false ,
82
+ HelpMessage = "Specifies whether an existing NIC can be used during failover." ) ]
83
+ [ ValidateNotNullOrEmpty ]
84
+ public SwitchParameter ReuseExistingNic { get ; set ; }
85
+
59
86
/// <summary>
60
87
/// Gets or sets the name of the recovery VM subnet.
61
88
/// </summary>
@@ -119,6 +146,33 @@ public class NewAzureRmAsrVmNicConfig : SiteRecoveryCmdletBase
119
146
[ ValidateNotNullOrEmpty ]
120
147
public string TfoVMNetworkId { get ; set ; }
121
148
149
+ /// <summary>
150
+ /// Gets or sets name of the test failover NIC.
151
+ /// </summary>
152
+ [ Parameter ( ParameterSetName = ASRParameterSets . AzureToAzure ,
153
+ Mandatory = false ,
154
+ HelpMessage = "Specifies the name of the test failover NIC." ) ]
155
+ [ ValidateNotNullOrEmpty ]
156
+ public string TfoNicName { get ; set ; }
157
+
158
+ /// <summary>
159
+ /// Gets or sets name of the test failover NIC resource group.
160
+ /// </summary>
161
+ [ Parameter ( ParameterSetName = ASRParameterSets . AzureToAzure ,
162
+ Mandatory = false ,
163
+ HelpMessage = "Specifies the name of the test failover NIC resource group." ) ]
164
+ [ ValidateNotNullOrEmpty ]
165
+ public string TfoNicResourceGroupName { get ; set ; }
166
+
167
+ /// <summary>
168
+ /// Gets or sets whether an existing NIC can be reused during test failover.
169
+ /// </summary>
170
+ [ Parameter ( ParameterSetName = ASRParameterSets . AzureToAzure ,
171
+ Mandatory = false ,
172
+ HelpMessage = "Specifies whether an existing NIC can be used during test failover." ) ]
173
+ [ ValidateNotNullOrEmpty ]
174
+ public SwitchParameter TfoReuseExistingNic { get ; set ; }
175
+
122
176
/// <summary>
123
177
/// Gets or sets the name of the test failover subnet.
124
178
/// </summary>
@@ -338,6 +392,9 @@ public override void ExecuteSiteRecoveryCmdlet()
338
392
{
339
393
NicId = this . NicId ,
340
394
RecoveryVMNetworkId = this . RecoveryVMNetworkId ,
395
+ RecoveryNicName = this . RecoveryNicName ,
396
+ RecoveryNicResourceGroupName = this . RecoveryNicResourceGroupName ,
397
+ ReuseExistingNic = this . ReuseExistingNic ,
341
398
RecoveryVMSubnetName = this . RecoveryVMSubnetName ,
342
399
RecoveryNetworkSecurityGroupId = this . RecoveryNetworkSecurityGroupId ,
343
400
EnableAcceleratedNetworkingOnRecovery =
@@ -356,6 +413,9 @@ public override void ExecuteSiteRecoveryCmdlet()
356
413
} ,
357
414
358
415
TfoVMNetworkId = this . TfoVMNetworkId ,
416
+ TfoNicName = this . TfoNicName ,
417
+ TfoNicResourceGroupName = this . TfoNicResourceGroupName ,
418
+ TfoReuseExistingNic = this . TfoReuseExistingNic ,
359
419
TfoVMSubnetName = this . TfoVMSubnetName ,
360
420
TfoNetworkSecurityGroupId = this . TfoNetworkSecurityGroupId ,
361
421
EnableAcceleratedNetworkingOnTfo = this . EnableAcceleratedNetworkingOnTfo ,
0 commit comments