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

Os Upgrade Feature #411

merged 8 commits into from
Aug 29, 2023

Conversation

shivamverma-ms
Copy link
Contributor

Description

  • Added -OsUpgradeVersion Parameter to the Start-Migration and Start-TestMigration
  • Added the respective field in Input.csv

Az version: 10.0.1

#start the migration
if ([string]::IsNullOrEmpty($TurnOff_SrcServer) -or ($TurnOff_SrcServer -eq 'N') -or ($TurnOff_SrcServer -eq 'No')){
#we are defaulting to this if Turn off Source Server is not mentioned
$MigrateJob = Start-AzMigrateServerMigration -InputObject $ReplicatingServermachine
$MigrateJob = Start-AzMigrateServerMigration -InputObject $ReplicatingServermachine -OsUpgradeVersion $osUpgradeVersion

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should pass $osUpgradeVersion only if it is not null or empty.

$reportItem.AdditionalInformation = "OS_VERSION_UPGRADE is not mentioned for: '$($sourceMachineName)'"
}

$TestMigrationJob = Start-AzMigrateTestMigration -InputObject $ReplicatingServermachine -TestNetworkID $Target_VNet.Id -OsUpgradeVersion $osUpgradeVersion

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$osUpgradeVersion should not be passed always.

@@ -235,6 +235,76 @@ Function ProcessItemImpl($processor, $csvItem, $reportItem) {
}
#End Code for Target Subscription

$targetDiskName = $csvItem.UPDATED_TARGET_DISK_NAME

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove custom resource naming changes from this PR.

@shivamverma-ms
Copy link
Contributor Author

#sign-off

Copy link
Contributor

@mikefrobbins mikefrobbins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mikefrobbins mikefrobbins merged commit 7ad02ab into Azure:master Aug 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants