Skip to content

Commit 9a7a465

Browse files
committed
UpdateVmPropertiesInput to VMProperties
1 parent 9f1ff83 commit 9a7a465

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/PSRecoveryServicesClient/PSRecoveryServicesVMClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public VirtualMachineResponse GetAzureSiteRecoveryVirtualMachine(
5757
public JobResponse UpdateVmProperties(
5858
string protectionContainerId,
5959
string virtualMachineId,
60-
UpdateVmPropertiesInput updateVmPropertiesInput)
60+
VMProperties updateVmPropertiesInput)
6161
{
6262
return this.GetSiteRecoveryClient().Vm.UpdateVmProperties(
6363
protectionContainerId,

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ public override void ExecuteCmdlet()
9292
return;
9393
}
9494

95-
UpdateVmPropertiesInput updateVmPropertiesInput = new UpdateVmPropertiesInput();
96-
updateVmPropertiesInput.RecoveryAzureVmGivenName = this.Name;
97-
updateVmPropertiesInput.RecoveryAzureVmSize = this.Size;
98-
updateVmPropertiesInput.SelectedPrimaryNicId = this.PrimaryNic;
99-
updateVmPropertiesInput.RecoveryAzureNetworkId = this.RecoveryNetworkId;
95+
VMProperties updateVmPropertiesInput = new VMProperties();
96+
updateVmPropertiesInput.RecoveryAzureVMName = this.Name;
97+
updateVmPropertiesInput.RecoveryAzureVMSize = this.Size;
98+
//// updateVmPropertiesInput.SelectedPrimaryNicId = this.PrimaryNic;
99+
updateVmPropertiesInput.SelectedRecoveryAzureNetworkId = this.RecoveryNetworkId;
100100

101101
this.jobResponse = RecoveryServicesClient.UpdateVmProperties(
102102
this.VirtualMachine.ProtectionContainerId,

0 commit comments

Comments
 (0)