Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Os Upgrade Feature #411

Merged
merged 8 commits into from
Aug 29, 2023
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
Prev Previous commit
Next Next commit
resolve comments
  • Loading branch information
shivamverma-ms committed Aug 29, 2023
commit 7e6a6a7bc25ec1adbca9035e2b65c9b7517e82fc
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ Function ProcessItemImpl($processor, $csvItem, $reportItem) {
$processor.Logger.LogTrace("OS_UPGRADE_VERSION is not mentioned for: '$($sourceMachineName)'")
$reportItem.AdditionalInformation = "OS_VERSION_UPGRADE is not mentioned for: '$($sourceMachineName)'"
$MigrateJob = Start-AzMigrateServerMigration -InputObject $ReplicatingServermachine -TurnOffSourceServer
} else {
}
else {
$MigrateJob = Start-AzMigrateServerMigration -InputObject $ReplicatingServermachine -TurnOffSourceServer -OsUpgradeVersion $osUpgradeVersion
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ Function ProcessItemImpl($processor, $csvItem, $reportItem) {
$processor.Logger.LogTrace("OS_UPGRADE_VERSION is not mentioned for: '$($sourceMachineName)'")
$reportItem.AdditionalInformation = "OS_VERSION_UPGRADE is not mentioned for: '$($sourceMachineName)'"
$TestMigrationJob = Start-AzMigrateTestMigration -InputObject $ReplicatingServermachine -TestNetworkID $Target_VNet.Id
} else{
}
else{
$TestMigrationJob = Start-AzMigrateTestMigration -InputObject $ReplicatingServermachine -TestNetworkID $Target_VNet.Id -OsUpgradeVersion $osUpgradeVersion
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ Function ProcessItemImpl($processor, $csvItem, $reportItem) {
else {
$paramsNIC1.Add("NicId", $UpdatedNIC1ID)
}

$NIC1_SelectionType = $csvItem.UPDATED_TARGET_NIC1_SELECTIONTYPE
#Specifies whether the NIC to be updated will be the Primary, Secondary or not migrated ("DoNotCreate")
if ([string]::IsNullOrEmpty($NIC1_SelectionType)) {
Expand Down Expand Up @@ -348,7 +347,6 @@ Function ProcessItemImpl($processor, $csvItem, $reportItem) {
else {
$paramsNIC2.Add("NicId", $UpdatedNIC2ID)
}

$NIC2_SelectionType = $csvItem.UPDATED_TARGET_NIC2_SELECTIONTYPE
#Specifies whether the NIC to be updated will be the Primary, Secondary or not migrated ("DoNotCreate")
if ([string]::IsNullOrEmpty($NIC2_SelectionType)) {
Expand Down