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
# Use amhStoredStorageAccount and ignore user provided Cache Storage Account Id
591
-
if (![string]::IsNullOrEmpty($CacheStorageAccountId) -and$amhStoredStorageAccount.Id-ne$CacheStorageAccountId) {
592
+
if (![string]::IsNullOrEmpty($CacheStorageAccountId) -and$amhStoredStorageAccount.Id-ne$CacheStorageAccountId)
593
+
{
592
594
Write-Host"A Cache Storage Account '$($amhStoredStorageAccountName)' has been linked already. The given -CacheStorageAccountId '$($CacheStorageAccountId)' will be ignored."
593
595
}
594
596
595
597
$cacheStorageAccount=$amhStoredStorageAccount
598
+
599
+
# This will fix brownfield issue where AMH solution tool is set incorrectly that causes UX bifracation to go to the wrong experience;
600
+
# for new projects that are set correctly from the start, this will essentailly be a no-op.
# amhStoredStorageAccount is found but in a bad state, so log to ask user to remove
599
-
if ($null-ne$amhStoredStorageAccount-and$null-eq$amhStoredStorageAccount.ProvisioningState) {
612
+
if ($null-ne$amhStoredStorageAccount-and$null-eq$amhStoredStorageAccount.ProvisioningState)
613
+
{
600
614
Write-Host"A previously linked Cache Storage Account with Id '$($amhStoredStorageAccountId)' is found but in a unusable state. Please remove it manually and re-run this command."
601
615
}
602
616
603
617
# amhStoredStorageAccount is not found or in a bad state but AMH has a record of it, so remove the record
604
-
if ($amhSolution.DetailExtendedDetail.ContainsKey("replicationStorageAccountId")) {
618
+
if ($amhSolution.DetailExtendedDetail.ContainsKey("replicationStorageAccountId"))
throw"A linked Cache Storage Account with Id '$($amhStoredStorageAccountId)' times out with Provisioning State: '$($amhStoredStorageAccount.ProvisioningState)'. Please re-run this command or contact support if help needed."
616
635
}
617
636
@@ -928,13 +947,17 @@ function Initialize-AzMigrateLocalReplicationInfrastructure {
928
947
}
929
948
930
949
# Update AMH record with chosen Cache Storage Account
931
-
if (!$amhSolution.DetailExtendedDetail.ContainsKey("replicationStorageAccountId")) {
950
+
if (!$amhSolution.DetailExtendedDetail.ContainsKey("replicationStorageAccountId"))
Write-Host"*Selected Cache Storage Account: '$($cacheStorageAccount.StorageAccountName)' in Resource Group '$($ResourceGroupName)' at Location '$($cacheStorageAccount.Location)' for Migrate Project '$($migrateProject.Name)'"
Copy file name to clipboardExpand all lines: src/Migrate/Migrate/ChangeLog.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,8 @@
29
29
* Fixed bugs in `Get-AzMigrateLocalServerReplication`
30
30
- Added ARM id validation for input parameters
31
31
* Enhanced Get-AzMigrateServerMigrationStatus to add support for the -Expedite parameter.
32
+
* Fixed bugs in `Initialize-AzMigrateLocalReplicationInfrastructure`
33
+
- Correct AMH solution tool name of "ServerMigration_DataReplication" is now being passed in to address replication count missing and UX bifracation experience issues in Azure Migrate on Azure portal.
32
34
33
35
## Version 2.9.0
34
36
* Added `-OsType` as an optional parameter to command `Set-AzMigrateLocalServerReplication` to allow user-specified OS type.
0 commit comments