@@ -59,7 +59,7 @@ public class SetAzureSiteRecoveryVirtualMachine : RecoveryServicesCmdletBase
59
59
/// </summary>
60
60
[ Parameter ]
61
61
[ ValidateNotNullOrEmpty ]
62
- public string PrimaryNic { get ; set ; }
62
+ public string PrimaryNetworkId { get ; set ; }
63
63
64
64
/// <summary>
65
65
/// Gets or sets Recovery Azure Network Id
@@ -77,15 +77,15 @@ public override void ExecuteCmdlet()
77
77
// Check for at least one option
78
78
if ( string . IsNullOrEmpty ( this . Name ) &&
79
79
string . IsNullOrEmpty ( this . Size ) &&
80
- string . IsNullOrEmpty ( this . PrimaryNic ) &&
80
+ string . IsNullOrEmpty ( this . PrimaryNetworkId ) &&
81
81
string . IsNullOrEmpty ( this . RecoveryNetworkId ) )
82
82
{
83
83
this . WriteWarning ( Properties . Resources . ArgumentsMissingForUpdateVmProperties . ToString ( ) ) ;
84
84
return ;
85
85
}
86
86
87
87
// Both primary & recovery inputs should be present
88
- if ( string . IsNullOrEmpty ( this . PrimaryNic ) ^
88
+ if ( string . IsNullOrEmpty ( this . PrimaryNetworkId ) ^
89
89
string . IsNullOrEmpty ( this . RecoveryNetworkId ) )
90
90
{
91
91
this . WriteWarning ( Properties . Resources . NetworkArgumentsMissingForUpdateVmProperties . ToString ( ) ) ;
@@ -95,7 +95,7 @@ public override void ExecuteCmdlet()
95
95
UpdateVmPropertiesInput updateVmPropertiesInput = new UpdateVmPropertiesInput ( ) ;
96
96
updateVmPropertiesInput . RecoveryAzureVmGivenName = this . Name ;
97
97
updateVmPropertiesInput . RecoveryAzureVmSize = this . Size ;
98
- updateVmPropertiesInput . SelectedPrimaryNicId = this . PrimaryNic ;
98
+ updateVmPropertiesInput . SelectedPrimaryNicId = this . PrimaryNetworkId ;
99
99
updateVmPropertiesInput . RecoveryAzureNetworkId = this . RecoveryNetworkId ;
100
100
101
101
this . jobResponse = RecoveryServicesClient . UpdateVmProperties (
0 commit comments