You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure-migrate/migrate-at-scale-vmware-agentles/Agentless VMware automation/AzMigrate_UpdateMachineProperties.ps1
+88
Original file line number
Diff line number
Diff line change
@@ -235,6 +235,76 @@ Function ProcessItemImpl($processor, $csvItem, $reportItem) {
235
235
}
236
236
#End Code for Target Subscription
237
237
238
+
$targetDiskName=$csvItem.UPDATED_TARGET_DISK_NAME
239
+
if ([string]::IsNullOrEmpty($targetDiskName)) {
240
+
$processor.Logger.LogTrace("UPDATED_TARGET_DISK_NAME is not mentioned for: '$($sourceMachineName)'")
241
+
}
242
+
else {
243
+
$params.Add("TargetDiskName",$targetDiskName)
244
+
}
245
+
246
+
$diskMapping=@()
247
+
$paramsDisk1=@{}
248
+
$osDiskId=$csvItem.OS_DISK_ID
249
+
$osDiskName=$csvItem.UPDATED_TARGET_OS_DISK_NAME
250
+
251
+
if ([string]::IsNullOrEmpty($osDiskId)) {
252
+
$processor.Logger.LogTrace("OS_DISK_ID is not mentioned for: '$($sourceMachineName)'")
253
+
$reportItem.AdditionalInformation="OS_DISK_ID is not mentioned for: '$($sourceMachineName)'"
254
+
}
255
+
else {
256
+
$paramsDisk1.Add("DiskId",$osDiskId)
257
+
$paramsDisk1.Add("IsOSDisk",$true)
258
+
if ([string]::IsNullOrEmpty($osDiskName)) {
259
+
$processor.Logger.LogTrace("UPDATED_TARGET_OS_DISK_NAME is not mentioned for: '$($sourceMachineName)'")
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx,srcrg-ecy,ECYPROJ,test-ubun22-server-bios-lvm,,sv-app-2,Microsoft Windows Server 2022 (64-bit),srcrg-ecy,PAYG,,,"vm-tag-1,vm-tag-2","vm-tag-val-1,vm-tag-val-2","d1,d2","d1-val,d2-val",n1,n1-val,xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx,sv-target-ecy-rg,vnet-ecy,default,testvm-1,,NoLicenseType,,,,,,,Y,vnet-ecy,,,,"up-vm-1,up-vm-2","up-vm-value-1,up-vm-value-2",Replace,disk-1,disk-1-tag,Merge,,,,,,testvm-sv-1,,,,,,,,,nic-name-updated,,,,,,,,,Y,Y,Y,Y,Y,Y,Y
0 commit comments