@@ -56,6 +56,33 @@ public class NewAzureRmAsrVmNicConfig : SiteRecoveryCmdletBase
5656 [ ValidateNotNullOrEmpty ]
5757 public string RecoveryVMNetworkId { get ; set ; }
5858
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+
5986 /// <summary>
6087 /// Gets or sets the name of the recovery VM subnet.
6188 /// </summary>
@@ -119,6 +146,33 @@ public class NewAzureRmAsrVmNicConfig : SiteRecoveryCmdletBase
119146 [ ValidateNotNullOrEmpty ]
120147 public string TfoVMNetworkId { get ; set ; }
121148
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+
122176 /// <summary>
123177 /// Gets or sets the name of the test failover subnet.
124178 /// </summary>
@@ -338,6 +392,9 @@ public override void ExecuteSiteRecoveryCmdlet()
338392 {
339393 NicId = this . NicId ,
340394 RecoveryVMNetworkId = this . RecoveryVMNetworkId ,
395+ RecoveryNicName = this . RecoveryNicName ,
396+ RecoveryNicResourceGroupName = this . RecoveryNicResourceGroupName ,
397+ ReuseExistingNic = this . ReuseExistingNic ,
341398 RecoveryVMSubnetName = this . RecoveryVMSubnetName ,
342399 RecoveryNetworkSecurityGroupId = this . RecoveryNetworkSecurityGroupId ,
343400 EnableAcceleratedNetworkingOnRecovery =
@@ -356,6 +413,9 @@ public override void ExecuteSiteRecoveryCmdlet()
356413 } ,
357414
358415 TfoVMNetworkId = this . TfoVMNetworkId ,
416+ TfoNicName = this . TfoNicName ,
417+ TfoNicResourceGroupName = this . TfoNicResourceGroupName ,
418+ TfoReuseExistingNic = this . TfoReuseExistingNic ,
359419 TfoVMSubnetName = this . TfoVMSubnetName ,
360420 TfoNetworkSecurityGroupId = this . TfoNetworkSecurityGroupId ,
361421 EnableAcceleratedNetworkingOnTfo = this . EnableAcceleratedNetworkingOnTfo ,
0 commit comments