Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -936,6 +936,9 @@ public ASRVMNicDetails(
this.VMNetworkName = vMNicDetails.VMNetworkName;
this.VMSubnetName = vMNicDetails.VMSubnetName;
this.RecoveryVMNetworkId = vMNicDetails.RecoveryVMNetworkId;
this.RecoveryNicName = vMNicDetails.RecoveryNicName;
this.RecoveryNicResourceGroupName = vMNicDetails.RecoveryNicResourceGroupName;
this.ReuseExistingNic = vMNicDetails.ReuseExistingNic;
this.RecoveryVMSubnetName = vMNicDetails.RecoveryVMSubnetName;
this.ReplicaNicStaticIPAddress = vMNicDetails.ReplicaNicStaticIPAddress;
this.IpAddressType = vMNicDetails.IpAddressType;
Expand All @@ -948,6 +951,9 @@ public ASRVMNicDetails(
this.RecoveryLBBackendAddressPoolId =
vMNicDetails.RecoveryLBBackendAddressPoolIds?.ToList() ?? new List<string>();
this.TfoVMNetworkId = vMNicDetails.TfoVMNetworkId;
this.TfoNicName = vMNicDetails.TfoRecoveryNicName;
this.TfoNicResourceGroupName = vMNicDetails.TfoRecoveryNicResourceGroupName;
this.TfoReuseExistingNic = vMNicDetails.TfoReuseExistingNic;
this.TfoVMSubnetName = vMNicDetails.TfoVMSubnetName;
this.TfoNetworkSecurityGroupId = vMNicDetails.TfoNetworkSecurityGroupId;
this.TfoIPConfigs = vMNicDetails.TfoIPConfigs?.ToList() ?? new List<IPConfig>();
Expand Down Expand Up @@ -989,6 +995,21 @@ public ASRVMNicDetails(
/// </summary>
public string NicId { get; set; }

/// <summary>
/// Gets or sets the name of the recovery NIC.
/// </summary>
public string RecoveryNicName { get; set; }

/// <summary>
/// Gets or sets the name of the recovery NIC resource group name.
/// </summary>
public string RecoveryNicResourceGroupName { get; set; }

/// <summary>
/// Gets or sets whether an existing Nic can be used during failover.
/// </summary>
public bool? ReuseExistingNic { get; set; }

/// <summary>
/// Gets or sets recovery VM network Id.
/// </summary>
Expand Down Expand Up @@ -1039,6 +1060,21 @@ public ASRVMNicDetails(
/// </summary>
public string TfoVMNetworkId { get; set; }

/// <summary>
/// Gets or sets name of the TFO Nic.
/// </summary>
public string TfoNicName { get; set; }

/// <summary>
/// Gets or sets name of the TFO Nic resource group name.
/// </summary>
public string TfoNicResourceGroupName { get; set; }

/// <summary>
/// Gets or sets whether an existing Nic can be used during TFO .
/// </summary>
public bool? TfoReuseExistingNic { get; set; }

/// <summary>
/// Gets or sets test failover subnet name.
/// </summary>
Expand Down Expand Up @@ -2353,7 +2389,7 @@ public class ASRVMNicConfig
public string RecoveryNicResourceGroupName { get; set; }

/// <summary>
/// Gets or sets whether an existing Nic can be reused during failover.
/// Gets or sets whether an existing Nic can be used during failover.
/// </summary>
[DataMember]
public bool ReuseExistingNic { get; set; }
Expand Down Expand Up @@ -2401,7 +2437,7 @@ public class ASRVMNicConfig
public string TfoNicResourceGroupName { get; set; }

/// <summary>
/// Gets or sets whether an existing Nic can be reused during TFO .
/// Gets or sets whether an existing Nic can be used during TFO .
/// </summary>
[DataMember]
public bool TfoReuseExistingNic { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,33 @@ public class NewAzureRmAsrVmNicConfig : SiteRecoveryCmdletBase
[ValidateNotNullOrEmpty]
public string RecoveryVMNetworkId { get; set; }

/// <summary>
/// Gets or sets name of the recovery NIC.
/// </summary>
[Parameter(ParameterSetName = ASRParameterSets.AzureToAzure,
Mandatory = false,
HelpMessage = "Specifies the name of the recovery NIC.")]
[ValidateNotNullOrEmpty]
public string RecoveryNicName { get; set; }

/// <summary>
/// Gets or sets name of the recovery NIC resource group name.
/// </summary>
[Parameter(ParameterSetName = ASRParameterSets.AzureToAzure,
Mandatory = false,
HelpMessage = "Specifies the name of the recovery NIC resource group.")]
[ValidateNotNullOrEmpty]
public string RecoveryNicResourceGroupName { get; set; }

/// <summary>
/// Gets or sets whether an existing NIC can be used during failover.
/// </summary>
[Parameter(ParameterSetName = ASRParameterSets.AzureToAzure,
Mandatory = false,
HelpMessage = "Specifies whether an existing NIC can be used during failover.")]
[ValidateNotNullOrEmpty]
public SwitchParameter ReuseExistingNic { get; set; }

/// <summary>
/// Gets or sets the name of the recovery VM subnet.
/// </summary>
Expand Down Expand Up @@ -119,6 +146,33 @@ public class NewAzureRmAsrVmNicConfig : SiteRecoveryCmdletBase
[ValidateNotNullOrEmpty]
public string TfoVMNetworkId { get; set; }

/// <summary>
/// Gets or sets name of the test failover NIC.
/// </summary>
[Parameter(ParameterSetName = ASRParameterSets.AzureToAzure,
Mandatory = false,
HelpMessage = "Specifies the name of the test failover NIC.")]
[ValidateNotNullOrEmpty]
public string TfoNicName { get; set; }

/// <summary>
/// Gets or sets name of the test failover NIC resource group.
/// </summary>
[Parameter(ParameterSetName = ASRParameterSets.AzureToAzure,
Mandatory = false,
HelpMessage = "Specifies the name of the test failover NIC resource group.")]
[ValidateNotNullOrEmpty]
public string TfoNicResourceGroupName { get; set; }

/// <summary>
/// Gets or sets whether an existing NIC can be reused during test failover.
/// </summary>
[Parameter(ParameterSetName = ASRParameterSets.AzureToAzure,
Mandatory = false,
HelpMessage = "Specifies whether an existing NIC can be used during test failover.")]
[ValidateNotNullOrEmpty]
public SwitchParameter TfoReuseExistingNic { get; set; }

/// <summary>
/// Gets or sets the name of the test failover subnet.
/// </summary>
Expand Down Expand Up @@ -338,6 +392,9 @@ public override void ExecuteSiteRecoveryCmdlet()
{
NicId = this.NicId,
RecoveryVMNetworkId = this.RecoveryVMNetworkId,
RecoveryNicName = this.RecoveryNicName,
RecoveryNicResourceGroupName = this.RecoveryNicResourceGroupName,
ReuseExistingNic = this.ReuseExistingNic,
RecoveryVMSubnetName = this.RecoveryVMSubnetName,
RecoveryNetworkSecurityGroupId = this.RecoveryNetworkSecurityGroupId,
EnableAcceleratedNetworkingOnRecovery =
Expand All @@ -356,6 +413,9 @@ public override void ExecuteSiteRecoveryCmdlet()
},

TfoVMNetworkId = this.TfoVMNetworkId,
TfoNicName = this.TfoNicName,
TfoNicResourceGroupName = this.TfoNicResourceGroupName,
TfoReuseExistingNic = this.TfoReuseExistingNic,
TfoVMSubnetName = this.TfoVMSubnetName,
TfoNetworkSecurityGroupId = this.TfoNetworkSecurityGroupId,
EnableAcceleratedNetworkingOnTfo = this.EnableAcceleratedNetworkingOnTfo,
Expand Down