Skip to content

Commit 2b901f5

Browse files
committed
PrimaryNic to PrimaryNetworkId
1 parent 6f969fa commit 2b901f5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Microsoft.Azure.Commands.RecoveryServices.dll-help.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8678,9 +8678,9 @@
86788678
<command:parameterValue required="true" variableLength="false">string</command:parameterValue>
86798679
</command:parameter>
86808680
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named">
8681-
<maml:name>PrimaryNic</maml:name>
8681+
<maml:name>PrimaryNetworkId</maml:name>
86828682
<maml:description>
8683-
<maml:para>Primary NIC</maml:para>
8683+
<maml:para>Primary Network Id</maml:para>
86848684
</maml:description>
86858685
<command:parameterValue required="true" variableLength="false">string</command:parameterValue>
86868686
</command:parameter>
@@ -8716,9 +8716,9 @@
87168716
<dev:defaultValue></dev:defaultValue>
87178717
</command:parameter>
87188718
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named">
8719-
<maml:name>PrimaryNic</maml:name>
8719+
<maml:name>PrimaryNetworkId</maml:name>
87208720
<maml:description>
8721-
<maml:para>Primary NIC</maml:para>
8721+
<maml:para>Primary Network Id</maml:para>
87228722

87238723
</maml:description>
87248724
<command:parameterValue required="true" variableLength="false">string</command:parameterValue>

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/SetAzureSiteRecoveryVM.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class SetAzureSiteRecoveryVirtualMachine : RecoveryServicesCmdletBase
5959
/// </summary>
6060
[Parameter]
6161
[ValidateNotNullOrEmpty]
62-
public string PrimaryNic { get; set; }
62+
public string PrimaryNetworkId { get; set; }
6363

6464
/// <summary>
6565
/// Gets or sets Recovery Azure Network Id
@@ -77,15 +77,15 @@ public override void ExecuteCmdlet()
7777
// Check for at least one option
7878
if (string.IsNullOrEmpty(this.Name) &&
7979
string.IsNullOrEmpty(this.Size) &&
80-
string.IsNullOrEmpty(this.PrimaryNic) &&
80+
string.IsNullOrEmpty(this.PrimaryNetworkId) &&
8181
string.IsNullOrEmpty(this.RecoveryNetworkId))
8282
{
8383
this.WriteWarning(Properties.Resources.ArgumentsMissingForUpdateVmProperties.ToString());
8484
return;
8585
}
8686

8787
// Both primary & recovery inputs should be present
88-
if (string.IsNullOrEmpty(this.PrimaryNic) ^
88+
if (string.IsNullOrEmpty(this.PrimaryNetworkId) ^
8989
string.IsNullOrEmpty(this.RecoveryNetworkId))
9090
{
9191
this.WriteWarning(Properties.Resources.NetworkArgumentsMissingForUpdateVmProperties.ToString());
@@ -95,7 +95,7 @@ public override void ExecuteCmdlet()
9595
UpdateVmPropertiesInput updateVmPropertiesInput = new UpdateVmPropertiesInput();
9696
updateVmPropertiesInput.RecoveryAzureVmGivenName = this.Name;
9797
updateVmPropertiesInput.RecoveryAzureVmSize = this.Size;
98-
updateVmPropertiesInput.SelectedPrimaryNicId = this.PrimaryNic;
98+
updateVmPropertiesInput.SelectedPrimaryNicId = this.PrimaryNetworkId;
9999
updateVmPropertiesInput.RecoveryAzureNetworkId = this.RecoveryNetworkId;
100100

101101
this.jobResponse = RecoveryServicesClient.UpdateVmProperties(

0 commit comments

Comments
 (0)