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 bifurcation to go to the wrong experience;
600
+
# for new projects that are set correctly from the start, this will essentially 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
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,15 @@
18
18
- Additional information about change #1
19
19
-->
20
20
## Upcoming Release
21
+
* Fixed bugs in `Initialize-AzMigrateLocalReplicationInfrastructure`
22
+
- Correct AMH solution tool name of "ServerMigration_DataReplication" is now being passed in to address replication count missing and UX experience load issues in Azure Migrate on Azure portal.
23
+
* Address Join-Path compatibility issue in older version of PowerShell environment such as PowerShell 5.1 in the following commands
* Fixed bugs in `New-AzMigrateLocalDiskMappingObject`: Only validate for non-512 physical sector size of VHD when `-PhysicalSectorSize` parameter is given
0 commit comments