From d2b4d9c0e6ad4826cf0ff85e70b1c7cddf8853c2 Mon Sep 17 00:00:00 2001 From: "Ankit Baluni (from Dev Box)" Date: Tue, 9 Sep 2025 00:22:07 +0530 Subject: [PATCH] Enhance Get-AzMigrateServerMigrationStatus cmdlet - Added support for the -Expedite parameter to expedite server migration operations. - Updated documentation to include new usage examples for the -Expedite parameter. - Modified existing examples to reflect updated project and resource group names. - Enhanced output formatting in examples for better clarity. - Added test case for the new -Expedite functionality. - Updated ChangeLog to reflect the addition of the -Expedite parameter. --- .../Properties/AssemblyInfo.cs | 4 +- .../custom/Az.Migrate.custom.psm1 | 4 +- .../Get-AzMigrateServerMigrationStatus.ps1 | 478 ++++++++++++++---- src/Migrate/Migrate.Autorest/custom/README.md | 8 +- .../Migrate.Autorest/docs/Az.Migrate.md | 2 +- .../Get-AzMigrateServerMigrationStatus.md | 132 ++++- .../Get-AzMigrateServerMigrationStatus.md | 102 +++- .../Migrate.Autorest/generate-info.json | 2 +- .../Migrate.Autorest/resources/README.md | 2 +- ...t-AzMigrateServerMigrationStatus.Tests.ps1 | 4 + src/Migrate/Migrate.Autorest/test/README.md | 2 +- src/Migrate/Migrate.sln | 30 +- src/Migrate/Migrate/Az.Migrate.psd1 | 12 +- src/Migrate/Migrate/ChangeLog.md | 1 + src/Migrate/Migrate/help/Az.Migrate.md | 2 +- .../help/Get-AzMigrateDiscoveredServer.md | 34 +- src/Migrate/Migrate/help/Get-AzMigrateJob.md | 30 +- .../Migrate/help/Get-AzMigrateLocalJob.md | 27 +- .../Get-AzMigrateLocalReplicationFabric.md | 16 +- .../Get-AzMigrateLocalServerReplication.md | 37 +- .../Migrate/help/Get-AzMigrateProject.md | 3 +- .../help/Get-AzMigrateReplicationFabric.md | 8 +- .../help/Get-AzMigrateReplicationPolicy.md | 8 +- ...AzMigrateReplicationProtectionContainer.md | 21 +- ...teReplicationProtectionContainerMapping.md | 26 +- ...rateReplicationRecoveryServicesProvider.md | 10 +- .../Migrate/help/Get-AzMigrateRunAsAccount.md | 8 +- .../Get-AzMigrateServerMigrationStatus.md | 158 ++++-- .../help/Get-AzMigrateServerReplication.md | 39 +- src/Migrate/Migrate/help/Get-AzMigrateSite.md | 4 +- .../Migrate/help/Get-AzMigrateSolution.md | 6 +- ...AzMigrateLocalReplicationInfrastructure.md | 8 +- ...lize-AzMigrateReplicationInfrastructure.md | 7 +- .../Migrate/help/New-AzMigrateDiskMapping.md | 9 +- .../New-AzMigrateLocalDiskMappingObject.md | 9 +- .../New-AzMigrateLocalNicMappingObject.md | 8 +- .../New-AzMigrateLocalServerReplication.md | 27 +- .../Migrate/help/New-AzMigrateNicMapping.md | 9 +- .../Migrate/help/New-AzMigrateProject.md | 9 +- .../help/New-AzMigrateReplicationPolicy.md | 7 +- ...teReplicationProtectionContainerMapping.md | 7 +- .../help/New-AzMigrateServerReplication.md | 75 +-- .../help/New-AzMigrateTestNicMapping.md | 6 +- .../help/Register-AzMigrateProjectTool.md | 5 +- .../Remove-AzMigrateLocalServerReplication.md | 11 +- .../Migrate/help/Remove-AzMigrateProject.md | 6 +- .../help/Remove-AzMigrateServerReplication.md | 6 +- .../Restart-AzMigrateServerReplication.md | 5 +- .../help/Resume-AzMigrateServerReplication.md | 12 +- .../Migrate/help/Set-AzMigrateDiskMapping.md | 6 +- .../Set-AzMigrateLocalServerReplication.md | 13 +- .../help/Set-AzMigrateServerReplication.md | 36 +- .../Start-AzMigrateLocalServerMigration.md | 12 +- .../help/Start-AzMigrateServerMigration.md | 13 +- .../help/Start-AzMigrateTestMigration.md | 15 +- .../Start-AzMigrateTestMigrationCleanup.md | 7 +- .../Suspend-AzMigrateServerReplication.md | 9 +- 57 files changed, 1007 insertions(+), 550 deletions(-) diff --git a/src/Migrate/Migrate.Autorest/Properties/AssemblyInfo.cs b/src/Migrate/Migrate.Autorest/Properties/AssemblyInfo.cs index cdc548a94515..9b94307f162a 100644 --- a/src/Migrate/Migrate.Autorest/Properties/AssemblyInfo.cs +++ b/src/Migrate/Migrate.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Migrate")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("2.8.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("2.8.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("2.9.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("2.9.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] diff --git a/src/Migrate/Migrate.Autorest/custom/Az.Migrate.custom.psm1 b/src/Migrate/Migrate.Autorest/custom/Az.Migrate.custom.psm1 index 414362f01faf..a8fc67b1e913 100644 --- a/src/Migrate/Migrate.Autorest/custom/Az.Migrate.custom.psm1 +++ b/src/Migrate/Migrate.Autorest/custom/Az.Migrate.custom.psm1 @@ -1,9 +1,9 @@ # region Generated # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.Migrate.private.dll') + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.Migrate.private.dll') # Load the internal module - $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.Migrate.internal.psm1' + $internalModulePath = Join-Path $PSScriptRoot '../internal/Az.Migrate.internal.psm1' if(Test-Path $internalModulePath) { $null = Import-Module -Name $internalModulePath } diff --git a/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateServerMigrationStatus.ps1 b/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateServerMigrationStatus.ps1 index 2060fd576d18..e13e46aef681 100644 --- a/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateServerMigrationStatus.ps1 +++ b/src/Migrate/Migrate.Autorest/custom/Get-AzMigrateServerMigrationStatus.ps1 @@ -29,7 +29,7 @@ function Get-AzMigrateServerMigrationStatus { [Parameter(ParameterSetName = 'GetByMachineName', Mandatory)] [Parameter(ParameterSetName = 'GetHealthByMachineName', Mandatory)] [Parameter(ParameterSetName = 'GetByApplianceName', Mandatory)] - #[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] + [Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] # Specifies the Resource Group of the Azure Migrate Project in the current subscription. @@ -39,7 +39,7 @@ function Get-AzMigrateServerMigrationStatus { [Parameter(ParameterSetName = 'GetByMachineName', Mandatory)] [Parameter(ParameterSetName = 'GetHealthByMachineName', Mandatory)] [Parameter(ParameterSetName = 'GetByApplianceName', Mandatory)] - #[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] + [Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] # Specifies the Azure Migrate project in the current subscription. @@ -47,7 +47,7 @@ function Get-AzMigrateServerMigrationStatus { [Parameter(ParameterSetName = 'GetByMachineName', Mandatory)] [Parameter(ParameterSetName = 'GetHealthByMachineName', Mandatory)] - #[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] + [Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.String] # Specifies the display name of the replicating machine. @@ -65,6 +65,12 @@ function Get-AzMigrateServerMigrationStatus { # Specifies whether the health issues to show for replicating server. ${Health}, + [Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] + [System.Management.Automation.SwitchParameter] + # Specifies whether to expedite the operation of a replicating server. + ${Expedite}, + [Parameter(ParameterSetName = 'ListByName')] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Query')] [System.String] @@ -184,23 +190,15 @@ function Get-AzMigrateServerMigrationStatus { [string]$State, [object]$ReplicationMigrationItem ) - - if ([string]::IsNullOrEmpty($State)) { - if ($ReplicationMigrationItem.MigrationState -match "InitialSeedingInProgress" -or $ReplicationMigrationItem.MigrationState -match "EnableMigrationInProgress" -or $ReplicationMigrationItem.MigrationState -match "Replicating") { - return "InitialReplication Queued" - } - elseif ($ReplicationMigrationItem.MigrationState -match "InitialSeedingFailed") { - return "InitialReplication Failed" - } - return $ReplicationMigrationItem.MigrationState + if ($ReplicationMigrationItem.MigrationState -eq "MigrationFailed") { + return "Migration Failed" } - - if ($ReplicationMigrationItem.MigrationState -match "MigrationInProgress" -and $ReplicationMigrationItem.migrationProgressPercentage -eq $null) { - return "FinalDeltaReplication Queued" + elseif ($ReplicationMigrationItem.MigrationState -match "InitialSeedingFailed") { + return "InitialReplication Failed" } - if ($ReplicationMigrationItem.MigrationState -eq "MigrationSucceeded") { - return "Migration Completed" + if ([string]::IsNullOrEmpty($State)) { + return $ReplicationMigrationItem.MigrationState } $State = $State -replace "PlannedFailoverOverDeltaReplication", "FinalDeltaReplication" @@ -254,8 +252,30 @@ function Get-AzMigrateServerMigrationStatus { [double]$Value ) - if ($Value -ne $null -and $Value -ne 0) { - return "$Value%" + if ($null -ne $Value) { + return "$Value %" + } else { + return "-" + } + } + + function Add-MBps { + param ( + [double]$Value + ) + if ($null -ne $Value) { + return "$Value MBps" + } else { + return "-" + } + } + + function Add-MB { + param ( + [double]$Value + ) + if ($null -ne $Value) { + return "$Value MB" } else { return "-" } @@ -279,6 +299,58 @@ function Get-AzMigrateServerMigrationStatus { return $formattedTime } + # Helper function to determine status + function Get-ResourceStatus { + param ( + [double]$Capacity, + [double]$Utilization, + [string]$ResourceType + ) + if ($Capacity -eq 0 -or $null -eq $Capacity) { + return "-" + } + if ($null -eq $Utilization) { + return "-" + } + if ($ResourceType -match "CPU Sum" -and $Utilization -eq 0) { + return "-" + } + + $thresholds = @{ + "ApplianceRam" = @{ AtCapacity = 95; Throttled = 85; Underutilized = 60 } + "ApplianceCpu" = @{ AtCapacity = 99; Throttled = 95; Underutilized = 60 } + "NetworkBandwidth" = @{ AtCapacity = 95; Throttled = 90; Underutilized = 50 } + "EsxiNfcBuffer" = @{ AtCapacity = 100; Throttled = 90; Underutilized = 70 } + "ParallelDisks" = @{ AtCapacity = 100; Throttled = 95; Underutilized = 70 } + "Datastore" = @{ AtCapacity = 100; Throttled = 95; Underutilized = 70 } + "Default" = @{ AtCapacity = 100; Throttled = 90; Underutilized = 70 } + } + + # Map resource type to threshold set + $typeKey = switch -Regex ($ResourceType) { + "RAM" { "ApplianceRam" } + "CPU" { "ApplianceCpu" } + "Network" { "NetworkBandwidth" } + "NFC" { "EsxiNfcBuffer" } + "Disk" { "ParallelDisks" } + "Datastore" { "Datastore" } + default { "Default" } + } + + $t = $thresholds[$typeKey] + $percent = ($Utilization / $Capacity) * 100 + + if ($percent -ge $t.AtCapacity) { + return "At capacity" + } elseif ($percent -ge $t.Throttled) { + return "Throttled" + } elseif ($percent -le $t.Underutilized) { + return "Underutilized" + } else { + return "Normal" + } + } + $parameterSet = $PSCmdlet.ParameterSetName $null = $PSBoundParameters.Remove('ResourceGroupName') $null = $PSBoundParameters.Remove('ProjectName') @@ -289,7 +361,7 @@ function Get-AzMigrateServerMigrationStatus { $null = $PSBoundParameters.Remove('MachineName') $null = $PSBoundParameters.Remove('ApplianceName') $null = $PSBoundParameters.Remove('Health') - #$null = $PSBoundParameters.Remove('Expedite') + $null = $PSBoundParameters.Remove('Expedite') $output = New-Object System.Collections.ArrayList # Create a hashtable to store the output. @@ -344,13 +416,13 @@ function Get-AzMigrateServerMigrationStatus { $vmMigrationStatusTable = New-Object System.Data.DataTable("") if ($parameterSet -eq "GetByApplianceName") { - $column = @("Server", "State", "Progress", "TimeElapsed", "TimeRemaining", "UploadSpeed", "Health", "LastSync", "Datastore") + $column = @("Server", "State", "Progress", "TimeElapsed", "TimeRemaining", "UploadSpeed", "Health", "LastSync", "ESXiHost", "Datastore") } elseif ($parameterSet -eq "ListByName") { - $column = @("Appliance", "Server", "State", "Progress", "TimeElapsed", "TimeRemaining", "UploadSpeed", "Health", "LastSync", "Datastore") + $column = @("Appliance", "Server", "State", "Progress", "TimeElapsed", "TimeRemaining", "UploadSpeed", "Health", "LastSync", "ESXiHost", "Datastore") } else { - $column = @("Appliance", "Server", "State", "Progress", "TimeElapsed", "TimeRemaining", "UploadSpeed", "LastSync", "Datastore") + $column = @("Appliance", "Server", "State", "Progress", "TimeElapsed", "TimeRemaining", "UploadSpeed", "LastSync", "ESXiHost", "Datastore") } MakeTable $vmMigrationStatusTable $column @@ -421,7 +493,7 @@ function Get-AzMigrateServerMigrationStatus { } $row1["LastSync"] = ConvertToCustomTimeFormat -LocalTimeString $ReplicationMigrationItem.ProviderSpecificDetail.lastRecoveryPointReceived - #$row1["ESXiHost"] = $ReplicationMigrationItem.ProviderSpecificDetail.GatewayOperationDetailHostName + $row1["ESXiHost"] = $ReplicationMigrationItem.ProviderSpecificDetail.GatewayOperationDetailHostName if (-not [string]::IsNullOrEmpty($ReplicationMigrationItem.ProviderSpecificDetail.GatewayOperationDetailDataStore)) { $row1["Datastore"] = $ReplicationMigrationItem.ProviderSpecificDetail.GatewayOperationDetailDataStore -join ', ' } @@ -509,110 +581,298 @@ function Get-AzMigrateServerMigrationStatus { } } } + } - <#if( $parameterSet -eq "GetByPrioritiseServer") { - $vmMigrationTable = New-Object System.Data.DataTable("") - $column = @("Appliance", "Server", "State", "TimeRemaining", "ESXiHost", "Datastore") - MakeTable $vmMigrationTable $column + if( $parameterSet -eq "GetByPrioritiseServer") { - foreach($MigrationItem in $ReplicationMigrationItems) { - $site = $MigrationItem.ProviderSpecificDetail.vmwareMachineId.Split('/')[-3] - $appName1 = GetApplianceName $site - if ($MigrationItem.MachineName -eq $ReplicationMigrationItem.MachineName -and $appName1 -eq $appName) { - continue; - } + $replicationState = GetState -State $ReplicationMigrationItem.ProviderSpecificDetail.GatewayOperationDetailState -ReplicationMigrationItem $ReplicationMigrationItem + if ($replicationState -match "Failed" -or $replicationState -match "Completed" -or ($replicationState -notmatch "InProgress" -and $replicationState -notmatch "Queued")) { + $op = $output.Add("Replication for server '$($ReplicationMigrationItem.MachineName)' is in state '$replicationState'. Expedite recommendations are only applicable for servers in 'Queued' or 'InProgress' state.`n") + return $output; + } - if ($appName1 -ne $appName) { - continue; - } + # Build a table of VMs sharing resources (appliance, datastore, ESXi host) with the reference VM. + $vmMigrationTable = New-Object System.Data.DataTable("") + $column = @("Appliance", "Server", "SharedResourceType", "State", "TimeRemaining", "ESXiHost", "Datastore") + MakeTable $vmMigrationTable $column + + # Get reference VM's ESXi host and datastores + $refESXiHost = $ReplicationMigrationItem.ProviderSpecificDetail.GatewayOperationDetailHostName + $refDatastores = @() + if ($ReplicationMigrationItem.ProviderSpecificDetail.GatewayOperationDetailDataStore) { + $refDatastores = @($ReplicationMigrationItem.ProviderSpecificDetail.GatewayOperationDetailDataStore) + } + + $MigrationItems = Get-AzMigrateServerReplication -ProjectName $ProjectName -ResourceGroupName $ResourceGroupName + $addedMachines = @{} # Hashtable to track added machines + foreach($MigrationItem in $MigrationItems) { + # Skip the reference VM itself + if ($MigrationItem.MachineName -eq $ReplicationMigrationItem.MachineName) { + continue + } + + # Skip if this machine has already been added + if ($addedMachines.ContainsKey($MigrationItem.MachineName)) { + continue + } + $site = $MigrationItem.ProviderSpecificDetail.vmwareMachineId.Split('/')[-3] + $appName1 = GetApplianceName $site + + # Check for shared resources + $sharedTypes = @() + + if ($appName1 -eq $appName) { + $sharedTypes += "Appliance" + } + + $esxiHost = $MigrationItem.ProviderSpecificDetail.GatewayOperationDetailHostName + if ($refESXiHost -and $esxiHost -and ($esxiHost -eq $refESXiHost)) { + $sharedTypes += "ESXiHost" + } + + $datastores = @() + if ($MigrationItem.ProviderSpecificDetail.GatewayOperationDetailDataStore) { + $datastores = @($MigrationItem.ProviderSpecificDetail.GatewayOperationDetailDataStore) + } + $commonDatastores = $refDatastores | Where-Object { $datastores -contains $_ } + foreach ($ds in $commonDatastores) { + $sharedTypes += "Datastore" + } + + if ($sharedTypes.Count -gt 0) { $row1 = $vmMigrationTable.NewRow() $row1["Appliance"] = $appName1 $row1["Server"] = $MigrationItem.MachineName + $row1["SharedResourceType"] = $sharedTypes -join ', ' + $row1["TimeRemaining"] = Convert-MillisecondsToTime -Milliseconds $MigrationItem.ProviderSpecificDetail.GatewayOperationDetailTimeRemaining $row1["State"] = $MigrationItem.ProviderSpecificDetail.GatewayOperationDetailState - $row1["TimeRemaining"] = $MigrationItem.ProviderSpecificDetail.GatewayOperationDetailTimeRemaining $row1["ESXiHost"] = $MigrationItem.ProviderSpecificDetail.GatewayOperationDetailHostName - $row1["Datastore"] = $MigrationItem.ProviderSpecificDetail.GatewayOperationDetailDataStore + if ($datastores -and $datastores.Count -gt 0) { + $row1["Datastore"] = $datastores -join ', ' + } else { + $row1["Datastore"] = "-" + } $vmMigrationTable.Rows.Add($row1) + # Mark this machine as added to avoid duplicates + $addedMachines[$MigrationItem.MachineName] = $true } - $op = $output.Add("Resource Sharing: `n`nVM $($ReplicationMigrationItem.MachineName) shares at least one resource with the following VM. These include ESXi host, Datastore or primary appliance.") + } + + if ($vmMigrationTable.Rows.Count -gt 0) { + $op = $output.Add("Resource Sharing:`n`nThe following VMs share at least one resource (Appliance, ESXi Host, or Datastore) with VM " + ` + "'$($ReplicationMigrationItem.MachineName)'. The 'SharedResourceType' and 'SharedResourceName' columns indicate which resource is shared.") + $vmMigrationTable = $vmMigrationTable | Format-Table -AutoSize | Out-String $op = $output.Add($vmMigrationTable) + } + else { + $op = $output.Add("No other VMs found sharing Appliance, ESXi Host, or Datastore with VM '$($ReplicationMigrationItem.MachineName)'.") + } + $resourceUtilizationTable = New-Object System.Data.DataTable("") + $column = @("Resource", "Capacity", "Utilization for server migrations", "Total utilization", "Status") + MakeTable $resourceUtilizationTable $column + + # RAM + $row1 = $resourceUtilizationTable.NewRow() + $ramCapacity = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.RamDetailCapacity + $ramTotalUtil = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.RamDetailTotalUtilization + $row1["Resource"] = "Appliance RAM Sum : Primary and scale out appliances" + $row1["Capacity"] = Add-MB -Value $ramCapacity + $row1["Utilization for server migrations"] = Add-MB -Value ($ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.RamDetailProcessUtilization) + $row1["Total utilization"] = Add-MB -Value $ramTotalUtil + $row1["Status"] = Get-ResourceStatus -Capacity $ramCapacity -Utilization $ramTotalUtil -ResourceType $row1["Resource"] + $resourceUtilizationTable.Rows.Add($row1) + + # CPU + $row2 = $resourceUtilizationTable.NewRow() + $cpuCapacity = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.CpuDetailCapacity + $cpuProcessUtil = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.CpuDetailProcessUtilization + $cpuTotalUtil = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.CpuDetailTotalUtilization + $row2["Resource"] = "Appliance CPU Sum : Primary and scale out appliances" + if ($null -ne $cpuCapacity -and $cpuCapacity -ne 0) { + $row2["Capacity"] = "$($cpuCapacity) Cores" + } else { + $row2["Capacity"] = "-" + } + $row2["Utilization for server migrations"] = Add-Percent -Value $cpuProcessUtil + $row2["Total utilization"] = Add-Percent -Value $cpuTotalUtil + $row2["Status"] = Get-ResourceStatus -Capacity 100 -Utilization $cpuTotalUtil -ResourceType $row2["Resource"] + $resourceUtilizationTable.Rows.Add($row2) + + # Network Bandwidth + $row3 = $resourceUtilizationTable.NewRow() + $netCapacity = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.NetworkBandwidthCapacity + $netTotalUtil = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.NetworkBandwidthTotalUtilization + $row3["Resource"] = "Network bandwidth Sum : Primary and scale out appliances" + $row3["Capacity"] = Add-MBps -Value $netCapacity + $row3["Utilization for server migrations"] = Add-MBps -Value $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.NetworkBandwidthProcessUtilization + $row3["Total utilization"] = Add-MBps -Value $netTotalUtil + $row3["Status"] = Get-ResourceStatus -Capacity $netCapacity -Utilization $netTotalUtil -ResourceType $row3["Resource"] + $resourceUtilizationTable.Rows.Add($row3) + + # ESXi NFC Buffer + $row4 = $resourceUtilizationTable.NewRow() + $nfcCapacity = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.EsxiNfcBufferCapacity + $nfcProcessUtil = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.EsxiNfcBufferProcessUtilization + $row4["Resource"] = "ESXi host NFC buffer" + $row4["Capacity"] = Add-MB -Value $nfcCapacity + $row4["Utilization for server migrations"] = Add-MB -Value $nfcProcessUtil + $row4["Total utilization"] = "-" + $row4["Status"] = Get-ResourceStatus -Capacity $nfcCapacity -Utilization $nfcProcessUtil -ResourceType $row4["Resource"] + $resourceUtilizationTable.Rows.Add($row4) + + # Parallel Disks Replicated + $row5 = $resourceUtilizationTable.NewRow() + $diskCapacity = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.DiskReplicationDetailCapacity + $diskProcessUtil = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.DiskReplicationDetailProcessUtilization + $row5["Resource"] = "Parallel Disks Replicated Sum : Primary and scale out appliances" + if ($null -ne $diskCapacity) { + $row5["Capacity"] = $diskCapacity + } + else { + $row5["Capacity"] = "-" + } + if ($null -ne $diskProcessUtil) { + $row5["Utilization for server migrations"] = $diskProcessUtil + } + else { + $row5["Utilization for server migrations"] = "-" + } + $row5["Total utilization"] = "-" + $row5["Status"] = Get-ResourceStatus -Capacity $diskCapacity -Utilization $diskProcessUtil -ResourceType $row5["Resource"] + $resourceUtilizationTable.Rows.Add($row5) + + # Datastore Snapshots (list) + $datastoreList = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.datastoreSnapshot + if ($datastoreList) { + foreach ($ds in $datastoreList) { + $row = $resourceUtilizationTable.NewRow() + if ($null -ne $ds.datastoreName) { + $datastoreName = $ds.datastoreName + } + else { + $datastoreName = "-" + } + $row["Resource"] = "Datastore '$datastoreName' Snapshot Count" + if ($null -ne $ds.totalSnapshotsSupported) { + $row["Capacity"] = $ds.totalSnapshotsSupported + } + else { + $row["Capacity"] = "-" + } + if ($null -ne $ds.totalSnapshotsCreated) { + $row["Utilization for server migrations"] = $ds.totalSnapshotsCreated + } + else { + $row["Utilization for server migrations"] = "-" + } + $row["Total utilization"] = "-" + $row["Status"] = Get-ResourceStatus -Capacity $ds.totalSnapshotsSupported -Utilization $ds.totalSnapshotsCreated -ResourceType $row["Resource"] + $resourceUtilizationTable.Rows.Add($row) + } + } - $resourceUtilizationTable = New-Object System.Data.DataTable("") - $column = @("Resource", "Capacity", "Utilization for server migrations", "Total utilization", "Status") - MakeTable $resourceUtilizationTable $column - $row1 = $resourceUtilizationTable.NewRow() - $row1["Resource"] = "Appliance RAM Sum : Primary and scale out appliances" - $row1["Capacity"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.RamDetailCapacity - $row1["Utilization for server migrations"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.RamDetailProcessUtilization - $row1["Total utilization"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.RamDetailTotalUtilization - $row1["Status"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.RamDetailStatus - $resourceUtilizationTable.Rows.Add($row1) - - $row2 = $resourceUtilizationTable.NewRow() - $row2["Resource"] = "Appliance CPU Sum : Primary and scale out appliances" - $row2["Capacity"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.CpuDetailCapacity - $row2["Utilization for server migrations"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.CpuDetailProcessUtilization - $row2["Total utilization"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.CpuDetailTotalUtilization - $row2["Status"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.CpuDetailStatus - $resourceUtilizationTable.Rows.Add($row2) - - $row3 = $resourceUtilizationTable.NewRow() - $row3["Resource"] = "Network bandwidth Sum : Primary and scale out appliances" - $row3["Capacity"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.NetworkBandwidthCapacity - $row3["Utilization for server migrations"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.NetworkBandwidthProcessUtilization - $row3["Total utilization"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.NetworkBandwidthTotalUtilization - $row3["Status"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.NetworkBandwidthStatus - $resourceUtilizationTable.Rows.Add($row3) - - $row4 = $resourceUtilizationTable.NewRow() - $row4["Resource"] = "ESXi host NFC buffer" - $row4["Capacity"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.EsxiNfcBufferCapacity - $row4["Utilization for server migrations"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.EsxiNfcBufferProcessUtilization - $row4["Total utilization"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.EsxiNfcBufferTotalUtilization - $row4["Status"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.EsxiNfcBufferStatus - $resourceUtilizationTable.Rows.Add($row4) - - $row5 = $resourceUtilizationTable.NewRow() - $row5["Resource"] = "Parallel Disks Replicated Sum : Primary and scale out appliances" - $row5["Capacity"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.DiskReplicationDetailCapacity - $row5["Utilization for server migrations"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.DiskReplicationDetailProcessUtilization - $row5["Total utilization"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.DiskReplicationDetailTotalUtilization - $row5["Status"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.DiskReplicationDetailStatus - $resourceUtilizationTable.Rows.Add($row5) - - $row6 = $resourceUtilizationTable.NewRow() - $row6["Resource"] = "Datastore Snapshot Count (for each datastore corresponding to the server s disks)" - $row6["Capacity"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.DatastoreSnapshotCapacity - $row6["Utilization for server migrations"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.DatastoreSnapshotProcessUtilization - $row6["Total utilization"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.DatastoreSnapshotTotalUtilization - $row6["Status"] = $ReplicationMigrationItem.ProviderSpecificDetail.ApplianceMonitoringDetail.DatastoreSnapshotStatus - $resourceUtilizationTable.Rows.Add($row6) - - $op = $output.Add("Resource utilization information for migration operations:") - $resourceUtilizationTable = $resourceUtilizationTable | Format-Table -AutoSize | Out-String - $op = $output.Add($resourceUtilizationTable) - - # Add Recommendation actions logic for expedite. - - Write-Host "Based on the resource utilization seen above following are suggestion you can take to expedite server $($ReplicationMigrationItem.MachineName) migration :" -ForegroundColor White - Write-Host "1. Pause replication for servers S2, S3, in delta sync who are migrating under appliance A1." - Write-Host "2. Stop replication for servers S4 in Initial replication migrating under appliance A1." - Write-Host "3. Increase the Network bandwidth available for appliances so that upload speeds can increase." - Write-Host "4. Increase the NFC buffer size to increase the upload speed." - Write-Host "5. Perform storage Vmotion on server $($ReplicationMigrationItem.MachineName)." - }#> + $op = $output.Add("Resource utilization information for migration operations:") + $resourceUtilizationTableString = $resourceUtilizationTable | Format-Table -AutoSize | Out-String + $op = $output.Add($resourceUtilizationTableString) + + # Recommendations + $recommendations = @() + foreach ($row in $resourceUtilizationTable.Rows) { + $resource = $row["Resource"] + + # Normalize resource string for matching + $resourceNorm = $resource.ToLower() + $status = $row["Status"].ToLower() + $isQueued = $replicationState -match "Queued" + + if ($status -eq "Throttled" -or $status -eq "At capacity") { + if ($resourceNorm -like "*ram*") { + $recommendations += "`nResource `"$resource`" is $status. Recommendations:" + $recommendations += "Stop other processes running on the appliance that are consuming RAM." + $recommendations += "Stop initial replication (IR) or pause delta replication (DR) for other low-priority VMs migrating under this appliance to free up RAM." + $recommendations += "Decrease the number of workers (parallel disk replications)." + $ramCapacityVal = 0 + if ($row["Capacity"] -match "(\d+(\.\d+)?)") { $ramCapacityVal = [double]$matches[1] } + if ($ramCapacityVal -lt 32768 -and $ramCapacityVal -gt 0) { + $recommendations += "Consider increasing the appliance RAM to improve migration performance and support higher workloads." + } + $recommendations += "If only the primary appliance is present, consider adding or increasing the number of scale-out appliances.`n" + } + elseif ($resourceNorm -like "*cpu*") { + $recommendations += "`nResource `"$resource`" is $status. Recommendations:" + $recommendations += "Stop other processes running on the appliance that are consuming CPU." + $recommendations += "Stop initial replication (IR) or pause delta replication (DR) for other low-priority VMs migrating under this appliance to free up CPU." + $recommendations += "Decrease the number of workers (parallel disk replications)." + $recommendations += "If only the primary appliance is present, consider adding or increasing the number of scale-out appliances.`n" + } + elseif ($resourceNorm -like "*network bandwidth*") { + $recommendations += "`nResource `"$resource`" is $status. Recommendations:" + $recommendations += "Pause or stop other processes utilizing the network." + $recommendations += "Stop initial replication (IR) or pause delta replication (DR) for other low-priority VMs migrating under this appliance to free up network bandwidth." + $recommendations += "Decrease the number of workers (parallel disk replications)." + $recommendations += "Review and adjust Quality of Service (QoS) limits per process if applicable." + $recommendations += "Increase the network bandwidth available to the appliance.`n" + } + elseif ($resourceNorm -like "*nfc buffer*") { + if ($isQueued) { + $recommendations += "`nResource `"$resource`" is $status. Recommendations:" + $recommendations += "Stop initial replication (IR) or pause delta replication (DR) for other low-priority VMs migrating under this appliance to free up NFC buffer on the ESXi host." + $recommendations += "Perform vMotion for other low-priority virtual machines." + $recommendations += "Increase the size of the NFC buffer on the ESXi host." + $recommendations += "Stop or schedule blackout windows for other backup providers running on the ESXi host.`n" + } + } + elseif ($resourceNorm -like "*parallel disk replicated*") { + if ($isQueued) { + $recommendations += "`nResource `"$resource`" is $status. Recommendations:" + $recommendations += "Add a scale-out appliance to distribute the migration workload more effectively." + $recommendations += "Stop initial replication (IR) or pause delta replication (DR) for other low-priority VMs migrating under this appliance to free up parallel disk replication capacity." + $recommendations += "If this is the only bottleneck and all other resources are available, increase the number of workers (parallel disk replications)." + } + } + elseif ($resourceNorm -like "*datastore*" -and $resourceNorm -like "*snapshot*") { + if ($isQueued) { + $recommendations += "`nResource `"$resource`" is $status. Recommendations:" + $recommendations += "Pause or stop replications for other VMs migrating under this appliance to free up snapshot capacity." + $recommendations += "Increase the snapshot count supported by the datastore." + $recommendations += "Perform storage vMotion for other low-priority replicating VMs.`n" + } + } + } + } + + if ($recommendations.Count -gt 0) { + $op = $output.Add("Based on the resource utilization seen above, here are suggestions to expedite server $($ReplicationMigrationItem.MachineName) migration:") + foreach ($rec in $recommendations) { + $op = $output.Add("$rec") + } + } } if ($parameterSet -eq "GetByApplianceName" -or $parameterSet -eq "ListByName") { - $vmMigrationStatusTable = $vmMigrationStatusTable | Format-Table -AutoSize | Out-String + if ($parameterSet -eq "ListByName") { + $desiredCols = @("Appliance","Server","State","Progress","TimeElapsed","TimeRemaining","UploadSpeed","Health","LastSync", "ESXiHost", "Datastore") + } + elseif ($parameterSet -eq "GetByApplianceName") { + $desiredCols = @("Server","State","Progress","TimeElapsed","TimeRemaining","UploadSpeed","Health","LastSync","ESXiHost","Datastore") + } + else { + $desiredCols = $vmMigrationStatusTable.Columns | ForEach-Object { $_.ColumnName } + } + + $existingCols = $vmMigrationStatusTable.Columns | ForEach-Object { $_.ColumnName } + $cols = $desiredCols | Where-Object { $existingCols -contains $_ } + + if (-not $cols -or $cols.Count -eq 0) { $cols = $existingCols } + + # Select columns explicitly and force Format-Table to render all of them (no truncation) + $vmMigrationStatusTable = $vmMigrationStatusTable | Select-Object -Property $cols | Format-Table -Property $cols -AutoSize -Wrap -Force | Out-String -Width 4096 $op = $output.Add($vmMigrationStatusTable) - $diskStatusTable = $diskStatusTable | Format-Table -AutoSize | Out-String - $op = $output.Add($diskStatusTable) -# $op = $output.Add("To check expedite the operation of a server use the command") -# $op = $output.Add("Get-AzMigrateServerMigrationStatus -ProjectName -ResourceGroupName -MachineName -Expedite`n") + $op = $output.Add("To check expedite the operation of a server use the command") + $op = $output.Add("Get-AzMigrateServerMigrationStatus -ProjectName -ResourceGroupName -MachineName -Expedite`n") $op = $output.Add("To resolve the health issue use the command") $op = $output.Add("Get-AzMigrateServerMigrationStatus -ProjectName -ResourceGroupName -MachineName -Health`n") } diff --git a/src/Migrate/Migrate.Autorest/custom/README.md b/src/Migrate/Migrate.Autorest/custom/README.md index 67ca1cd0e5cd..a268d35afb1d 100644 --- a/src/Migrate/Migrate.Autorest/custom/README.md +++ b/src/Migrate/Migrate.Autorest/custom/README.md @@ -1,5 +1,5 @@ # Custom -This directory contains custom implementation for non-generated cmdlets for the `Az.Migrate` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.Migrate.custom.psm1`. This file should not be modified. +This directory contains custom implementation for non-generated cmdlets for the `Az.Migrate` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `../exports` folder. The only generated file into this folder is the `Az.Migrate.custom.psm1`. This file should not be modified. ## Info - Modifiable: yes @@ -15,10 +15,10 @@ For C# cmdlets, they are compiled with the rest of the generated low-level cmdle For script cmdlets, these are loaded via the `Az.Migrate.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. ## Purpose -This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. +This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `../exports` folder. ## Usage -The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: +The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `../exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: - Break - DefaultProfile - HttpPipelineAppend @@ -36,6 +36,6 @@ For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.Migrate.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.Migrate`. - `Microsoft.Azure.PowerShell.Cmdlets.Migrate.InternalExportAttribute` - - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.Migrate`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. + - Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.Migrate`. For more information, see [README.md](../internal/README.md) in the `../internal` folder. - `Microsoft.Azure.PowerShell.Cmdlets.Migrate.ProfileAttribute` - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/Migrate/Migrate.Autorest/docs/Az.Migrate.md b/src/Migrate/Migrate.Autorest/docs/Az.Migrate.md index b5409f0cfcfd..e9438b4a28ed 100644 --- a/src/Migrate/Migrate.Autorest/docs/Az.Migrate.md +++ b/src/Migrate/Migrate.Autorest/docs/Az.Migrate.md @@ -1,6 +1,6 @@ --- Module Name: Az.Migrate -Module Guid: 7cbf023d-6b60-494a-8cdb-ab27463fef7d +Module Guid: 54155e7c-dd37-4932-9420-89a7bcdd9892 Download Help Link: https://learn.microsoft.com/powershell/module/az.migrate Help Version: 1.0.0.0 Locale: en-US diff --git a/src/Migrate/Migrate.Autorest/docs/Get-AzMigrateServerMigrationStatus.md b/src/Migrate/Migrate.Autorest/docs/Get-AzMigrateServerMigrationStatus.md index 68ebb9d23196..e02e7491065a 100644 --- a/src/Migrate/Migrate.Autorest/docs/Get-AzMigrateServerMigrationStatus.md +++ b/src/Migrate/Migrate.Autorest/docs/Get-AzMigrateServerMigrationStatus.md @@ -31,6 +31,12 @@ Get-AzMigrateServerMigrationStatus -MachineName -ProjectName - [-SubscriptionId ] [-DefaultProfile ] [] ``` +### GetByPrioritiseServer +``` +Get-AzMigrateServerMigrationStatus -Expedite -MachineName -ProjectName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + ### GetHealthByMachineName ``` Get-AzMigrateServerMigrationStatus -Health -MachineName -ProjectName @@ -44,14 +50,16 @@ The Get-AzMigrateServerMigrationStatus cmdlet retrieves the replication status f ### Example 1: List status by project name. ```powershell -Get-AzMigrateServerMigrationStatus -ResourceGroupName cbtpvtrg -ProjectName migpvt +Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" ``` ```output -Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed Health LastSync Datastore ---------- ------ ----- -------- ----------- ------------- ----------- ------ -------- --------- -migpvt CVM-Win2019 DeltaReplication Completed - - - - Normal 12/7/2023, 11:18:07 AM Shared_1TB, datastore1 -migpvt CVM-Win2022 DeltaReplication Completed - - - - Normal 12/7/2023, 10:41:42 AM datastore1 + +Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed Health LastSync Datastore ESXiHost +--------- ------ ----- -------- ----------- ------------- ----------- ------ -------- --------- -------- +nosbm-test-ds el41-r5w12r1-3 InitialReplication InProgress 48 % 3 hr 48 min 12 hr 37 min 1230 Mbps Normal - IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 +nosbm-test-ds el41-r5w2k8r2-1 DeltaReplication Completed - - - - Normal 9/4/2025, 3:04:45 PM IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 +nosbm-test-ds dsinha-cbt-test DeltaReplication Completed - - - - Normal 9/4/2025, 2:58:21 PM IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 @@ -64,44 +72,102 @@ Get by project name. ### Example 2: List status by machine name. ```powershell -Get-AzMigrateServerMigrationStatus -ProjectName "migpvt-ecyproj" -ResourceGroupName "cbtprivatestamprg" -MachineName "CVM-Win2019" +Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -MachineName "Rhel8-Vm" ``` ```output -Server CVM-Win2019 is currently healthy. +Server Rhel8-Vm is currently healthy. + +Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed LastSync ESXiHost Datastore +--------- ------ ----- -------- ----------- ------------- ----------- -------- -------- --------- +cbtresyncgql Rhel8-Vm DeltaReplication Completed - - - - 7/14/2025, 9:51:05 PM idclab-vcen8.fareast.corp.microsoft.com_10.150.102.181 IDCLAB-B161-3TB -Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed LastSync Datastore ---------- ------ ----- -------- ----------- ------------- ----------- -------- --------- -migpvt CVM-Win2019 DeltaReplication Completed - - - - 12/7/2023, 11:18:07 AM Shared_1TB, datastore1 +Disk Level Operation Status: -Disk State Progress TimeElapsed TimeRemaining UploadSpeed Datastore ----- ----- -------- ----------- ------------- ----------- --------- -TestVM DeltaReplication Completed - - - - Shared_1TB -CVM-Win2019 DeltaReplication Completed - - - - datastore1 +Disk State Progress TimeElapsed TimeRemaining UploadSpeed Datastore +---- ----- -------- ----------- ------------- ----------- --------- +Rhel8-Vm DeltaReplication Completed - - - - IDCLAB-B161-3TB ``` Get by machine name. -### Example 2: List status by appliance name. +### Example 3: List status by appliance name. ```powershell -Get-AzMigrateServerMigrationStatus -ProjectName "migpvt-ecyproj" -ResourceGroupName "cbtprivatestamprg" -ApplianceName "migpvt" +Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -ApplianceName "cbtresyncgql" ``` ```output -Server State Progress TimeElapsed TimeRemaining UploadSpeed Health LastSync Datastore ------- ----- -------- ----------- ------------- ----------- ------ -------- --------- -CVM-Win2019 DeltaReplication Completed - - - - Normal 12/7/2023, 11:18:07 AM Shared_1TB, datastore1 -CVM-Win2022 DeltaReplication Completed - - - - Normal 12/7/2023, 10:41:42 AM datastore1 +Server State Progress TimeElapsed TimeRemaining UploadSpeed Health LastSync Datastore ESXiHost +------ ----- -------- ----------- ------------- ----------- ------ -------- --------- -------- +el41-r5w12r1-3 InitialReplication InProgress 48 % 3 hr 48 min 12 hr 37 min 1230 Mbps Normal - IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 +el41-r5w2k8r2-1 DeltaReplication Completed - - - - Normal 9/4/2025, 3:04:45 PM IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 +dsinha-cbt-test DeltaReplication Completed - - - - Normal 9/4/2025, 2:58:21 PM IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 +To check expedite the operation of a server use the command +Get-AzMigrateServerMigrationStatus -ProjectName -ResourceGroupName -MachineName -Expedite + To resolve the health issue use the command Get-AzMigrateServerMigrationStatus -ProjectName -ResourceGroupName -MachineName -Health ``` Get by appliance name. +### Example 4: Expedite replication for a server. +```powershell +Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -MachineName "Rhel8-Vm" -Expedite +``` + +```output +Server Information: + +Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed LastSync ESXiHost Datastore +--------- ------ ----- -------- ----------- ------------- ----------- -------- -------- --------- +cbtresyncgql Rhel8-Vm DeltaReplication Completed - - - - 7/14/2025, 9:51:05 PM idclab-vcen8.fareast.corp.microsoft.com_10.150.102.181 IDCLAB-B161-3TB + + + +Disk Level Operation Status: + +Disk State Progress TimeElapsed TimeRemaining UploadSpeed Datastore +---- ----- -------- ----------- ------------- ----------- --------- +Rhel8-Vm DeltaReplication Completed - - - - IDCLAB-B161-3TB + + +Resource Sharing: + +The following VMs share at least one resource (Appliance, ESXi Host, or Datastore) with VM 'Rhel8-Vm'. The 'SharedResourceType' and 'SharedResourceName' columns indicate which resource is shared. + +Appliance Server SharedResourceType State TimeRemaining ESXiHost Datastore +--------- ------ ------------------ ----- ------------- -------- --------- +cbtresyncgql wave-selfhost-vm8 Appliance DeltaReplication Completed - idclab-vcen8.fareast.corp.microsoft.com_10.150.102.191 Shared_1TB +cbtresyncgql el41-r5w12r2-1 Appliance DeltaReplication Completed - idclab-vcen65.corp.microsoft.com_10.150.84.28 IDCLAB-T100_10TB +cbtresyncgql el41-r5w2k8r2-1 Appliance DeltaReplication Completed - idclab-vcen65.corp.microsoft.com_10.150.84.28 IDCLAB-T100_10TB +cbtresyncgql el41-r5w12r1-2 Appliance DeltaReplication Completed - idclab-vcen65.corp.microsoft.com_10.150.84.28 IDCLAB-T100_10TB +cbtresyncgql ubuntu22-liverserver-bios-nolvm Appliance, ESXiHost, Datastore DeltaReplication Completed - idclab-vcen8.fareast.corp.microsoft.com_10.150.102.181 IDCLAB-B161-3TB + + +Resource utilization information for migration operations: + +Resource Capacity Utilization for server migrations Total utilization Status +-------- -------- --------------------------------- ----------------- ------ +Appliance RAM Sum : Primary and scale out appliances 32768 MB 1808 MB 7014 MB Underutilized +Appliance CPU Sum : Primary and scale out appliances 4 Cores - 99% At capacity +Network bandwidth Sum : Primary and scale out appliances 1192 MBps - - Underutilized +ESXi host NFC buffer 32 MB 8 MB - Underutilized +Parallel Disks Replicated Sum : Primary and scale out appliances 58 3 - Underutilized +Datastore 'IDCLAB-B161-3TB' Snapshot Count 15 2 - Underutilized + + +Based on the resource utilization seen above, here are suggestions to expedite server Rhel8-Vm migration: + +1. CPU is At capacity. Pause or stop other migrations under this appliance, or increase CPU resources if possible. +``` + +Expedite replication for a specific server. + ## PARAMETERS ### -ApplianceName @@ -134,6 +200,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Expedite +Specifies whether to expedite the operation of a replicating server. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: GetByPrioritiseServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Filter OData filter options. @@ -165,12 +246,11 @@ Accept wildcard characters: False ``` ### -MachineName -[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] - Specifies the display name of the replicating machine. +Specifies the display name of the replicating machine. ```yaml Type: System.String -Parameter Sets: GetByMachineName, GetHealthByMachineName +Parameter Sets: GetByMachineName, GetByPrioritiseServer, GetHealthByMachineName Aliases: Required: True @@ -181,8 +261,7 @@ Accept wildcard characters: False ``` ### -ProjectName -[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] - Specifies the Azure Migrate project in the current subscription. +Specifies the Azure Migrate project in the current subscription. ```yaml Type: System.String @@ -197,8 +276,7 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] - Specifies the Resource Group of the Azure Migrate Project in the current subscription. +Specifies the Resource Group of the Azure Migrate Project in the current subscription. ```yaml Type: System.String diff --git a/src/Migrate/Migrate.Autorest/examples/Get-AzMigrateServerMigrationStatus.md b/src/Migrate/Migrate.Autorest/examples/Get-AzMigrateServerMigrationStatus.md index f96c0400057b..7a6510e0d36c 100644 --- a/src/Migrate/Migrate.Autorest/examples/Get-AzMigrateServerMigrationStatus.md +++ b/src/Migrate/Migrate.Autorest/examples/Get-AzMigrateServerMigrationStatus.md @@ -1,13 +1,15 @@ ### Example 1: List status by project name. ```powershell -Get-AzMigrateServerMigrationStatus -ResourceGroupName cbtpvtrg -ProjectName migpvt +Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" ``` ```output -Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed Health LastSync Datastore ---------- ------ ----- -------- ----------- ------------- ----------- ------ -------- --------- -migpvt CVM-Win2019 DeltaReplication Completed - - - - Normal 12/7/2023, 11:18:07 AM Shared_1TB, datastore1 -migpvt CVM-Win2022 DeltaReplication Completed - - - - Normal 12/7/2023, 10:41:42 AM datastore1 + +Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed Health LastSync Datastore ESXiHost +--------- ------ ----- -------- ----------- ------------- ----------- ------ -------- --------- -------- +nosbm-test-ds el41-r5w12r1-3 InitialReplication InProgress 48 % 3 hr 48 min 12 hr 37 min 1230 Mbps Normal - IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 +nosbm-test-ds el41-r5w2k8r2-1 DeltaReplication Completed - - - - Normal 9/4/2025, 3:04:45 PM IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 +nosbm-test-ds dsinha-cbt-test DeltaReplication Completed - - - - Normal 9/4/2025, 2:58:21 PM IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 @@ -20,40 +22,98 @@ Get by project name. ### Example 2: List status by machine name. ```powershell -Get-AzMigrateServerMigrationStatus -ProjectName "migpvt-ecyproj" -ResourceGroupName "cbtprivatestamprg" -MachineName "CVM-Win2019" +Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -MachineName "Rhel8-Vm" ``` ```output -Server CVM-Win2019 is currently healthy. +Server Rhel8-Vm is currently healthy. + +Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed LastSync ESXiHost Datastore +--------- ------ ----- -------- ----------- ------------- ----------- -------- -------- --------- +cbtresyncgql Rhel8-Vm DeltaReplication Completed - - - - 7/14/2025, 9:51:05 PM idclab-vcen8.fareast.corp.microsoft.com_10.150.102.181 IDCLAB-B161-3TB -Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed LastSync Datastore ---------- ------ ----- -------- ----------- ------------- ----------- -------- --------- -migpvt CVM-Win2019 DeltaReplication Completed - - - - 12/7/2023, 11:18:07 AM Shared_1TB, datastore1 +Disk Level Operation Status: -Disk State Progress TimeElapsed TimeRemaining UploadSpeed Datastore ----- ----- -------- ----------- ------------- ----------- --------- -TestVM DeltaReplication Completed - - - - Shared_1TB -CVM-Win2019 DeltaReplication Completed - - - - datastore1 +Disk State Progress TimeElapsed TimeRemaining UploadSpeed Datastore +---- ----- -------- ----------- ------------- ----------- --------- +Rhel8-Vm DeltaReplication Completed - - - - IDCLAB-B161-3TB ``` Get by machine name. -### Example 2: List status by appliance name. +### Example 3: List status by appliance name. ```powershell -Get-AzMigrateServerMigrationStatus -ProjectName "migpvt-ecyproj" -ResourceGroupName "cbtprivatestamprg" -ApplianceName "migpvt" +Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -ApplianceName "cbtresyncgql" ``` ```output -Server State Progress TimeElapsed TimeRemaining UploadSpeed Health LastSync Datastore ------- ----- -------- ----------- ------------- ----------- ------ -------- --------- -CVM-Win2019 DeltaReplication Completed - - - - Normal 12/7/2023, 11:18:07 AM Shared_1TB, datastore1 -CVM-Win2022 DeltaReplication Completed - - - - Normal 12/7/2023, 10:41:42 AM datastore1 +Server State Progress TimeElapsed TimeRemaining UploadSpeed Health LastSync Datastore ESXiHost +------ ----- -------- ----------- ------------- ----------- ------ -------- --------- -------- +el41-r5w12r1-3 InitialReplication InProgress 48 % 3 hr 48 min 12 hr 37 min 1230 Mbps Normal - IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 +el41-r5w2k8r2-1 DeltaReplication Completed - - - - Normal 9/4/2025, 3:04:45 PM IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 +dsinha-cbt-test DeltaReplication Completed - - - - Normal 9/4/2025, 2:58:21 PM IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 +To check expedite the operation of a server use the command +Get-AzMigrateServerMigrationStatus -ProjectName -ResourceGroupName -MachineName -Expedite + To resolve the health issue use the command Get-AzMigrateServerMigrationStatus -ProjectName -ResourceGroupName -MachineName -Health ``` -Get by appliance name. \ No newline at end of file +Get by appliance name. + +### Example 4: Expedite replication for a server. +```powershell +Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -MachineName "Rhel8-Vm" -Expedite +``` + +```output +Server Information: + +Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed LastSync ESXiHost Datastore +--------- ------ ----- -------- ----------- ------------- ----------- -------- -------- --------- +cbtresyncgql Rhel8-Vm DeltaReplication Completed - - - - 7/14/2025, 9:51:05 PM idclab-vcen8.fareast.corp.microsoft.com_10.150.102.181 IDCLAB-B161-3TB + + + +Disk Level Operation Status: + +Disk State Progress TimeElapsed TimeRemaining UploadSpeed Datastore +---- ----- -------- ----------- ------------- ----------- --------- +Rhel8-Vm DeltaReplication Completed - - - - IDCLAB-B161-3TB + + +Resource Sharing: + +The following VMs share at least one resource (Appliance, ESXi Host, or Datastore) with VM 'Rhel8-Vm'. The 'SharedResourceType' and 'SharedResourceName' columns indicate which resource is shared. + +Appliance Server SharedResourceType State TimeRemaining ESXiHost Datastore +--------- ------ ------------------ ----- ------------- -------- --------- +cbtresyncgql wave-selfhost-vm8 Appliance DeltaReplication Completed - idclab-vcen8.fareast.corp.microsoft.com_10.150.102.191 Shared_1TB +cbtresyncgql el41-r5w12r2-1 Appliance DeltaReplication Completed - idclab-vcen65.corp.microsoft.com_10.150.84.28 IDCLAB-T100_10TB +cbtresyncgql el41-r5w2k8r2-1 Appliance DeltaReplication Completed - idclab-vcen65.corp.microsoft.com_10.150.84.28 IDCLAB-T100_10TB +cbtresyncgql el41-r5w12r1-2 Appliance DeltaReplication Completed - idclab-vcen65.corp.microsoft.com_10.150.84.28 IDCLAB-T100_10TB +cbtresyncgql ubuntu22-liverserver-bios-nolvm Appliance, ESXiHost, Datastore DeltaReplication Completed - idclab-vcen8.fareast.corp.microsoft.com_10.150.102.181 IDCLAB-B161-3TB + + +Resource utilization information for migration operations: + +Resource Capacity Utilization for server migrations Total utilization Status +-------- -------- --------------------------------- ----------------- ------ +Appliance RAM Sum : Primary and scale out appliances 32768 MB 1808 MB 7014 MB Underutilized +Appliance CPU Sum : Primary and scale out appliances 4 Cores - 99% At capacity +Network bandwidth Sum : Primary and scale out appliances 1192 MBps - - Underutilized +ESXi host NFC buffer 32 MB 8 MB - Underutilized +Parallel Disks Replicated Sum : Primary and scale out appliances 58 3 - Underutilized +Datastore 'IDCLAB-B161-3TB' Snapshot Count 15 2 - Underutilized + + +Based on the resource utilization seen above, here are suggestions to expedite server Rhel8-Vm migration: + +1. CPU is At capacity. Pause or stop other migrations under this appliance, or increase CPU resources if possible. +``` + +Expedite replication for a specific server. diff --git a/src/Migrate/Migrate.Autorest/generate-info.json b/src/Migrate/Migrate.Autorest/generate-info.json index 92b7c03aaac0..a127a8f96a1c 100644 --- a/src/Migrate/Migrate.Autorest/generate-info.json +++ b/src/Migrate/Migrate.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "4e55833b-f8ae-4cf1-9514-f2c589c80cae" + "generate_Id": "975603a5-7561-4f37-beb6-1cb82609b3dd" } diff --git a/src/Migrate/Migrate.Autorest/resources/README.md b/src/Migrate/Migrate.Autorest/resources/README.md index 937f07f8fec2..736492341e3d 100644 --- a/src/Migrate/Migrate.Autorest/resources/README.md +++ b/src/Migrate/Migrate.Autorest/resources/README.md @@ -1,5 +1,5 @@ # Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `../custom` folder. ## Info - Modifiable: yes diff --git a/src/Migrate/Migrate.Autorest/test/Get-AzMigrateServerMigrationStatus.Tests.ps1 b/src/Migrate/Migrate.Autorest/test/Get-AzMigrateServerMigrationStatus.Tests.ps1 index 53e86c5e3abb..2c938b35a9dd 100644 --- a/src/Migrate/Migrate.Autorest/test/Get-AzMigrateServerMigrationStatus.Tests.ps1 +++ b/src/Migrate/Migrate.Autorest/test/Get-AzMigrateServerMigrationStatus.Tests.ps1 @@ -30,4 +30,8 @@ Describe 'Get-AzMigrateServerMigrationStatus' { It 'GetHealthByMachineName' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } + + It 'GetByPrioritiseServer' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } } \ No newline at end of file diff --git a/src/Migrate/Migrate.Autorest/test/README.md b/src/Migrate/Migrate.Autorest/test/README.md index 7c752b4c8c43..1969200c6a09 100644 --- a/src/Migrate/Migrate.Autorest/test/README.md +++ b/src/Migrate/Migrate.Autorest/test/README.md @@ -1,5 +1,5 @@ # Test -This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. +This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `../custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. ## Info - Modifiable: yes diff --git a/src/Migrate/Migrate.sln b/src/Migrate/Migrate.sln index edd07a106608..066aa0a73b05 100644 --- a/src/Migrate/Migrate.sln +++ b/src/Migrate/Migrate.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Migrate", "Migrate\Migrate. EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Migrate.Autorest", "Migrate.Autorest", "{9AA2C35A-2264-B74D-8556-EB72BD88EE60}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Migrate", "Migrate.Autorest\Az.Migrate.csproj", "{DE7B28E0-F1BB-45B9-9C73-691EAE8F1A60}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Migrate", "..\..\generated\Migrate\Migrate.Autorest\Az.Migrate.csproj", "{FAFE008D-FA78-416B-A6B1-070CE9A3ABF9}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {1847EC8D-87A5-4772-9E75-1DEA1DC531EE}.Release|x64.Build.0 = Release|Any CPU {1847EC8D-87A5-4772-9E75-1DEA1DC531EE}.Release|x86.ActiveCfg = Release|Any CPU {1847EC8D-87A5-4772-9E75-1DEA1DC531EE}.Release|x86.Build.0 = Release|Any CPU - {DE7B28E0-F1BB-45B9-9C73-691EAE8F1A60}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DE7B28E0-F1BB-45B9-9C73-691EAE8F1A60}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DE7B28E0-F1BB-45B9-9C73-691EAE8F1A60}.Debug|x64.ActiveCfg = Debug|Any CPU - {DE7B28E0-F1BB-45B9-9C73-691EAE8F1A60}.Debug|x64.Build.0 = Debug|Any CPU - {DE7B28E0-F1BB-45B9-9C73-691EAE8F1A60}.Debug|x86.ActiveCfg = Debug|Any CPU - {DE7B28E0-F1BB-45B9-9C73-691EAE8F1A60}.Debug|x86.Build.0 = Debug|Any CPU - {DE7B28E0-F1BB-45B9-9C73-691EAE8F1A60}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DE7B28E0-F1BB-45B9-9C73-691EAE8F1A60}.Release|Any CPU.Build.0 = Release|Any CPU - {DE7B28E0-F1BB-45B9-9C73-691EAE8F1A60}.Release|x64.ActiveCfg = Release|Any CPU - {DE7B28E0-F1BB-45B9-9C73-691EAE8F1A60}.Release|x64.Build.0 = Release|Any CPU - {DE7B28E0-F1BB-45B9-9C73-691EAE8F1A60}.Release|x86.ActiveCfg = Release|Any CPU - {DE7B28E0-F1BB-45B9-9C73-691EAE8F1A60}.Release|x86.Build.0 = Release|Any CPU + {FAFE008D-FA78-416B-A6B1-070CE9A3ABF9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FAFE008D-FA78-416B-A6B1-070CE9A3ABF9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FAFE008D-FA78-416B-A6B1-070CE9A3ABF9}.Debug|x64.ActiveCfg = Debug|Any CPU + {FAFE008D-FA78-416B-A6B1-070CE9A3ABF9}.Debug|x64.Build.0 = Debug|Any CPU + {FAFE008D-FA78-416B-A6B1-070CE9A3ABF9}.Debug|x86.ActiveCfg = Debug|Any CPU + {FAFE008D-FA78-416B-A6B1-070CE9A3ABF9}.Debug|x86.Build.0 = Debug|Any CPU + {FAFE008D-FA78-416B-A6B1-070CE9A3ABF9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FAFE008D-FA78-416B-A6B1-070CE9A3ABF9}.Release|Any CPU.Build.0 = Release|Any CPU + {FAFE008D-FA78-416B-A6B1-070CE9A3ABF9}.Release|x64.ActiveCfg = Release|Any CPU + {FAFE008D-FA78-416B-A6B1-070CE9A3ABF9}.Release|x64.Build.0 = Release|Any CPU + {FAFE008D-FA78-416B-A6B1-070CE9A3ABF9}.Release|x86.ActiveCfg = Release|Any CPU + {FAFE008D-FA78-416B-A6B1-070CE9A3ABF9}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {FB2B969F-E6FB-4E6E-9D2A-E52F4F53F51F} = {2D0176AD-AE30-4235-9D62-17043F0D4CD8} {D8D28132-CE20-45C8-8476-6B88C891D945} = {2D0176AD-AE30-4235-9D62-17043F0D4CD8} {B799EA2F-9E28-421A-9301-BB061C6ADDC2} = {2D0176AD-AE30-4235-9D62-17043F0D4CD8} - {DE7B28E0-F1BB-45B9-9C73-691EAE8F1A60} = {9AA2C35A-2264-B74D-8556-EB72BD88EE60} + {FAFE008D-FA78-416B-A6B1-070CE9A3ABF9} = {9AA2C35A-2264-B74D-8556-EB72BD88EE60} EndGlobalSection EndGlobal diff --git a/src/Migrate/Migrate/Az.Migrate.psd1 b/src/Migrate/Migrate/Az.Migrate.psd1 index 7d23b5119c9a..690cfd2416f1 100644 --- a/src/Migrate/Migrate/Az.Migrate.psd1 +++ b/src/Migrate/Migrate/Az.Migrate.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 7/30/2025 +# Generated on: 9/9/2025 # @{ @@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.2.0'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.3.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Migrate.Autorest/bin/Az.Migrate.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'Migrate.Autorest/Az.Migrate.format.ps1xml' @@ -123,7 +123,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','Migrate' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Migrate' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -152,7 +152,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/Migrate/Migrate/ChangeLog.md b/src/Migrate/Migrate/ChangeLog.md index a5c9dd5164c4..c7ca86b815b1 100644 --- a/src/Migrate/Migrate/ChangeLog.md +++ b/src/Migrate/Migrate/ChangeLog.md @@ -25,6 +25,7 @@ * Removed `-TargetStoragePathId` parameter from command `New-AzMigrateLocalDiskMappingObject` until the feature to associate each disk to their own storage container path is supported. * Added `-SourceApplianceName` and `-TargetApplianceName` as required parameters to command `New-AzMigrateLocalServerReplication` to allow users to specify appliance pairs of their choosing. * Enhanced resource validations in `Initialize-AzMigrateLocalReplicationInfrastructure` and `New-AzMigrateLocalServerReplication`. +* Enhanced Get-AzMigrateServerMigrationStatus to add support for the -Expedite parameter. ## Version 2.8.0 * Implemented the Get-AzMigrateServerMigrationStatus cmdlet to retrieve the replication status of servers in Azure Migrate. diff --git a/src/Migrate/Migrate/help/Az.Migrate.md b/src/Migrate/Migrate/help/Az.Migrate.md index f66f1a154efc..efa9a16d290d 100644 --- a/src/Migrate/Migrate/help/Az.Migrate.md +++ b/src/Migrate/Migrate/help/Az.Migrate.md @@ -63,7 +63,7 @@ Gets a solution in the migrate project. Initializes the infrastructure for the migrate project. ### [Initialize-AzMigrateReplicationInfrastructure](Initialize-AzMigrateReplicationInfrastructure.md) -Initializes the infrastructure for the migrate project. +Initialises the infrastructure for the migrate project. ### [New-AzMigrateDiskMapping](New-AzMigrateDiskMapping.md) Creates a new disk mapping diff --git a/src/Migrate/Migrate/help/Get-AzMigrateDiscoveredServer.md b/src/Migrate/Migrate/help/Get-AzMigrateDiscoveredServer.md index 3a1f58858b40..5f52e5cfe032 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateDiscoveredServer.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateDiscoveredServer.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratediscoveredserver schema: 2.0.0 @@ -15,27 +15,29 @@ Get All discovered servers in a migrate project. ### List (Default) ``` Get-AzMigrateDiscoveredServer -ProjectName -ResourceGroupName [-DisplayName ] - [-SourceMachineType ] [-SubscriptionId ] [-Confirm] [-WhatIf] [] + [-SourceMachineType ] [-SubscriptionId ] [-WhatIf] + [-Confirm] [] ``` -### Get +### ListInSite ``` -Get-AzMigrateDiscoveredServer -Name -ProjectName -ResourceGroupName - [-SourceMachineType ] [-SubscriptionId ] [-Confirm] [-WhatIf] [] +Get-AzMigrateDiscoveredServer -ProjectName -ResourceGroupName [-DisplayName ] + [-SourceMachineType ] [-SubscriptionId ] -ApplianceName + [-WhatIf] [-Confirm] [] ``` -### GetInSite +### Get ``` -Get-AzMigrateDiscoveredServer -ApplianceName -Name -ProjectName - -ResourceGroupName [-SourceMachineType ] [-SubscriptionId ] [-Confirm] [-WhatIf] +Get-AzMigrateDiscoveredServer -ProjectName -ResourceGroupName [-SourceMachineType ] + [-SubscriptionId ] -Name [-WhatIf] [-Confirm] [] ``` -### ListInSite +### GetInSite ``` -Get-AzMigrateDiscoveredServer -ApplianceName -ProjectName -ResourceGroupName - [-DisplayName ] [-SourceMachineType ] [-SubscriptionId ] [-Confirm] [-WhatIf] - [] +Get-AzMigrateDiscoveredServer -ProjectName -ResourceGroupName [-SourceMachineType ] + [-SubscriptionId ] -Name -ApplianceName + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -61,7 +63,6 @@ idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3_5029c9aa-3c idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3_5029dabc-cc94-780f-76fd-e39acb0e9dce Microsoft.OffAzure/VMwareSites/machines idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3_50299579-fc18-4152-ade2-c4a57946f72b Microsoft.OffAzure/VMwareSites/machines idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3_5029cc18-efdc-7315-3b09-9d12a0f337e2 Microsoft.OffAzure/VMwareSites/machines - ``` Get All servers in a migrate project. @@ -75,7 +76,6 @@ Get-AzMigrateDiscoveredServer -Name idclab-a360-fareast-corp-micros-86617dcf-eff Name Typeo… ---- ----o… idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3_5029e62c-31d2-a6c3-5316-aa39f47c49fc Microsoft.OffAzure/VMwareSites/machines - ``` Get a server in a migrate project by name. @@ -99,7 +99,6 @@ idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3_5029c9aa-3c idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3_5029dabc-cc94-780f-76fd-e39acb0e9dce Microsoft.OffAzure/VMwareSites/machines idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3_50299579-fc18-4152-ade2-c4a57946f72b Microsoft.OffAzure/VMwareSites/machines idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3_5029cc18-efdc-7315-3b09-9d12a0f337e2 Microsoft.OffAzure/VMwareSites/machines - ``` List all servers for an appliance in a project. @@ -113,7 +112,6 @@ Get-AzMigrateDiscoveredServer -Name idclab-a360-fareast-corp-micros-86617dcf-eff Name Typeo… ---- ----o… idclab-a360-fareast-corp-micros-86617dcf-effe-59ad-8c3a-cdd3ea7300d3_5029e62c-31d2-a6c3-5316-aa39f47c49fc Microsoft.OffAzure/VMwareSites/machines - ``` Get a server for an appliance in a project. @@ -134,7 +132,6 @@ ContosoAppSrv2 10-150-8-52-b090bef3-b733-5e34-bc8f-eb6f2701432a_5 ContosoCSASR 10-150-8-52-b090bef3-b733-5e34-bc8f-eb6f2701432a_50096b80-7061-672c-8db0-07ee41212869 Microsoft.OffAzure/VMwareSites/machines ContosoVMwareMigration2 10-150-8-52-b090bef3-b733-5e34-bc8f-eb6f2701432a_50099d31-71d5-2bd1-fada-8c4eba2f279a Microsoft.OffAzure/VMwareSites/machines ContosoAppSrv1 10-150-8-52-b090bef3-b733-5e34-bc8f-eb6f2701432a_50097d3f-c1f6-9217-825c-936db54043df Microsoft.OffAzure/VMwareSites/machines - ``` List servers in a migrate project and filter responses with display name. @@ -184,7 +181,7 @@ This internally maps to a site. ```yaml Type: System.String -Parameter Sets: GetInSite, ListInSite +Parameter Sets: ListInSite, GetInSite Aliases: Required: True @@ -332,4 +329,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Get-AzMigrateJob.md b/src/Migrate/Migrate/help/Get-AzMigrateJob.md index 7a7760dfac4d..e3adbfcf7ef4 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateJob.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateJob.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratejob schema: 2.0.0 @@ -14,30 +14,31 @@ Retrieves the status of an Azure Migrate job. ### ListByName (Default) ``` -Get-AzMigrateJob -ProjectName -ResourceGroupName [-SubscriptionId ] +Get-AzMigrateJob -ResourceGroupName -ProjectName [-SubscriptionId ] [-Filter ] [-DefaultProfile ] [] ``` -### GetById +### GetByName ``` -Get-AzMigrateJob -JobID [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzMigrateJob -ResourceGroupName -ProjectName [-SubscriptionId ] -JobName + [-DefaultProfile ] [] ``` -### GetByInputObject +### GetById ``` -Get-AzMigrateJob -InputObject [-SubscriptionId ] [-DefaultProfile ] +Get-AzMigrateJob [-SubscriptionId ] -JobID [-DefaultProfile ] [] ``` -### GetByName +### GetByInputObject ``` -Get-AzMigrateJob -JobName -ProjectName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzMigrateJob [-SubscriptionId ] -InputObject [-DefaultProfile ] + [] ``` ### ListById ``` -Get-AzMigrateJob -ProjectID -ResourceGroupID [-SubscriptionId ] [-Filter ] +Get-AzMigrateJob [-SubscriptionId ] -ResourceGroupID -ProjectID [-Filter ] [-DefaultProfile ] [] ``` @@ -48,7 +49,7 @@ The Get-AzMigrateJob cmdlet retrieves the status of an Azure Migrate job. ### Example 1: Get By Job Id ```powershell -Get-AzMigrateJob -JobID "/Subscriptions/xxx-xxx-xxx/resourceGroups/azmigratepwshtestasr13072020/providers/Microsoft.RecoveryServices/vaults/AzMigrateTestProjectPWSH02aarsvault/replicationJobs/997e2a92-5afe-49c7-a81a-89660aec9b7b" +Get-AzMigrateJob -JobID "/Subscriptions/xxx-xxx-xxx/resourceGroups/azmigratepwshtestasr13072020/providers/Microsoft.RecoveryServices/vaults/AzMigrateTestProjectPWSH02aarsvault/replicationJobs/997e2a92-5afe-49c7-a81a-89660aec9b7b" ``` ```output @@ -158,7 +159,7 @@ OData filter options. ```yaml Type: System.String -Parameter Sets: ListById, ListByName +Parameter Sets: ListByName, ListById Aliases: Required: False @@ -234,7 +235,7 @@ The name of the migrate project. ```yaml Type: System.String -Parameter Sets: GetByName, ListByName +Parameter Sets: ListByName, GetByName Aliases: Required: True @@ -264,7 +265,7 @@ The name of the resource group where the recovery services vault is present. ```yaml Type: System.String -Parameter Sets: GetByName, ListByName +Parameter Sets: ListByName, GetByName Aliases: Required: True @@ -301,4 +302,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Get-AzMigrateLocalJob.md b/src/Migrate/Migrate/help/Get-AzMigrateLocalJob.md index fc4f9b8c0ed2..147526d5592a 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateLocalJob.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateLocalJob.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratelocaljob schema: 2.0.0 @@ -14,31 +14,31 @@ Retrieves the status of an Azure Migrate job. ### ListByName (Default) ``` -Get-AzMigrateLocalJob -ProjectName -ResourceGroupName [-SubscriptionId ] +Get-AzMigrateLocalJob -ResourceGroupName -ProjectName [-SubscriptionId ] [-DefaultProfile ] [] ``` -### GetById +### GetByName ``` -Get-AzMigrateLocalJob -ID [-SubscriptionId ] [-DefaultProfile ] - [] +Get-AzMigrateLocalJob -ResourceGroupName -ProjectName [-SubscriptionId ] + -Name [-DefaultProfile ] [] ``` -### GetByInputObject +### GetById ``` -Get-AzMigrateLocalJob -InputObject [-SubscriptionId ] [-DefaultProfile ] +Get-AzMigrateLocalJob [-SubscriptionId ] -ID [-DefaultProfile ] [] ``` -### GetByName +### GetByInputObject ``` -Get-AzMigrateLocalJob -Name -ProjectName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzMigrateLocalJob [-SubscriptionId ] -InputObject [-DefaultProfile ] + [] ``` ### ListById ``` -Get-AzMigrateLocalJob -ProjectID -ResourceGroupID [-SubscriptionId ] +Get-AzMigrateLocalJob [-SubscriptionId ] -ResourceGroupID -ProjectID [-DefaultProfile ] [] ``` @@ -384,7 +384,7 @@ The name of the migrate project. ```yaml Type: System.String -Parameter Sets: GetByName, ListByName +Parameter Sets: ListByName, GetByName Aliases: Required: True @@ -414,7 +414,7 @@ The name of the resource group where the recovery services vault is present. ```yaml Type: System.String -Parameter Sets: GetByName, ListByName +Parameter Sets: ListByName, GetByName Aliases: Required: True @@ -453,4 +453,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Get-AzMigrateLocalReplicationFabric.md b/src/Migrate/Migrate/help/Get-AzMigrateLocalReplicationFabric.md index 3f8a2170a51b..7ca42f588f2b 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateLocalReplicationFabric.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateLocalReplicationFabric.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratelocalreplicationfabric schema: 2.0.0 @@ -24,16 +24,17 @@ Get-AzMigrateLocalReplicationFabric -Name -ResourceGroupName [ [-DefaultProfile ] [] ``` -### GetViaIdentity +### List1 ``` -Get-AzMigrateLocalReplicationFabric -InputObject [-DefaultProfile ] +Get-AzMigrateLocalReplicationFabric -ResourceGroupName [-SubscriptionId ] + [-ContinuationToken ] [-DefaultProfile ] [] ``` -### List1 +### GetViaIdentity ``` -Get-AzMigrateLocalReplicationFabric -ResourceGroupName [-SubscriptionId ] - [-ContinuationToken ] [-DefaultProfile ] [] +Get-AzMigrateLocalReplicationFabric -InputObject [-DefaultProfile ] + [] ``` ## DESCRIPTION @@ -240,7 +241,7 @@ Azure Subscription Id in which migrate project was created. ```yaml Type: System.String[] -Parameter Sets: Get, List, List1 +Parameter Sets: List, Get, List1 Aliases: Required: False @@ -264,4 +265,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Get-AzMigrateLocalServerReplication.md b/src/Migrate/Migrate/help/Get-AzMigrateLocalServerReplication.md index 88ee8137805e..f3f571b32d30 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateLocalServerReplication.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateLocalServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratelocalserverreplication schema: 2.0.0 @@ -14,37 +14,39 @@ Retrieves the details of the replicating server. ### ListByName (Default) ``` -Get-AzMigrateLocalServerReplication -ProjectName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzMigrateLocalServerReplication -ResourceGroupName -ProjectName + [-SubscriptionId ] [-DefaultProfile ] + [] ``` -### GetByInputObject +### GetByMachineName ``` -Get-AzMigrateLocalServerReplication -InputObject [-SubscriptionId ] - [-DefaultProfile ] [] +Get-AzMigrateLocalServerReplication -ResourceGroupName -ProjectName + [-SubscriptionId ] -MachineName [-DefaultProfile ] + [] ``` ### GetByItemID ``` -Get-AzMigrateLocalServerReplication -TargetObjectID [-SubscriptionId ] +Get-AzMigrateLocalServerReplication [-SubscriptionId ] -TargetObjectID [-DefaultProfile ] [] ``` -### GetByMachineName +### GetBySDSID ``` -Get-AzMigrateLocalServerReplication -MachineName -ProjectName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzMigrateLocalServerReplication [-SubscriptionId ] -DiscoveredMachineId + [-DefaultProfile ] [] ``` -### GetBySDSID +### GetByInputObject ``` -Get-AzMigrateLocalServerReplication -DiscoveredMachineId [-SubscriptionId ] +Get-AzMigrateLocalServerReplication [-SubscriptionId ] -InputObject [-DefaultProfile ] [] ``` ### ListById ``` -Get-AzMigrateLocalServerReplication -ProjectID -ResourceGroupID [-SubscriptionId ] +Get-AzMigrateLocalServerReplication [-SubscriptionId ] -ResourceGroupID -ProjectID [-DefaultProfile ] [] ``` @@ -75,8 +77,7 @@ Get by id. ### Example 2: Get detail by discovered machine id ```powershell -Get-AzMigrateLocalServerReplication -DiscoveredMachineId "/subscriptions/xxx-xxx-xxx/resourceGroups/test-rg/providers/Microsoft.OffAzure/HyperVSites/siteName1/machines/503a4f02-916c-d6b0-8d14-222bbd4767e5" - +Get-AzMigrateLocalServerReplication -DiscoveredMachineId "/subscriptions/xxx-xxx-xxx/resourceGroups/test-rg/providers/Microsoft.OffAzure/HyperVSites/siteName1/machines/503a4f02-916c-d6b0-8d14-222bbd4767e5" ``` ```output @@ -100,7 +101,6 @@ Get-AzMigrateServerReplication -ResourceGroupName testResourceGroup -ProjectName ``` ```output - Id : /subscriptions/xxx-xxx-xxx/resourceGroups/test-rg/providers/Microsoft.DataReplication/replicationVaults/proj62434replicationvault/protectedItems/503a4f02-916c-d6b0-8d14-222bbd4767e5 Name : 503a4f02-916c-d6b0-8d14-222bbd4767e5 Property : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20240901.ProtectedItemModelProperties @@ -209,7 +209,7 @@ Specifies the Azure Migrate project in the current subscription. ```yaml Type: System.String -Parameter Sets: GetByMachineName, ListByName +Parameter Sets: ListByName, GetByMachineName Aliases: Required: True @@ -239,7 +239,7 @@ Specifies the Resource Group of the Azure Migrate Project in the current subscri ```yaml Type: System.String -Parameter Sets: GetByMachineName, ListByName +Parameter Sets: ListByName, GetByMachineName Aliases: Required: True @@ -293,4 +293,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Get-AzMigrateProject.md b/src/Migrate/Migrate/help/Get-AzMigrateProject.md index 3c5bf9e8daab..9e1ddefa8044 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateProject.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateProject.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigrateproject schema: 2.0.0 @@ -110,4 +110,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Get-AzMigrateReplicationFabric.md b/src/Migrate/Migrate/help/Get-AzMigrateReplicationFabric.md index 2fbd1c45a117..a01397675cab 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateReplicationFabric.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateReplicationFabric.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationfabric schema: 2.0.0 @@ -20,8 +20,9 @@ Get-AzMigrateReplicationFabric -ResourceGroupName -ResourceName -ResourceGroupName -ResourceName - [-SubscriptionId ] [-Filter ] [-DefaultProfile ] [] +Get-AzMigrateReplicationFabric -ResourceGroupName -ResourceName -FabricName + [-SubscriptionId ] [-Filter ] [-DefaultProfile ] + [] ``` ## DESCRIPTION @@ -190,4 +191,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Get-AzMigrateReplicationPolicy.md b/src/Migrate/Migrate/help/Get-AzMigrateReplicationPolicy.md index 530d4cf81977..070b3657187e 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateReplicationPolicy.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateReplicationPolicy.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationpolicy schema: 2.0.0 @@ -20,8 +20,9 @@ Get-AzMigrateReplicationPolicy -ResourceGroupName -ResourceName -ResourceGroupName -ResourceName - [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzMigrateReplicationPolicy -ResourceGroupName -ResourceName -PolicyName + [-SubscriptionId ] [-DefaultProfile ] + [] ``` ## DESCRIPTION @@ -148,4 +149,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainer.md b/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainer.md index 38701af05381..5da18942a68e 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainer.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainer.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationprotectioncontainer schema: 2.0.0 @@ -15,20 +15,22 @@ Gets the details of a protection container. ### List1 (Default) ``` Get-AzMigrateReplicationProtectionContainer -ResourceGroupName -ResourceName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] + [] ``` -### Get +### List ``` -Get-AzMigrateReplicationProtectionContainer -FabricName -ProtectionContainerName - -ResourceGroupName -ResourceName [-SubscriptionId ] [-DefaultProfile ] +Get-AzMigrateReplicationProtectionContainer -ResourceGroupName -ResourceName + -FabricName [-SubscriptionId ] [-DefaultProfile ] [] ``` -### List +### Get ``` -Get-AzMigrateReplicationProtectionContainer -FabricName -ResourceGroupName - -ResourceName [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzMigrateReplicationProtectionContainer -ResourceGroupName -ResourceName + -FabricName -ProtectionContainerName [-SubscriptionId ] + [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -85,7 +87,7 @@ Fabric name. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -167,4 +169,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainerMapping.md b/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainerMapping.md index e782988ad205..e7269d2a1231 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainerMapping.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainerMapping.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationprotectioncontainermapping schema: 2.0.0 @@ -15,21 +15,22 @@ Gets the details of a protection container mapping. ### List1 (Default) ``` Get-AzMigrateReplicationProtectionContainerMapping -ResourceGroupName -ResourceName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] + [] ``` -### Get +### List ``` -Get-AzMigrateReplicationProtectionContainerMapping -FabricName -MappingName - -ProtectionContainerName -ResourceGroupName -ResourceName - [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzMigrateReplicationProtectionContainerMapping -ResourceGroupName -ResourceName + -FabricName -ProtectionContainerName [-SubscriptionId ] + [-DefaultProfile ] [] ``` -### List +### Get ``` -Get-AzMigrateReplicationProtectionContainerMapping -FabricName -ProtectionContainerName - -ResourceGroupName -ResourceName [-SubscriptionId ] [-DefaultProfile ] - [] +Get-AzMigrateReplicationProtectionContainerMapping -ResourceGroupName -ResourceName + -FabricName -MappingName -ProtectionContainerName [-SubscriptionId ] + [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -73,7 +74,7 @@ Fabric name. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -103,7 +104,7 @@ Protection container name. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -170,4 +171,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Get-AzMigrateReplicationRecoveryServicesProvider.md b/src/Migrate/Migrate/help/Get-AzMigrateReplicationRecoveryServicesProvider.md index b03a9f553907..b2d57a52b362 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateReplicationRecoveryServicesProvider.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateReplicationRecoveryServicesProvider.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationrecoveryservicesprovider schema: 2.0.0 @@ -15,13 +15,14 @@ Gets the details of registered recovery services provider. ### List (Default) ``` Get-AzMigrateReplicationRecoveryServicesProvider -ResourceGroupName -ResourceName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] + [] ``` ### Get ``` -Get-AzMigrateReplicationRecoveryServicesProvider -FabricName -ProviderName - -ResourceGroupName -ResourceName [-SubscriptionId ] [-DefaultProfile ] +Get-AzMigrateReplicationRecoveryServicesProvider -ResourceGroupName -ResourceName + -FabricName -ProviderName [-SubscriptionId ] [-DefaultProfile ] [] ``` @@ -148,4 +149,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Get-AzMigrateRunAsAccount.md b/src/Migrate/Migrate/help/Get-AzMigrateRunAsAccount.md index f36b5737a2d8..110295c2b3ba 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateRunAsAccount.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateRunAsAccount.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigraterunasaccount schema: 2.0.0 @@ -20,8 +20,9 @@ Get-AzMigrateRunAsAccount -ResourceGroupName -SiteName [-Subsc ### Get ``` -Get-AzMigrateRunAsAccount -AccountName -ResourceGroupName -SiteName - [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzMigrateRunAsAccount -ResourceGroupName -SiteName -AccountName + [-SubscriptionId ] [-DefaultProfile ] + [] ``` ## DESCRIPTION @@ -146,4 +147,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Get-AzMigrateServerMigrationStatus.md b/src/Migrate/Migrate/help/Get-AzMigrateServerMigrationStatus.md index 68ebb9d23196..cf149d025072 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateServerMigrationStatus.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateServerMigrationStatus.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigrateservermigrationstatus schema: 2.0.0 @@ -14,27 +14,35 @@ Retrieves the details of the replicating server status. ### ListByName (Default) ``` -Get-AzMigrateServerMigrationStatus -ProjectName -ResourceGroupName - [-SubscriptionId ] [-Filter ] [-SkipToken ] [-DefaultProfile ] +Get-AzMigrateServerMigrationStatus -ResourceGroupName -ProjectName [-SubscriptionId ] + [-Filter ] [-SkipToken ] [-DefaultProfile ] [] ``` -### GetByApplianceName +### GetByMachineName ``` -Get-AzMigrateServerMigrationStatus -ApplianceName -ProjectName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzMigrateServerMigrationStatus -ResourceGroupName -ProjectName [-SubscriptionId ] + -MachineName [-DefaultProfile ] [] ``` -### GetByMachineName +### GetHealthByMachineName ``` -Get-AzMigrateServerMigrationStatus -MachineName -ProjectName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzMigrateServerMigrationStatus -ResourceGroupName -ProjectName [-SubscriptionId ] + -MachineName [-Health] [-DefaultProfile ] + [] ``` -### GetHealthByMachineName +### GetByPrioritiseServer ``` -Get-AzMigrateServerMigrationStatus -Health -MachineName -ProjectName - -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzMigrateServerMigrationStatus -ResourceGroupName -ProjectName [-SubscriptionId ] + -MachineName [-Expedite] [-DefaultProfile ] + [] +``` + +### GetByApplianceName +``` +Get-AzMigrateServerMigrationStatus -ResourceGroupName -ProjectName [-SubscriptionId ] + -ApplianceName [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -44,14 +52,15 @@ The Get-AzMigrateServerMigrationStatus cmdlet retrieves the replication status f ### Example 1: List status by project name. ```powershell -Get-AzMigrateServerMigrationStatus -ResourceGroupName cbtpvtrg -ProjectName migpvt +Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" ``` ```output -Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed Health LastSync Datastore ---------- ------ ----- -------- ----------- ------------- ----------- ------ -------- --------- -migpvt CVM-Win2019 DeltaReplication Completed - - - - Normal 12/7/2023, 11:18:07 AM Shared_1TB, datastore1 -migpvt CVM-Win2022 DeltaReplication Completed - - - - Normal 12/7/2023, 10:41:42 AM datastore1 +Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed Health LastSync Datastore ESXiHost +--------- ------ ----- -------- ----------- ------------- ----------- ------ -------- --------- -------- +nosbm-test-ds el41-r5w12r1-3 InitialReplication InProgress 48 % 3 hr 48 min 12 hr 37 min 1230 Mbps Normal - IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 +nosbm-test-ds el41-r5w2k8r2-1 DeltaReplication Completed - - - - Normal 9/4/2025, 3:04:45 PM IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 +nosbm-test-ds dsinha-cbt-test DeltaReplication Completed - - - - Normal 9/4/2025, 2:58:21 PM IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 @@ -64,44 +73,102 @@ Get by project name. ### Example 2: List status by machine name. ```powershell -Get-AzMigrateServerMigrationStatus -ProjectName "migpvt-ecyproj" -ResourceGroupName "cbtprivatestamprg" -MachineName "CVM-Win2019" +Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -MachineName "Rhel8-Vm" ``` ```output -Server CVM-Win2019 is currently healthy. +Server Rhel8-Vm is currently healthy. + +Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed LastSync ESXiHost Datastore +--------- ------ ----- -------- ----------- ------------- ----------- -------- -------- --------- +cbtresyncgql Rhel8-Vm DeltaReplication Completed - - - - 7/14/2025, 9:51:05 PM idclab-vcen8.fareast.corp.microsoft.com_10.150.102.181 IDCLAB-B161-3TB -Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed LastSync Datastore ---------- ------ ----- -------- ----------- ------------- ----------- -------- --------- -migpvt CVM-Win2019 DeltaReplication Completed - - - - 12/7/2023, 11:18:07 AM Shared_1TB, datastore1 +Disk Level Operation Status: -Disk State Progress TimeElapsed TimeRemaining UploadSpeed Datastore ----- ----- -------- ----------- ------------- ----------- --------- -TestVM DeltaReplication Completed - - - - Shared_1TB -CVM-Win2019 DeltaReplication Completed - - - - datastore1 +Disk State Progress TimeElapsed TimeRemaining UploadSpeed Datastore +---- ----- -------- ----------- ------------- ----------- --------- +Rhel8-Vm DeltaReplication Completed - - - - IDCLAB-B161-3TB ``` Get by machine name. -### Example 2: List status by appliance name. +### Example 3: List status by appliance name. ```powershell -Get-AzMigrateServerMigrationStatus -ProjectName "migpvt-ecyproj" -ResourceGroupName "cbtprivatestamprg" -ApplianceName "migpvt" +Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -ApplianceName "cbtresyncgql" ``` ```output -Server State Progress TimeElapsed TimeRemaining UploadSpeed Health LastSync Datastore ------- ----- -------- ----------- ------------- ----------- ------ -------- --------- -CVM-Win2019 DeltaReplication Completed - - - - Normal 12/7/2023, 11:18:07 AM Shared_1TB, datastore1 -CVM-Win2022 DeltaReplication Completed - - - - Normal 12/7/2023, 10:41:42 AM datastore1 +Server State Progress TimeElapsed TimeRemaining UploadSpeed Health LastSync Datastore ESXiHost +------ ----- -------- ----------- ------------- ----------- ------ -------- --------- -------- +el41-r5w12r1-3 InitialReplication InProgress 48 % 3 hr 48 min 12 hr 37 min 1230 Mbps Normal - IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 +el41-r5w2k8r2-1 DeltaReplication Completed - - - - Normal 9/4/2025, 3:04:45 PM IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 +dsinha-cbt-test DeltaReplication Completed - - - - Normal 9/4/2025, 2:58:21 PM IDCLAB-T100_10TB idclab-vcen65.corp.microsoft.com_10.150.84.28 +To check expedite the operation of a server use the command +Get-AzMigrateServerMigrationStatus -ProjectName -ResourceGroupName -MachineName -Expedite + To resolve the health issue use the command Get-AzMigrateServerMigrationStatus -ProjectName -ResourceGroupName -MachineName -Health ``` Get by appliance name. +### Example 4: Expedite replication for a server. +```powershell +Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -MachineName "Rhel8-Vm" -Expedite +``` + +```output +Server Information: + +Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed LastSync ESXiHost Datastore +--------- ------ ----- -------- ----------- ------------- ----------- -------- -------- --------- +cbtresyncgql Rhel8-Vm DeltaReplication Completed - - - - 7/14/2025, 9:51:05 PM idclab-vcen8.fareast.corp.microsoft.com_10.150.102.181 IDCLAB-B161-3TB + + + +Disk Level Operation Status: + +Disk State Progress TimeElapsed TimeRemaining UploadSpeed Datastore +---- ----- -------- ----------- ------------- ----------- --------- +Rhel8-Vm DeltaReplication Completed - - - - IDCLAB-B161-3TB + + +Resource Sharing: + +The following VMs share at least one resource (Appliance, ESXi Host, or Datastore) with VM 'Rhel8-Vm'. The 'SharedResourceType' and 'SharedResourceName' columns indicate which resource is shared. + +Appliance Server SharedResourceType State TimeRemaining ESXiHost Datastore +--------- ------ ------------------ ----- ------------- -------- --------- +cbtresyncgql wave-selfhost-vm8 Appliance DeltaReplication Completed - idclab-vcen8.fareast.corp.microsoft.com_10.150.102.191 Shared_1TB +cbtresyncgql el41-r5w12r2-1 Appliance DeltaReplication Completed - idclab-vcen65.corp.microsoft.com_10.150.84.28 IDCLAB-T100_10TB +cbtresyncgql el41-r5w2k8r2-1 Appliance DeltaReplication Completed - idclab-vcen65.corp.microsoft.com_10.150.84.28 IDCLAB-T100_10TB +cbtresyncgql el41-r5w12r1-2 Appliance DeltaReplication Completed - idclab-vcen65.corp.microsoft.com_10.150.84.28 IDCLAB-T100_10TB +cbtresyncgql ubuntu22-liverserver-bios-nolvm Appliance, ESXiHost, Datastore DeltaReplication Completed - idclab-vcen8.fareast.corp.microsoft.com_10.150.102.181 IDCLAB-B161-3TB + + +Resource utilization information for migration operations: + +Resource Capacity Utilization for server migrations Total utilization Status +-------- -------- --------------------------------- ----------------- ------ +Appliance RAM Sum : Primary and scale out appliances 32768 MB 1808 MB 7014 MB Underutilized +Appliance CPU Sum : Primary and scale out appliances 4 Cores - 99% At capacity +Network bandwidth Sum : Primary and scale out appliances 1192 MBps - - Underutilized +ESXi host NFC buffer 32 MB 8 MB - Underutilized +Parallel Disks Replicated Sum : Primary and scale out appliances 58 3 - Underutilized +Datastore 'IDCLAB-B161-3TB' Snapshot Count 15 2 - Underutilized + + +Based on the resource utilization seen above, here are suggestions to expedite server Rhel8-Vm migration: + +1. CPU is At capacity. Pause or stop other migrations under this appliance, or increase CPU resources if possible. +``` + +Expedite replication for a specific server. + ## PARAMETERS ### -ApplianceName @@ -134,6 +201,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Expedite +Specifies whether to expedite the operation of a replicating server. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: GetByPrioritiseServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Filter OData filter options. @@ -165,12 +247,11 @@ Accept wildcard characters: False ``` ### -MachineName -[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] - Specifies the display name of the replicating machine. +Specifies the display name of the replicating machine. ```yaml Type: System.String -Parameter Sets: GetByMachineName, GetHealthByMachineName +Parameter Sets: GetByMachineName, GetHealthByMachineName, GetByPrioritiseServer Aliases: Required: True @@ -181,8 +262,7 @@ Accept wildcard characters: False ``` ### -ProjectName -[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] - Specifies the Azure Migrate project in the current subscription. +Specifies the Azure Migrate project in the current subscription. ```yaml Type: System.String @@ -197,8 +277,7 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] - Specifies the Resource Group of the Azure Migrate Project in the current subscription. +Specifies the Resource Group of the Azure Migrate Project in the current subscription. ```yaml Type: System.String @@ -254,4 +333,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Get-AzMigrateServerReplication.md b/src/Migrate/Migrate/help/Get-AzMigrateServerReplication.md index 832fe8866243..89a2b5b68492 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigrateserverreplication schema: 2.0.0 @@ -14,38 +14,40 @@ Retrieves the details of the replicating server. ### ListByName (Default) ``` -Get-AzMigrateServerReplication -ProjectName -ResourceGroupName [-SubscriptionId ] - [-Filter ] [-SkipToken ] [-DefaultProfile ] [] +Get-AzMigrateServerReplication -ResourceGroupName -ProjectName [-SubscriptionId ] + [-Filter ] [-SkipToken ] [-DefaultProfile ] + [] ``` -### GetByInputObject +### GetByMachineName ``` -Get-AzMigrateServerReplication -InputObject [-SubscriptionId ] - [-DefaultProfile ] [] +Get-AzMigrateServerReplication -ResourceGroupName -ProjectName [-SubscriptionId ] + -MachineName [-DefaultProfile ] [] ``` -### GetByMachineName +### GetBySRSID ``` -Get-AzMigrateServerReplication -MachineName -ProjectName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzMigrateServerReplication [-SubscriptionId ] -TargetObjectID [-DefaultProfile ] + [] ``` ### GetBySDSID ``` -Get-AzMigrateServerReplication -DiscoveredMachineId [-SubscriptionId ] +Get-AzMigrateServerReplication [-SubscriptionId ] -DiscoveredMachineId [-DefaultProfile ] [] ``` -### GetBySRSID +### GetByInputObject ``` -Get-AzMigrateServerReplication -TargetObjectID [-SubscriptionId ] +Get-AzMigrateServerReplication [-SubscriptionId ] -InputObject [-DefaultProfile ] [] ``` ### ListById ``` -Get-AzMigrateServerReplication -ProjectID -ResourceGroupID [-SubscriptionId ] - [-Filter ] [-SkipToken ] [-DefaultProfile ] [] +Get-AzMigrateServerReplication [-SubscriptionId ] -ResourceGroupID -ProjectID + [-Filter ] [-SkipToken ] [-DefaultProfile ] + [] ``` ## DESCRIPTION @@ -252,7 +254,7 @@ OData filter options. ```yaml Type: System.String -Parameter Sets: ListById, ListByName +Parameter Sets: ListByName, ListById Aliases: Required: False @@ -313,7 +315,7 @@ Specifies the Azure Migrate project in the current subscription. ```yaml Type: System.String -Parameter Sets: GetByMachineName, ListByName +Parameter Sets: ListByName, GetByMachineName Aliases: Required: True @@ -343,7 +345,7 @@ Specifies the Resource Group of the Azure Migrate Project in the current subscri ```yaml Type: System.String -Parameter Sets: GetByMachineName, ListByName +Parameter Sets: ListByName, GetByMachineName Aliases: Required: True @@ -358,7 +360,7 @@ The pagination token. ```yaml Type: System.String -Parameter Sets: ListById, ListByName +Parameter Sets: ListByName, ListById Aliases: Required: False @@ -410,4 +412,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Get-AzMigrateSite.md b/src/Migrate/Migrate/help/Get-AzMigrateSite.md index 8c7266aa8535..41cd2a270d1a 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateSite.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateSite.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratesite schema: 2.0.0 @@ -31,7 +31,6 @@ Get-AzMigrateSite -SubscriptionId xxx-xxx-xxx -ResourceGroupName BugBashAVSVMwar ETag Location Name Type ---- -------- ---- ---- southeastasia BBVMwareAVScbbcsite Microsoft.OffAzure/VMwareSites - ``` Get site by name @@ -112,4 +111,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Get-AzMigrateSolution.md b/src/Migrate/Migrate/help/Get-AzMigrateSolution.md index 54a477416235..802793a79b45 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateSolution.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateSolution.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratesolution schema: 2.0.0 @@ -14,7 +14,8 @@ Gets a solution in the migrate project. ``` Get-AzMigrateSolution -MigrateProjectName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] + [] ``` ## DESCRIPTION @@ -125,4 +126,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Initialize-AzMigrateLocalReplicationInfrastructure.md b/src/Migrate/Migrate/help/Initialize-AzMigrateLocalReplicationInfrastructure.md index 0926922b75f5..26a17be0ac32 100644 --- a/src/Migrate/Migrate/help/Initialize-AzMigrateLocalReplicationInfrastructure.md +++ b/src/Migrate/Migrate/help/Initialize-AzMigrateLocalReplicationInfrastructure.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/initialize-azmigratelocalreplicationinfrastructure schema: 2.0.0 @@ -13,9 +13,10 @@ Initializes the infrastructure for the migrate project. ## SYNTAX ``` -Initialize-AzMigrateLocalReplicationInfrastructure -ProjectName -ResourceGroupName +Initialize-AzMigrateLocalReplicationInfrastructure -ResourceGroupName -ProjectName -SourceApplianceName -TargetApplianceName [-CacheStorageAccountId ] - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -214,4 +215,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Initialize-AzMigrateReplicationInfrastructure.md b/src/Migrate/Migrate/help/Initialize-AzMigrateReplicationInfrastructure.md index 32e4cc529376..5d42e6f1aa85 100644 --- a/src/Migrate/Migrate/help/Initialize-AzMigrateReplicationInfrastructure.md +++ b/src/Migrate/Migrate/help/Initialize-AzMigrateReplicationInfrastructure.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/initialize-azmigratereplicationinfrastructure schema: 2.0.0 @@ -13,9 +13,9 @@ Initialises the infrastructure for the migrate project. ## SYNTAX ``` -Initialize-AzMigrateReplicationInfrastructure -ProjectName -ResourceGroupName +Initialize-AzMigrateReplicationInfrastructure -ResourceGroupName -ProjectName -Scenario -TargetRegion [-CacheStorageAccountId ] [-SubscriptionId ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -195,4 +195,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/New-AzMigrateDiskMapping.md b/src/Migrate/Migrate/help/New-AzMigrateDiskMapping.md index ea89ddeb3edb..4c2513e11a04 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateDiskMapping.md +++ b/src/Migrate/Migrate/help/New-AzMigrateDiskMapping.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratediskmapping schema: 2.0.0 @@ -13,8 +13,8 @@ Creates a new disk mapping ## SYNTAX ``` -New-AzMigrateDiskMapping -DiskID -DiskType -IsOSDisk - [-DiskEncryptionSetID ] [] +New-AzMigrateDiskMapping -DiskID -IsOSDisk -DiskType [-DiskEncryptionSetID ] + [] ``` ## DESCRIPTION @@ -33,8 +33,6 @@ DiskEncryptionSetId DiskId DiskType IsOSDisk LogStorageAccountId LogStorageA a Standard_LRS true ``` - - ### Example 2: Make Premium V2 disks ```powershell New-AzMigrateDiskMapping -DiskID b -DiskType PremiumV2_LRS -IsOSDisk 'false' @@ -122,4 +120,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/New-AzMigrateLocalDiskMappingObject.md b/src/Migrate/Migrate/help/New-AzMigrateLocalDiskMappingObject.md index 47164f1d6be3..9d4f307b1966 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateLocalDiskMappingObject.md +++ b/src/Migrate/Migrate/help/New-AzMigrateLocalDiskMappingObject.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratelocaldiskmappingobject schema: 2.0.0 @@ -13,8 +13,8 @@ Creates a new disk mapping ## SYNTAX ``` -New-AzMigrateLocalDiskMappingObject -DiskID -Format -IsDynamic -IsOSDisk - -Size [-PhysicalSectorSize ] [] +New-AzMigrateLocalDiskMappingObject -DiskID -IsOSDisk -IsDynamic -Size + -Format [-PhysicalSectorSize ] [] ``` ## DESCRIPTION @@ -33,7 +33,7 @@ DiskId : a DiskSizeGb : 1 IsDynamic : True IsOSDisk : True -StorageContainerId : +StorageContainerId : ``` Get disk object to provide input for New-AzMigrateLocalServerReplication @@ -143,4 +143,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/New-AzMigrateLocalNicMappingObject.md b/src/Migrate/Migrate/help/New-AzMigrateLocalNicMappingObject.md index cc24799c603e..2392758d6986 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateLocalNicMappingObject.md +++ b/src/Migrate/Migrate/help/New-AzMigrateLocalNicMappingObject.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratelocalnicmappingobject schema: 2.0.0 @@ -13,8 +13,9 @@ Creates an object to update NIC properties of a replicating server. ## SYNTAX ``` -New-AzMigrateLocalNicMappingObject -NicID [-CreateAtTarget ] - [-TargetTestVirtualSwitchId ] [-TargetVirtualSwitchId ] [] +New-AzMigrateLocalNicMappingObject -NicID [-TargetVirtualSwitchId ] + [-TargetTestVirtualSwitchId ] [-CreateAtTarget ] + [] ``` ## DESCRIPTION @@ -111,4 +112,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/New-AzMigrateLocalServerReplication.md b/src/Migrate/Migrate/help/New-AzMigrateLocalServerReplication.md index 137d19b2b8ac..f560d5d3a5bc 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateLocalServerReplication.md +++ b/src/Migrate/Migrate/help/New-AzMigrateLocalServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratelocalserverreplication schema: 2.0.0 @@ -14,20 +14,22 @@ Starts replication for the specified server. ### ByIdDefaultUser (Default) ``` -New-AzMigrateLocalServerReplication -MachineId -OSDiskID -SourceApplianceName - -TargetApplianceName -TargetResourceGroupId -TargetStoragePathId - -TargetVirtualSwitchId -TargetVMName [-IsDynamicMemoryEnabled ] - [-SubscriptionId ] [-TargetTestVirtualSwitchId ] [-TargetVMCPUCore ] - [-TargetVMRam ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +New-AzMigrateLocalServerReplication -MachineId -TargetStoragePathId + -TargetResourceGroupId -TargetVMName -SourceApplianceName + -TargetApplianceName -TargetVirtualSwitchId -OSDiskID [-TargetVMCPUCore ] + [-TargetTestVirtualSwitchId ] [-IsDynamicMemoryEnabled ] [-TargetVMRam ] + [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] ``` ### ByIdPowerUser ``` -New-AzMigrateLocalServerReplication -DiskToInclude -MachineId - -NicToInclude -SourceApplianceName -TargetApplianceName - -TargetResourceGroupId -TargetStoragePathId -TargetVMName - [-IsDynamicMemoryEnabled ] [-SubscriptionId ] [-TargetVMCPUCore ] - [-TargetVMRam ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +New-AzMigrateLocalServerReplication -MachineId -TargetStoragePathId + -TargetResourceGroupId -TargetVMName -SourceApplianceName + -TargetApplianceName [-TargetVMCPUCore ] [-IsDynamicMemoryEnabled ] + [-TargetVMRam ] [-SubscriptionId ] -DiskToInclude + -NicToInclude [-DefaultProfile ] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -66,7 +68,7 @@ SystemDataLastModifiedBy : SystemDataLastModifiedByType : TargetFabricProviderId : 22f00372-a1b7-467f-87ce-d95e17a6e7c7 Task : {Creating or updating the protected item, Initializing Protection, Enabling Protection, Starting Replication} -Type : Microsoft.DataReplication/replicationVaults/jobs +Type : Microsoft.DataReplication/replicationVaults/jobs ``` This is for the scenario, when there is only one single disk that has to be protected. @@ -402,4 +404,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/New-AzMigrateNicMapping.md b/src/Migrate/Migrate/help/New-AzMigrateNicMapping.md index e0d9720995ea..fb395de861b1 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateNicMapping.md +++ b/src/Migrate/Migrate/help/New-AzMigrateNicMapping.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratenicmapping schema: 2.0.0 @@ -13,9 +13,9 @@ Creates an object to update NIC properties of a replicating server. ## SYNTAX ``` -New-AzMigrateNicMapping -NicID [-TargetNicIP ] [-TargetNicName ] - [-TargetNicSelectionType ] [-TargetNicSubnet ] [-TestNicIP ] - [-TestNicSubnet ] [] +New-AzMigrateNicMapping -NicID [-TargetNicSelectionType ] [-TargetNicSubnet ] + [-TargetNicName ] [-TargetNicIP ] [-TestNicSubnet ] [-TestNicIP ] + [] ``` ## DESCRIPTION @@ -156,4 +156,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/New-AzMigrateProject.md b/src/Migrate/Migrate/help/New-AzMigrateProject.md index acc0f929111a..98416935a419 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateProject.md +++ b/src/Migrate/Migrate/help/New-AzMigrateProject.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/new-azmigrateproject schema: 2.0.0 @@ -13,8 +13,9 @@ Creates a new Migrate project. ## SYNTAX ``` -New-AzMigrateProject -Location -Name -ResourceGroupName [-ETag ] - [-Property ] [-SubscriptionId ] [-Confirm] [-WhatIf] [] +New-AzMigrateProject -Name -ResourceGroupName -Location [-ETag ] + [-Property ] [-SubscriptionId ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -31,7 +32,6 @@ New-AzMigrateProject -SubscriptionId xxx-xxx-xxx -ResourceGroupName kuchaturimpk ETag Location Name Type ---- -------- ---- ---- centralus kuchaturimpkocrg1pwshp14 Microsoft.Migrate/MigrateProjects - ``` Method to create a new migrate project. @@ -170,4 +170,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/New-AzMigrateReplicationPolicy.md b/src/Migrate/Migrate/help/New-AzMigrateReplicationPolicy.md index 1aff2f20a639..e77f53e15674 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateReplicationPolicy.md +++ b/src/Migrate/Migrate/help/New-AzMigrateReplicationPolicy.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratereplicationpolicy schema: 2.0.0 @@ -15,7 +15,8 @@ The operation to create a replication policy. ``` New-AzMigrateReplicationPolicy -PolicyName -ResourceGroupName -ResourceName [-SubscriptionId ] [-ProviderSpecificInput ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -37,7 +38,6 @@ New-AzMigrateReplicationPolicy -PolicyName TestPolicy -ResourceGroupName Resourc Location Name Type -------- ---- ---- TestPolicy Microsoft.RecoveryServices/vaults/replicationPolicies - ``` Creates a policy for VmWare Cbt @@ -209,4 +209,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/New-AzMigrateReplicationProtectionContainerMapping.md b/src/Migrate/Migrate/help/New-AzMigrateReplicationProtectionContainerMapping.md index e7240e2c44db..2d9f687f0d6e 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateReplicationProtectionContainerMapping.md +++ b/src/Migrate/Migrate/help/New-AzMigrateReplicationProtectionContainerMapping.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratereplicationprotectioncontainermapping schema: 2.0.0 @@ -17,8 +17,8 @@ New-AzMigrateReplicationProtectionContainerMapping -FabricName -Mapping -ProtectionContainerName -ResourceGroupName -ResourceName [-SubscriptionId ] [-PolicyId ] [-ProviderSpecificInput ] - [-TargetProtectionContainerId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-TargetProtectionContainerId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -275,4 +275,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/New-AzMigrateServerReplication.md b/src/Migrate/Migrate/help/New-AzMigrateServerReplication.md index b68a44fcac88..35f4507393d5 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/New-AzMigrateServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/new-azmigrateserverreplication schema: 2.0.0 @@ -14,55 +14,57 @@ Starts replication for the specified server. ### ByIdDefaultUser (Default) ``` -New-AzMigrateServerReplication -DiskType -LicenseType -MachineId -OSDiskID - -TargetNetworkId -TargetResourceGroupId -TargetSubnetName -TargetVMName - [-DiskEncryptionSetID ] [-DiskTag ] - [-LinuxLicenseType ] [-NicTag ] - [-PerformAutoResync ] [-SqlServerLicenseType ] [-SubscriptionId ] [-Tag ] - [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] - [-TargetBootDiagnosticsStorageAccount ] [-TargetVMSize ] [-TestNetworkId ] - [-TestSubnetName ] [-VMTag ] - [-VMWarerunasaccountID ] [-DefaultProfile ] [] +New-AzMigrateServerReplication -LicenseType -TargetResourceGroupId -TargetNetworkId + -TargetSubnetName -TargetVMName -MachineId -DiskType -OSDiskID + [-SqlServerLicenseType ] [-LinuxLicenseType ] [-TestNetworkId ] + [-TestSubnetName ] [-VMWarerunasaccountID ] [-TargetVMSize ] + [-PerformAutoResync ] [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] + [-VMTag ] [-NicTag ] + [-DiskTag ] [-Tag ] + [-TargetBootDiagnosticsStorageAccount ] [-DiskEncryptionSetID ] [-SubscriptionId ] + [-DefaultProfile ] [] ``` ### ByIdPowerUser ``` -New-AzMigrateServerReplication -DiskToInclude -LicenseType - -MachineId -TargetNetworkId -TargetResourceGroupId -TargetSubnetName - -TargetVMName [-DiskTag ] [-LinuxLicenseType ] - [-NicTag ] [-PerformAutoResync ] - [-SqlServerLicenseType ] [-SubscriptionId ] [-Tag ] +New-AzMigrateServerReplication -LicenseType -TargetResourceGroupId -TargetNetworkId + -TargetSubnetName -TargetVMName -MachineId [-SqlServerLicenseType ] + [-LinuxLicenseType ] [-TestNetworkId ] [-TestSubnetName ] + [-VMWarerunasaccountID ] [-TargetVMSize ] [-PerformAutoResync ] [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] - [-TargetBootDiagnosticsStorageAccount ] [-TargetVMSize ] [-TestNetworkId ] - [-TestSubnetName ] [-VMTag ] - [-VMWarerunasaccountID ] [-DefaultProfile ] [] + [-VMTag ] [-NicTag ] + [-DiskTag ] [-Tag ] + [-TargetBootDiagnosticsStorageAccount ] [-SubscriptionId ] + -DiskToInclude [-DefaultProfile ] + [] ``` ### ByInputObjectDefaultUser ``` -New-AzMigrateServerReplication -DiskType -InputObject -LicenseType - -OSDiskID -TargetNetworkId -TargetResourceGroupId -TargetSubnetName - -TargetVMName [-DiskEncryptionSetID ] - [-DiskTag ] [-LinuxLicenseType ] - [-NicTag ] [-PerformAutoResync ] - [-SqlServerLicenseType ] [-SubscriptionId ] [-Tag ] - [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] - [-TargetBootDiagnosticsStorageAccount ] [-TargetVMSize ] [-TestNetworkId ] - [-TestSubnetName ] [-VMTag ] - [-VMWarerunasaccountID ] [-DefaultProfile ] [] +New-AzMigrateServerReplication -LicenseType -TargetResourceGroupId -TargetNetworkId + -TargetSubnetName -TargetVMName -DiskType -OSDiskID + [-SqlServerLicenseType ] [-LinuxLicenseType ] [-TestNetworkId ] + [-TestSubnetName ] [-VMWarerunasaccountID ] [-TargetVMSize ] + [-PerformAutoResync ] [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] + [-VMTag ] [-NicTag ] + [-DiskTag ] [-Tag ] + [-TargetBootDiagnosticsStorageAccount ] [-DiskEncryptionSetID ] [-SubscriptionId ] + -InputObject [-DefaultProfile ] + [] ``` ### ByInputObjectPowerUser ``` -New-AzMigrateServerReplication -DiskToInclude -InputObject - -LicenseType -TargetNetworkId -TargetResourceGroupId -TargetSubnetName - -TargetVMName [-DiskTag ] [-LinuxLicenseType ] - [-NicTag ] [-PerformAutoResync ] - [-SqlServerLicenseType ] [-SubscriptionId ] [-Tag ] +New-AzMigrateServerReplication -LicenseType -TargetResourceGroupId -TargetNetworkId + -TargetSubnetName -TargetVMName [-SqlServerLicenseType ] + [-LinuxLicenseType ] [-TestNetworkId ] [-TestSubnetName ] + [-VMWarerunasaccountID ] [-TargetVMSize ] [-PerformAutoResync ] [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] - [-TargetBootDiagnosticsStorageAccount ] [-TargetVMSize ] [-TestNetworkId ] - [-TestSubnetName ] [-VMTag ] - [-VMWarerunasaccountID ] [-DefaultProfile ] [] + [-VMTag ] [-NicTag ] + [-DiskTag ] [-Tag ] + [-TargetBootDiagnosticsStorageAccount ] [-SubscriptionId ] + -DiskToInclude -InputObject [-DefaultProfile ] + [] ``` ## DESCRIPTION @@ -560,4 +562,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/New-AzMigrateTestNicMapping.md b/src/Migrate/Migrate/help/New-AzMigrateTestNicMapping.md index 3d566f33ed30..d528125e7bfa 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateTestNicMapping.md +++ b/src/Migrate/Migrate/help/New-AzMigrateTestNicMapping.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratetestnicmapping schema: 2.0.0 @@ -13,7 +13,8 @@ Creates an object to update NIC properties of a test migrating server. ## SYNTAX ``` -New-AzMigrateTestNicMapping -NicID -TestNicSubnet [-Confirm] [-WhatIf] [] +New-AzMigrateTestNicMapping -NicID -TestNicSubnet + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -110,4 +111,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Register-AzMigrateProjectTool.md b/src/Migrate/Migrate/help/Register-AzMigrateProjectTool.md index c326e5a34428..bd3d85951b58 100644 --- a/src/Migrate/Migrate/help/Register-AzMigrateProjectTool.md +++ b/src/Migrate/Migrate/help/Register-AzMigrateProjectTool.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/register-azmigrateprojecttool schema: 2.0.0 @@ -15,7 +15,7 @@ Registers a tool with the migrate project. ``` Register-AzMigrateProjectTool -MigrateProjectName -ResourceGroupName [-SubscriptionId ] [-AcceptLanguage ] [-Tool ] [-DefaultProfile ] - [-Confirm] [-WhatIf] [] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -171,4 +171,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Remove-AzMigrateLocalServerReplication.md b/src/Migrate/Migrate/help/Remove-AzMigrateLocalServerReplication.md index fe693b37e81a..d865f1d03e98 100644 --- a/src/Migrate/Migrate/help/Remove-AzMigrateLocalServerReplication.md +++ b/src/Migrate/Migrate/help/Remove-AzMigrateLocalServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/remove-azmigratelocalserverreplication schema: 2.0.0 @@ -15,13 +15,15 @@ Stops replication for the migrated server. ### ByID (Default) ``` Remove-AzMigrateLocalServerReplication -TargetObjectID [-SubscriptionId ] - [-ForceRemove ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-ForceRemove ] [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` ### ByInputObject ``` -Remove-AzMigrateLocalServerReplication -InputObject [-SubscriptionId ] - [-ForceRemove ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Remove-AzMigrateLocalServerReplication [-SubscriptionId ] -InputObject + [-ForceRemove ] [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -231,4 +233,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Remove-AzMigrateProject.md b/src/Migrate/Migrate/help/Remove-AzMigrateProject.md index 2ea0719f91f3..f48c69c53986 100644 --- a/src/Migrate/Migrate/help/Remove-AzMigrateProject.md +++ b/src/Migrate/Migrate/help/Remove-AzMigrateProject.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/remove-azmigrateproject schema: 2.0.0 @@ -15,7 +15,8 @@ Deleting non-existent project is a no-operation. ``` Remove-AzMigrateProject -Name -ResourceGroupName [-SubscriptionId ] - [-AcceptLanguage ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] + [-AcceptLanguage ] [-DefaultProfile ] [-PassThru] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -169,4 +170,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Remove-AzMigrateServerReplication.md b/src/Migrate/Migrate/help/Remove-AzMigrateServerReplication.md index 1e603eec70ac..4b3dfb032145 100644 --- a/src/Migrate/Migrate/help/Remove-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Remove-AzMigrateServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/remove-azmigrateserverreplication schema: 2.0.0 @@ -20,7 +20,7 @@ Remove-AzMigrateServerReplication -TargetObjectID [-SubscriptionId [-SubscriptionId ] +Remove-AzMigrateServerReplication [-SubscriptionId ] -InputObject [-ForceRemove ] [-DefaultProfile ] [] ``` @@ -55,7 +55,6 @@ TargetObjectId : 101883a0-23f7-538a-bbd5-6d8b4fa900e2 TargetObjectName : prsadhu-TestVM Task : {DisableProtectionOnPrimary, UpdateDraState} Type : Microsoft.RecoveryServices/vaults/replicationJobs - ``` Resync by id. @@ -183,4 +182,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Restart-AzMigrateServerReplication.md b/src/Migrate/Migrate/help/Restart-AzMigrateServerReplication.md index 06f0d44802f1..64046e7d06f9 100644 --- a/src/Migrate/Migrate/help/Restart-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Restart-AzMigrateServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/restart-azmigrateserverreplication schema: 2.0.0 @@ -20,7 +20,7 @@ Restart-AzMigrateServerReplication -TargetObjectID [-SubscriptionId [-SubscriptionId ] +Restart-AzMigrateServerReplication [-SubscriptionId ] -InputObject [-DefaultProfile ] [] ``` @@ -166,4 +166,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Resume-AzMigrateServerReplication.md b/src/Migrate/Migrate/help/Resume-AzMigrateServerReplication.md index 0b86d8ea49f7..e1b103335f94 100644 --- a/src/Migrate/Migrate/help/Resume-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Resume-AzMigrateServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/resume-azmigrateserverreplication schema: 2.0.0 @@ -14,14 +14,15 @@ Starts the replication that has been suspended. ### ByIDVMwareCbt (Default) ``` -Resume-AzMigrateServerReplication -TargetObjectID [-DeleteMigratedResource] - [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Resume-AzMigrateServerReplication -TargetObjectID [-DeleteMigratedResource] [-SubscriptionId ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### ByInputObjectVMwareCbt ``` -Resume-AzMigrateServerReplication -InputObject [-DeleteMigratedResource] - [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Resume-AzMigrateServerReplication [-DeleteMigratedResource] [-SubscriptionId ] + -InputObject [-DefaultProfile ] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -213,4 +214,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Set-AzMigrateDiskMapping.md b/src/Migrate/Migrate/help/Set-AzMigrateDiskMapping.md index 4247ea0c100b..8ef16f8810c9 100644 --- a/src/Migrate/Migrate/help/Set-AzMigrateDiskMapping.md +++ b/src/Migrate/Migrate/help/Set-AzMigrateDiskMapping.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/set-azmigratediskmapping schema: 2.0.0 @@ -13,7 +13,8 @@ Updates disk mapping ## SYNTAX ``` -Set-AzMigrateDiskMapping -DiskID [-DiskName ] [-IsOSDisk ] [] +Set-AzMigrateDiskMapping -DiskID [-DiskName ] [-IsOSDisk ] + [] ``` ## DESCRIPTION @@ -93,4 +94,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Set-AzMigrateLocalServerReplication.md b/src/Migrate/Migrate/help/Set-AzMigrateLocalServerReplication.md index 10df4e66133d..3f6b23a01cb7 100644 --- a/src/Migrate/Migrate/help/Set-AzMigrateLocalServerReplication.md +++ b/src/Migrate/Migrate/help/Set-AzMigrateLocalServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/set-azmigratelocalserverreplication schema: 2.0.0 @@ -13,10 +13,10 @@ Updates the target properties for the replicating server. ## SYNTAX ``` -Set-AzMigrateLocalServerReplication -TargetObjectID - [-DynamicMemoryConfig ] [-IsDynamicMemoryEnabled ] - [-NicToInclude ] [-OsType ] [-SubscriptionId ] [-TargetVMCPUCore ] - [-TargetVMRam ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Set-AzMigrateLocalServerReplication -TargetObjectID [-TargetVMCPUCore ] + [-IsDynamicMemoryEnabled ] [-DynamicMemoryConfig ] + [-TargetVMRam ] [-NicToInclude ] [-OsType ] [-SubscriptionId ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -61,7 +61,7 @@ SystemDataLastModifiedBy : SystemDataLastModifiedByType : TargetFabricProviderId : 22f00372-a1b7-467f-87ce-d95e17a6e7c7 Task : {Creating or updating the protected item, Initializing Protection, Enabling Protection, Starting Replication} -Type : Microsoft.DataReplication/replicationVaults/jobs +Type : Microsoft.DataReplication/replicationVaults/jobs ``` Update dynamic memory configuration. @@ -248,4 +248,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Set-AzMigrateServerReplication.md b/src/Migrate/Migrate/help/Set-AzMigrateServerReplication.md index adb7fd68ab89..ae2cd0dc8a54 100644 --- a/src/Migrate/Migrate/help/Set-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Set-AzMigrateServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/set-azmigrateserverreplication schema: 2.0.0 @@ -14,29 +14,30 @@ Updates the target properties for the replicating server. ### ByIDVMwareCbt (Default) ``` -Set-AzMigrateServerReplication -TargetObjectID [-DiskToUpdate ] - [-LinuxLicenseType ] [-NicToUpdate ] [-SqlServerLicenseType ] - [-SubscriptionId ] [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] - [-TargetBootDiagnosticsStorageAccount ] [-TargetDiskName ] [-TargetNetworkId ] - [-TargetResourceGroupID ] [-TargetVMName ] [-TargetVMSize ] [-TestNetworkId ] - [-UpdateDiskTag ] [-UpdateDiskTagOperation ] - [-UpdateNicTag ] [-UpdateNicTagOperation ] +Set-AzMigrateServerReplication -TargetObjectID [-TargetVMName ] [-TargetDiskName ] + [-TargetVMSize ] [-TargetNetworkId ] [-TestNetworkId ] + [-TargetResourceGroupID ] [-NicToUpdate ] + [-DiskToUpdate ] [-TargetAvailabilitySet ] + [-TargetAvailabilityZone ] [-SqlServerLicenseType ] [-LinuxLicenseType ] [-UpdateTag ] [-UpdateTagOperation ] [-UpdateVMTag ] [-UpdateVMTagOperation ] - [-DefaultProfile ] [] + [-UpdateNicTag ] [-UpdateNicTagOperation ] + [-UpdateDiskTag ] [-UpdateDiskTagOperation ] + [-TargetBootDiagnosticsStorageAccount ] [-SubscriptionId ] [-DefaultProfile ] + [] ``` ### ByInputObjectVMwareCbt ``` -Set-AzMigrateServerReplication -InputObject [-DiskToUpdate ] - [-LinuxLicenseType ] [-NicToUpdate ] [-SqlServerLicenseType ] - [-SubscriptionId ] [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] - [-TargetBootDiagnosticsStorageAccount ] [-TargetDiskName ] [-TargetNetworkId ] - [-TargetResourceGroupID ] [-TargetVMName ] [-TargetVMSize ] [-TestNetworkId ] - [-UpdateDiskTag ] [-UpdateDiskTagOperation ] - [-UpdateNicTag ] [-UpdateNicTagOperation ] - [-UpdateTag ] [-UpdateTagOperation ] +Set-AzMigrateServerReplication [-TargetVMName ] [-TargetDiskName ] [-TargetVMSize ] + [-TargetNetworkId ] [-TestNetworkId ] [-TargetResourceGroupID ] + [-NicToUpdate ] [-DiskToUpdate ] + [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] [-SqlServerLicenseType ] + [-LinuxLicenseType ] [-UpdateTag ] [-UpdateTagOperation ] [-UpdateVMTag ] [-UpdateVMTagOperation ] + [-UpdateNicTag ] [-UpdateNicTagOperation ] + [-UpdateDiskTag ] [-UpdateDiskTagOperation ] + [-TargetBootDiagnosticsStorageAccount ] [-SubscriptionId ] -InputObject [-DefaultProfile ] [] ``` @@ -508,4 +509,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Start-AzMigrateLocalServerMigration.md b/src/Migrate/Migrate/help/Start-AzMigrateLocalServerMigration.md index 77fb2f167161..620b2129e49b 100644 --- a/src/Migrate/Migrate/help/Start-AzMigrateLocalServerMigration.md +++ b/src/Migrate/Migrate/help/Start-AzMigrateLocalServerMigration.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/start-azmigratelocalservermigration schema: 2.0.0 @@ -14,14 +14,15 @@ Starts the migration for the replicating server. ### ByID (Default) ``` -Start-AzMigrateLocalServerMigration -TargetObjectID [-SubscriptionId ] [-TurnOffSourceServer] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Start-AzMigrateLocalServerMigration -TargetObjectID [-TurnOffSourceServer] [-SubscriptionId ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### ByInputObject ``` -Start-AzMigrateLocalServerMigration -InputObject [-SubscriptionId ] - [-TurnOffSourceServer] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Start-AzMigrateLocalServerMigration [-TurnOffSourceServer] [-SubscriptionId ] + -InputObject [-DefaultProfile ] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -238,4 +239,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Start-AzMigrateServerMigration.md b/src/Migrate/Migrate/help/Start-AzMigrateServerMigration.md index e4a52ee0324f..4fdd6e642598 100644 --- a/src/Migrate/Migrate/help/Start-AzMigrateServerMigration.md +++ b/src/Migrate/Migrate/help/Start-AzMigrateServerMigration.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/start-azmigrateservermigration schema: 2.0.0 @@ -14,14 +14,16 @@ Starts the migration for the replicating server. ### ByIDVMwareCbt (Default) ``` -Start-AzMigrateServerMigration -TargetObjectID [-OsUpgradeVersion ] - [-SubscriptionId ] [-TurnOffSourceServer] [-DefaultProfile ] [] +Start-AzMigrateServerMigration -TargetObjectID [-OsUpgradeVersion ] [-TurnOffSourceServer] + [-SubscriptionId ] [-DefaultProfile ] + [] ``` ### ByInputObjectVMwareCbt ``` -Start-AzMigrateServerMigration -InputObject [-OsUpgradeVersion ] - [-SubscriptionId ] [-TurnOffSourceServer] [-DefaultProfile ] [] +Start-AzMigrateServerMigration [-OsUpgradeVersion ] [-TurnOffSourceServer] [-SubscriptionId ] + -InputObject [-DefaultProfile ] + [] ``` ## DESCRIPTION @@ -167,4 +169,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Start-AzMigrateTestMigration.md b/src/Migrate/Migrate/help/Start-AzMigrateTestMigration.md index 9ed1e43089cd..976b922b267a 100644 --- a/src/Migrate/Migrate/help/Start-AzMigrateTestMigration.md +++ b/src/Migrate/Migrate/help/Start-AzMigrateTestMigration.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/start-azmigratetestmigration schema: 2.0.0 @@ -14,15 +14,15 @@ Starts the test migration for the replicating server. ### ByIDVMwareCbt (Default) ``` -Start-AzMigrateTestMigration -TargetObjectID -TestNetworkID - [-NicToUpdate ] [-OsUpgradeVersion ] [-SubscriptionId ] - [-DefaultProfile ] [] +Start-AzMigrateTestMigration -TestNetworkID -TargetObjectID [-OsUpgradeVersion ] + [-NicToUpdate ] [-SubscriptionId ] [-DefaultProfile ] + [] ``` ### ByInputObjectVMwareCbt ``` -Start-AzMigrateTestMigration -InputObject -TestNetworkID - [-NicToUpdate ] [-OsUpgradeVersion ] [-SubscriptionId ] +Start-AzMigrateTestMigration -TestNetworkID [-OsUpgradeVersion ] + [-NicToUpdate ] [-SubscriptionId ] -InputObject [-DefaultProfile ] [] ``` @@ -57,7 +57,6 @@ TargetObjectId : 101883a0-23f7-538a-bbd5-6d8b4fa900e2 TargetObjectName : prsadhu-TestVM Task : {DisableProtectionOnPrimary, UpdateDraState} Type : Microsoft.RecoveryServices/vaults/replicationJobs - ``` By machine id. @@ -89,7 +88,6 @@ TargetObjectId : 101883a0-23f7-538a-bbd5-6d8b4fa900e2 TargetObjectName : prsadhu-TestVM Task : {DisableProtectionOnPrimary, UpdateDraState} Type : Microsoft.RecoveryServices/vaults/replicationJobs - ``` By input object. @@ -218,4 +216,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Start-AzMigrateTestMigrationCleanup.md b/src/Migrate/Migrate/help/Start-AzMigrateTestMigrationCleanup.md index e10bbc22304e..7297bf4a90db 100644 --- a/src/Migrate/Migrate/help/Start-AzMigrateTestMigrationCleanup.md +++ b/src/Migrate/Migrate/help/Start-AzMigrateTestMigrationCleanup.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/start-azmigratetestmigrationcleanup schema: 2.0.0 @@ -20,7 +20,7 @@ Start-AzMigrateTestMigrationCleanup -TargetObjectID [-SubscriptionId [-SubscriptionId ] +Start-AzMigrateTestMigrationCleanup [-SubscriptionId ] -InputObject [-DefaultProfile ] [] ``` @@ -55,7 +55,6 @@ TargetObjectId : 101883a0-23f7-538a-bbd5-6d8b4fa900e2 TargetObjectName : prsadhu-TestVM Task : {DisableProtectionOnPrimary, UpdateDraState} Type : Microsoft.RecoveryServices/vaults/replicationJobs - ``` By machine id. @@ -89,7 +88,6 @@ TargetObjectId : 101883a0-23f7-538a-bbd5-6d8b4fa900e2 TargetObjectName : prsadhu-TestVM Task : {DisableProtectionOnPrimary, UpdateDraState} Type : Microsoft.RecoveryServices/vaults/replicationJobs - ``` By input object. @@ -171,4 +169,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/Migrate/Migrate/help/Suspend-AzMigrateServerReplication.md b/src/Migrate/Migrate/help/Suspend-AzMigrateServerReplication.md index 329b05086c1f..839e0fddd718 100644 --- a/src/Migrate/Migrate/help/Suspend-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Suspend-AzMigrateServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Migrate-help.xml Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/suspend-azmigrateserverreplication schema: 2.0.0 @@ -15,13 +15,13 @@ Suspends the ongoing replication. ### ByIDVMwareCbt (Default) ``` Suspend-AzMigrateServerReplication -TargetObjectID [-SubscriptionId ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### ByInputObjectVMwareCbt ``` -Suspend-AzMigrateServerReplication -InputObject [-SubscriptionId ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Suspend-AzMigrateServerReplication [-SubscriptionId ] -InputObject + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -198,4 +198,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS -