diff --git a/src/Migrate/Migrate.Autorest/Properties/AssemblyInfo.cs b/src/Migrate/Migrate.Autorest/Properties/AssemblyInfo.cs index 9b94307f162a..cdc548a94515 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.9.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("2.9.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("2.8.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("2.8.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 a8fc67b1e913..414362f01faf 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 e13e46aef681..2060fd576d18 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,12 +65,6 @@ 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] @@ -190,17 +184,25 @@ function Get-AzMigrateServerMigrationStatus { [string]$State, [object]$ReplicationMigrationItem ) - if ($ReplicationMigrationItem.MigrationState -eq "MigrationFailed") { - return "Migration Failed" - } - elseif ($ReplicationMigrationItem.MigrationState -match "InitialSeedingFailed") { - return "InitialReplication Failed" - } 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 -match "MigrationInProgress" -and $ReplicationMigrationItem.migrationProgressPercentage -eq $null) { + return "FinalDeltaReplication Queued" + } + + if ($ReplicationMigrationItem.MigrationState -eq "MigrationSucceeded") { + return "Migration Completed" + } + $State = $State -replace "PlannedFailoverOverDeltaReplication", "FinalDeltaReplication" return $State } @@ -252,30 +254,8 @@ function Get-AzMigrateServerMigrationStatus { [double]$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" + if ($Value -ne $null -and $Value -ne 0) { + return "$Value%" } else { return "-" } @@ -299,58 +279,6 @@ 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') @@ -361,7 +289,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. @@ -416,13 +344,13 @@ function Get-AzMigrateServerMigrationStatus { $vmMigrationStatusTable = New-Object System.Data.DataTable("") if ($parameterSet -eq "GetByApplianceName") { - $column = @("Server", "State", "Progress", "TimeElapsed", "TimeRemaining", "UploadSpeed", "Health", "LastSync", "ESXiHost", "Datastore") + $column = @("Server", "State", "Progress", "TimeElapsed", "TimeRemaining", "UploadSpeed", "Health", "LastSync", "Datastore") } elseif ($parameterSet -eq "ListByName") { - $column = @("Appliance", "Server", "State", "Progress", "TimeElapsed", "TimeRemaining", "UploadSpeed", "Health", "LastSync", "ESXiHost", "Datastore") + $column = @("Appliance", "Server", "State", "Progress", "TimeElapsed", "TimeRemaining", "UploadSpeed", "Health", "LastSync", "Datastore") } else { - $column = @("Appliance", "Server", "State", "Progress", "TimeElapsed", "TimeRemaining", "UploadSpeed", "LastSync", "ESXiHost", "Datastore") + $column = @("Appliance", "Server", "State", "Progress", "TimeElapsed", "TimeRemaining", "UploadSpeed", "LastSync", "Datastore") } MakeTable $vmMigrationStatusTable $column @@ -493,7 +421,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 ', ' } @@ -581,298 +509,110 @@ function Get-AzMigrateServerMigrationStatus { } } } - } - - if( $parameterSet -eq "GetByPrioritiseServer") { - - $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; - } - # 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 - } + <#if( $parameterSet -eq "GetByPrioritiseServer") { + $vmMigrationTable = New-Object System.Data.DataTable("") + $column = @("Appliance", "Server", "State", "TimeRemaining", "ESXiHost", "Datastore") + MakeTable $vmMigrationTable $column - $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" - } + foreach($MigrationItem in $ReplicationMigrationItems) { + $site = $MigrationItem.ProviderSpecificDetail.vmwareMachineId.Split('/')[-3] + $appName1 = GetApplianceName $site + if ($MigrationItem.MachineName -eq $ReplicationMigrationItem.MachineName -and $appName1 -eq $appName) { + continue; + } - $datastores = @() - if ($MigrationItem.ProviderSpecificDetail.GatewayOperationDetailDataStore) { - $datastores = @($MigrationItem.ProviderSpecificDetail.GatewayOperationDetailDataStore) - } - $commonDatastores = $refDatastores | Where-Object { $datastores -contains $_ } - foreach ($ds in $commonDatastores) { - $sharedTypes += "Datastore" - } + if ($appName1 -ne $appName) { + continue; + } - 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 - if ($datastores -and $datastores.Count -gt 0) { - $row1["Datastore"] = $datastores -join ', ' - } else { - $row1["Datastore"] = "-" - } + $row1["Datastore"] = $MigrationItem.ProviderSpecificDetail.GatewayOperationDetailDataStore $vmMigrationTable.Rows.Add($row1) - # Mark this machine as added to avoid duplicates - $addedMachines[$MigrationItem.MachineName] = $true } - } - - 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.") - + $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.") $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) - } - } - $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") - } - } + $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)." + }#> } if ($parameterSet -eq "GetByApplianceName" -or $parameterSet -eq "ListByName") { - 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 + $vmMigrationStatusTable = $vmMigrationStatusTable | Format-Table -AutoSize | Out-String $op = $output.Add($vmMigrationStatusTable) - $op = $output.Add("To check expedite the operation of a server use the command") - $op = $output.Add("Get-AzMigrateServerMigrationStatus -ProjectName -ResourceGroupName -MachineName -Expedite`n") + $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 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 a268d35afb1d..67ca1cd0e5cd 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 e9438b4a28ed..b5409f0cfcfd 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: 54155e7c-dd37-4932-9420-89a7bcdd9892 +Module Guid: 7cbf023d-6b60-494a-8cdb-ab27463fef7d 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 e02e7491065a..68ebb9d23196 100644 --- a/src/Migrate/Migrate.Autorest/docs/Get-AzMigrateServerMigrationStatus.md +++ b/src/Migrate/Migrate.Autorest/docs/Get-AzMigrateServerMigrationStatus.md @@ -31,12 +31,6 @@ Get-AzMigrateServerMigrationStatus -MachineName -ProjectName - [-SubscriptionId ] [-DefaultProfile ] [] ``` -### GetByPrioritiseServer -``` -Get-AzMigrateServerMigrationStatus -Expedite -MachineName -ProjectName - -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] -``` - ### GetHealthByMachineName ``` Get-AzMigrateServerMigrationStatus -Health -MachineName -ProjectName @@ -50,16 +44,14 @@ The Get-AzMigrateServerMigrationStatus cmdlet retrieves the replication status f ### Example 1: List status by project name. ```powershell -Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" +Get-AzMigrateServerMigrationStatus -ResourceGroupName cbtpvtrg -ProjectName migpvt ``` ```output - -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 +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 @@ -72,102 +64,44 @@ Get by project name. ### Example 2: List status by machine name. ```powershell -Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -MachineName "Rhel8-Vm" +Get-AzMigrateServerMigrationStatus -ProjectName "migpvt-ecyproj" -ResourceGroupName "cbtprivatestamprg" -MachineName "CVM-Win2019" ``` ```output -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 +Server CVM-Win2019 is currently healthy. +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 ----- ----- -------- ----------- ------------- ----------- --------- -Rhel8-Vm DeltaReplication Completed - - - - IDCLAB-B161-3TB +Disk State Progress TimeElapsed TimeRemaining UploadSpeed Datastore +---- ----- -------- ----------- ------------- ----------- --------- +TestVM DeltaReplication Completed - - - - Shared_1TB +CVM-Win2019 DeltaReplication Completed - - - - datastore1 ``` Get by machine name. -### Example 3: List status by appliance name. +### Example 2: List status by appliance name. ```powershell -Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -ApplianceName "cbtresyncgql" +Get-AzMigrateServerMigrationStatus -ProjectName "migpvt-ecyproj" -ResourceGroupName "cbtprivatestamprg" -ApplianceName "migpvt" ``` ```output -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 +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 -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 @@ -200,21 +134,6 @@ 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. @@ -246,11 +165,12 @@ Accept wildcard characters: False ``` ### -MachineName -Specifies the display name of the replicating machine. +[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] + Specifies the display name of the replicating machine. ```yaml Type: System.String -Parameter Sets: GetByMachineName, GetByPrioritiseServer, GetHealthByMachineName +Parameter Sets: GetByMachineName, GetHealthByMachineName Aliases: Required: True @@ -261,7 +181,8 @@ Accept wildcard characters: False ``` ### -ProjectName -Specifies the Azure Migrate project in the current subscription. +[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] + Specifies the Azure Migrate project in the current subscription. ```yaml Type: System.String @@ -276,7 +197,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -Specifies the Resource Group of the Azure Migrate Project in the current subscription. +[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] + 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 7a6510e0d36c..f96c0400057b 100644 --- a/src/Migrate/Migrate.Autorest/examples/Get-AzMigrateServerMigrationStatus.md +++ b/src/Migrate/Migrate.Autorest/examples/Get-AzMigrateServerMigrationStatus.md @@ -1,15 +1,13 @@ ### Example 1: List status by project name. ```powershell -Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" +Get-AzMigrateServerMigrationStatus -ResourceGroupName cbtpvtrg -ProjectName migpvt ``` ```output - -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 +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 @@ -22,98 +20,40 @@ Get by project name. ### Example 2: List status by machine name. ```powershell -Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -MachineName "Rhel8-Vm" +Get-AzMigrateServerMigrationStatus -ProjectName "migpvt-ecyproj" -ResourceGroupName "cbtprivatestamprg" -MachineName "CVM-Win2019" ``` ```output -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 +Server CVM-Win2019 is currently healthy. +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 ----- ----- -------- ----------- ------------- ----------- --------- -Rhel8-Vm DeltaReplication Completed - - - - IDCLAB-B161-3TB +Disk State Progress TimeElapsed TimeRemaining UploadSpeed Datastore +---- ----- -------- ----------- ------------- ----------- --------- +TestVM DeltaReplication Completed - - - - Shared_1TB +CVM-Win2019 DeltaReplication Completed - - - - datastore1 ``` Get by machine name. -### Example 3: List status by appliance name. +### Example 2: List status by appliance name. ```powershell -Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -ApplianceName "cbtresyncgql" +Get-AzMigrateServerMigrationStatus -ProjectName "migpvt-ecyproj" -ResourceGroupName "cbtprivatestamprg" -ApplianceName "migpvt" ``` ```output -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 +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 -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. +Get by appliance name. \ No newline at end of file diff --git a/src/Migrate/Migrate.Autorest/generate-info.json b/src/Migrate/Migrate.Autorest/generate-info.json index 5e43d25161a9..92b7c03aaac0 100644 --- a/src/Migrate/Migrate.Autorest/generate-info.json +++ b/src/Migrate/Migrate.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "82e14e38-5c92-49e1-9872-c0ecb5ed742c" + "generate_Id": "4e55833b-f8ae-4cf1-9514-f2c589c80cae" } diff --git a/src/Migrate/Migrate.Autorest/resources/README.md b/src/Migrate/Migrate.Autorest/resources/README.md index 736492341e3d..937f07f8fec2 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 2c938b35a9dd..53e86c5e3abb 100644 --- a/src/Migrate/Migrate.Autorest/test/Get-AzMigrateServerMigrationStatus.Tests.ps1 +++ b/src/Migrate/Migrate.Autorest/test/Get-AzMigrateServerMigrationStatus.Tests.ps1 @@ -30,8 +30,4 @@ 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 1969200c6a09..7c752b4c8c43 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 a8c35140144d..edd07a106608 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", "..\..\generated\Migrate\Migrate.Autorest\Az.Migrate.csproj", "{6312140D-2271-46E6-A017-19059C8F33FA}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Migrate", "Migrate.Autorest\Az.Migrate.csproj", "{DE7B28E0-F1BB-45B9-9C73-691EAE8F1A60}" 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 - {6312140D-2271-46E6-A017-19059C8F33FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6312140D-2271-46E6-A017-19059C8F33FA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6312140D-2271-46E6-A017-19059C8F33FA}.Debug|x64.ActiveCfg = Debug|Any CPU - {6312140D-2271-46E6-A017-19059C8F33FA}.Debug|x64.Build.0 = Debug|Any CPU - {6312140D-2271-46E6-A017-19059C8F33FA}.Debug|x86.ActiveCfg = Debug|Any CPU - {6312140D-2271-46E6-A017-19059C8F33FA}.Debug|x86.Build.0 = Debug|Any CPU - {6312140D-2271-46E6-A017-19059C8F33FA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6312140D-2271-46E6-A017-19059C8F33FA}.Release|Any CPU.Build.0 = Release|Any CPU - {6312140D-2271-46E6-A017-19059C8F33FA}.Release|x64.ActiveCfg = Release|Any CPU - {6312140D-2271-46E6-A017-19059C8F33FA}.Release|x64.Build.0 = Release|Any CPU - {6312140D-2271-46E6-A017-19059C8F33FA}.Release|x86.ActiveCfg = Release|Any CPU - {6312140D-2271-46E6-A017-19059C8F33FA}.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 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} - {6312140D-2271-46E6-A017-19059C8F33FA} = {9AA2C35A-2264-B74D-8556-EB72BD88EE60} + {DE7B28E0-F1BB-45B9-9C73-691EAE8F1A60} = {9AA2C35A-2264-B74D-8556-EB72BD88EE60} EndGlobalSection EndGlobal diff --git a/src/Migrate/Migrate/Az.Migrate.psd1 b/src/Migrate/Migrate/Az.Migrate.psd1 index 690cfd2416f1..7d23b5119c9a 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: 9/9/2025 +# Generated on: 7/30/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.3.0'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.2.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 8d02def03ba1..a5c9dd5164c4 100644 --- a/src/Migrate/Migrate/ChangeLog.md +++ b/src/Migrate/Migrate/ChangeLog.md @@ -18,7 +18,6 @@ - Additional information about change #1 --> ## Upcoming Release -* Enhanced Get-AzMigrateServerMigrationStatus to add support for the -Expedite parameter. ## Version 2.9.0 * Added `-OsType` as an optional parameter to command `Set-AzMigrateLocalServerReplication` to allow user-specified OS type. diff --git a/src/Migrate/Migrate/help/Az.Migrate.md b/src/Migrate/Migrate/help/Az.Migrate.md index efa9a16d290d..f66f1a154efc 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) -Initialises the infrastructure for the migrate project. +Initializes 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 5f52e5cfe032..3a1f58858b40 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateDiscoveredServer.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateDiscoveredServer.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratediscoveredserver schema: 2.0.0 @@ -15,29 +15,27 @@ Get All discovered servers in a migrate project. ### List (Default) ``` Get-AzMigrateDiscoveredServer -ProjectName -ResourceGroupName [-DisplayName ] - [-SourceMachineType ] [-SubscriptionId ] [-WhatIf] - [-Confirm] [] + [-SourceMachineType ] [-SubscriptionId ] [-Confirm] [-WhatIf] [] ``` -### ListInSite +### Get ``` -Get-AzMigrateDiscoveredServer -ProjectName -ResourceGroupName [-DisplayName ] - [-SourceMachineType ] [-SubscriptionId ] -ApplianceName - [-WhatIf] [-Confirm] [] +Get-AzMigrateDiscoveredServer -Name -ProjectName -ResourceGroupName + [-SourceMachineType ] [-SubscriptionId ] [-Confirm] [-WhatIf] [] ``` -### Get +### GetInSite ``` -Get-AzMigrateDiscoveredServer -ProjectName -ResourceGroupName [-SourceMachineType ] - [-SubscriptionId ] -Name [-WhatIf] [-Confirm] +Get-AzMigrateDiscoveredServer -ApplianceName -Name -ProjectName + -ResourceGroupName [-SourceMachineType ] [-SubscriptionId ] [-Confirm] [-WhatIf] [] ``` -### GetInSite +### ListInSite ``` -Get-AzMigrateDiscoveredServer -ProjectName -ResourceGroupName [-SourceMachineType ] - [-SubscriptionId ] -Name -ApplianceName - [-WhatIf] [-Confirm] [] +Get-AzMigrateDiscoveredServer -ApplianceName -ProjectName -ResourceGroupName + [-DisplayName ] [-SourceMachineType ] [-SubscriptionId ] [-Confirm] [-WhatIf] + [] ``` ## DESCRIPTION @@ -63,6 +61,7 @@ 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. @@ -76,6 +75,7 @@ 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,6 +99,7 @@ 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. @@ -112,6 +113,7 @@ 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. @@ -132,6 +134,7 @@ 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. @@ -181,7 +184,7 @@ This internally maps to a site. ```yaml Type: System.String -Parameter Sets: ListInSite, GetInSite +Parameter Sets: GetInSite, ListInSite Aliases: Required: True @@ -329,3 +332,4 @@ 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 e3adbfcf7ef4..7a7760dfac4d 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateJob.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateJob.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratejob schema: 2.0.0 @@ -14,31 +14,30 @@ Retrieves the status of an Azure Migrate job. ### ListByName (Default) ``` -Get-AzMigrateJob -ResourceGroupName -ProjectName [-SubscriptionId ] +Get-AzMigrateJob -ProjectName -ResourceGroupName [-SubscriptionId ] [-Filter ] [-DefaultProfile ] [] ``` -### GetByName +### GetById ``` -Get-AzMigrateJob -ResourceGroupName -ProjectName [-SubscriptionId ] -JobName - [-DefaultProfile ] [] +Get-AzMigrateJob -JobID [-SubscriptionId ] [-DefaultProfile ] [] ``` -### GetById +### GetByInputObject ``` -Get-AzMigrateJob [-SubscriptionId ] -JobID [-DefaultProfile ] +Get-AzMigrateJob -InputObject [-SubscriptionId ] [-DefaultProfile ] [] ``` -### GetByInputObject +### GetByName ``` -Get-AzMigrateJob [-SubscriptionId ] -InputObject [-DefaultProfile ] - [] +Get-AzMigrateJob -JobName -ProjectName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] ``` ### ListById ``` -Get-AzMigrateJob [-SubscriptionId ] -ResourceGroupID -ProjectID [-Filter ] +Get-AzMigrateJob -ProjectID -ResourceGroupID [-SubscriptionId ] [-Filter ] [-DefaultProfile ] [] ``` @@ -49,7 +48,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 @@ -159,7 +158,7 @@ OData filter options. ```yaml Type: System.String -Parameter Sets: ListByName, ListById +Parameter Sets: ListById, ListByName Aliases: Required: False @@ -235,7 +234,7 @@ The name of the migrate project. ```yaml Type: System.String -Parameter Sets: ListByName, GetByName +Parameter Sets: GetByName, ListByName Aliases: Required: True @@ -265,7 +264,7 @@ The name of the resource group where the recovery services vault is present. ```yaml Type: System.String -Parameter Sets: ListByName, GetByName +Parameter Sets: GetByName, ListByName Aliases: Required: True @@ -302,3 +301,4 @@ 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 147526d5592a..fc4f9b8c0ed2 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateLocalJob.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateLocalJob.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: 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 -ResourceGroupName -ProjectName [-SubscriptionId ] +Get-AzMigrateLocalJob -ProjectName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] ``` -### GetByName -``` -Get-AzMigrateLocalJob -ResourceGroupName -ProjectName [-SubscriptionId ] - -Name [-DefaultProfile ] [] -``` - ### GetById ``` -Get-AzMigrateLocalJob [-SubscriptionId ] -ID [-DefaultProfile ] +Get-AzMigrateLocalJob -ID [-SubscriptionId ] [-DefaultProfile ] [] ``` ### GetByInputObject ``` -Get-AzMigrateLocalJob [-SubscriptionId ] -InputObject [-DefaultProfile ] +Get-AzMigrateLocalJob -InputObject [-SubscriptionId ] [-DefaultProfile ] [] ``` +### GetByName +``` +Get-AzMigrateLocalJob -Name -ProjectName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + ### ListById ``` -Get-AzMigrateLocalJob [-SubscriptionId ] -ResourceGroupID -ProjectID +Get-AzMigrateLocalJob -ProjectID -ResourceGroupID [-SubscriptionId ] [-DefaultProfile ] [] ``` @@ -384,7 +384,7 @@ The name of the migrate project. ```yaml Type: System.String -Parameter Sets: ListByName, GetByName +Parameter Sets: GetByName, ListByName 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: ListByName, GetByName +Parameter Sets: GetByName, ListByName Aliases: Required: True @@ -453,3 +453,4 @@ 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 7ca42f588f2b..3f8a2170a51b 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateLocalReplicationFabric.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateLocalReplicationFabric.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratelocalreplicationfabric schema: 2.0.0 @@ -24,17 +24,16 @@ Get-AzMigrateLocalReplicationFabric -Name -ResourceGroupName [ [-DefaultProfile ] [] ``` -### List1 +### GetViaIdentity ``` -Get-AzMigrateLocalReplicationFabric -ResourceGroupName [-SubscriptionId ] - [-ContinuationToken ] [-DefaultProfile ] +Get-AzMigrateLocalReplicationFabric -InputObject [-DefaultProfile ] [] ``` -### GetViaIdentity +### List1 ``` -Get-AzMigrateLocalReplicationFabric -InputObject [-DefaultProfile ] - [] +Get-AzMigrateLocalReplicationFabric -ResourceGroupName [-SubscriptionId ] + [-ContinuationToken ] [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -241,7 +240,7 @@ Azure Subscription Id in which migrate project was created. ```yaml Type: System.String[] -Parameter Sets: List, Get, List1 +Parameter Sets: Get, List, List1 Aliases: Required: False @@ -265,3 +264,4 @@ 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 f3f571b32d30..88ee8137805e 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateLocalServerReplication.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateLocalServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratelocalserverreplication schema: 2.0.0 @@ -14,39 +14,37 @@ Retrieves the details of the replicating server. ### ListByName (Default) ``` -Get-AzMigrateLocalServerReplication -ResourceGroupName -ProjectName - [-SubscriptionId ] [-DefaultProfile ] - [] +Get-AzMigrateLocalServerReplication -ProjectName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] ``` -### GetByMachineName +### GetByInputObject ``` -Get-AzMigrateLocalServerReplication -ResourceGroupName -ProjectName - [-SubscriptionId ] -MachineName [-DefaultProfile ] - [] +Get-AzMigrateLocalServerReplication -InputObject [-SubscriptionId ] + [-DefaultProfile ] [] ``` ### GetByItemID ``` -Get-AzMigrateLocalServerReplication [-SubscriptionId ] -TargetObjectID +Get-AzMigrateLocalServerReplication -TargetObjectID [-SubscriptionId ] [-DefaultProfile ] [] ``` -### GetBySDSID +### GetByMachineName ``` -Get-AzMigrateLocalServerReplication [-SubscriptionId ] -DiscoveredMachineId - [-DefaultProfile ] [] +Get-AzMigrateLocalServerReplication -MachineName -ProjectName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] ``` -### GetByInputObject +### GetBySDSID ``` -Get-AzMigrateLocalServerReplication [-SubscriptionId ] -InputObject +Get-AzMigrateLocalServerReplication -DiscoveredMachineId [-SubscriptionId ] [-DefaultProfile ] [] ``` ### ListById ``` -Get-AzMigrateLocalServerReplication [-SubscriptionId ] -ResourceGroupID -ProjectID +Get-AzMigrateLocalServerReplication -ProjectID -ResourceGroupID [-SubscriptionId ] [-DefaultProfile ] [] ``` @@ -77,7 +75,8 @@ 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 @@ -101,6 +100,7 @@ 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: ListByName, GetByMachineName +Parameter Sets: GetByMachineName, ListByName 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: ListByName, GetByMachineName +Parameter Sets: GetByMachineName, ListByName Aliases: Required: True @@ -293,3 +293,4 @@ 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 9e1ddefa8044..3c5bf9e8daab 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateProject.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateProject.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigrateproject schema: 2.0.0 @@ -110,3 +110,4 @@ 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 a01397675cab..2fbd1c45a117 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateReplicationFabric.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateReplicationFabric.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationfabric schema: 2.0.0 @@ -20,9 +20,8 @@ Get-AzMigrateReplicationFabric -ResourceGroupName -ResourceName -ResourceName -FabricName - [-SubscriptionId ] [-Filter ] [-DefaultProfile ] - [] +Get-AzMigrateReplicationFabric -FabricName -ResourceGroupName -ResourceName + [-SubscriptionId ] [-Filter ] [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -191,3 +190,4 @@ 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 070b3657187e..530d4cf81977 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateReplicationPolicy.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateReplicationPolicy.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationpolicy schema: 2.0.0 @@ -20,9 +20,8 @@ Get-AzMigrateReplicationPolicy -ResourceGroupName -ResourceName -ResourceName -PolicyName - [-SubscriptionId ] [-DefaultProfile ] - [] +Get-AzMigrateReplicationPolicy -PolicyName -ResourceGroupName -ResourceName + [-SubscriptionId ] [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -149,3 +148,4 @@ 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 5da18942a68e..38701af05381 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainer.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainer.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationprotectioncontainer schema: 2.0.0 @@ -15,22 +15,20 @@ Gets the details of a protection container. ### List1 (Default) ``` Get-AzMigrateReplicationProtectionContainer -ResourceGroupName -ResourceName - [-SubscriptionId ] [-DefaultProfile ] - [] + [-SubscriptionId ] [-DefaultProfile ] [] ``` -### List +### Get ``` -Get-AzMigrateReplicationProtectionContainer -ResourceGroupName -ResourceName - -FabricName [-SubscriptionId ] [-DefaultProfile ] +Get-AzMigrateReplicationProtectionContainer -FabricName -ProtectionContainerName + -ResourceGroupName -ResourceName [-SubscriptionId ] [-DefaultProfile ] [] ``` -### Get +### List ``` -Get-AzMigrateReplicationProtectionContainer -ResourceGroupName -ResourceName - -FabricName -ProtectionContainerName [-SubscriptionId ] - [-DefaultProfile ] [] +Get-AzMigrateReplicationProtectionContainer -FabricName -ResourceGroupName + -ResourceName [-SubscriptionId ] [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -87,7 +85,7 @@ Fabric name. ```yaml Type: System.String -Parameter Sets: List, Get +Parameter Sets: Get, List Aliases: Required: True @@ -169,3 +167,4 @@ 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 e7269d2a1231..e782988ad205 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainerMapping.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainerMapping.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationprotectioncontainermapping schema: 2.0.0 @@ -15,22 +15,21 @@ Gets the details of a protection container mapping. ### List1 (Default) ``` Get-AzMigrateReplicationProtectionContainerMapping -ResourceGroupName -ResourceName - [-SubscriptionId ] [-DefaultProfile ] - [] + [-SubscriptionId ] [-DefaultProfile ] [] ``` -### List +### Get ``` -Get-AzMigrateReplicationProtectionContainerMapping -ResourceGroupName -ResourceName - -FabricName -ProtectionContainerName [-SubscriptionId ] - [-DefaultProfile ] [] +Get-AzMigrateReplicationProtectionContainerMapping -FabricName -MappingName + -ProtectionContainerName -ResourceGroupName -ResourceName + [-SubscriptionId ] [-DefaultProfile ] [] ``` -### Get +### List ``` -Get-AzMigrateReplicationProtectionContainerMapping -ResourceGroupName -ResourceName - -FabricName -MappingName -ProtectionContainerName [-SubscriptionId ] - [-DefaultProfile ] [] +Get-AzMigrateReplicationProtectionContainerMapping -FabricName -ProtectionContainerName + -ResourceGroupName -ResourceName [-SubscriptionId ] [-DefaultProfile ] + [] ``` ## DESCRIPTION @@ -74,7 +73,7 @@ Fabric name. ```yaml Type: System.String -Parameter Sets: List, Get +Parameter Sets: Get, List Aliases: Required: True @@ -104,7 +103,7 @@ Protection container name. ```yaml Type: System.String -Parameter Sets: List, Get +Parameter Sets: Get, List Aliases: Required: True @@ -171,3 +170,4 @@ 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 b2d57a52b362..b03a9f553907 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateReplicationRecoveryServicesProvider.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateReplicationRecoveryServicesProvider.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationrecoveryservicesprovider schema: 2.0.0 @@ -15,14 +15,13 @@ Gets the details of registered recovery services provider. ### List (Default) ``` Get-AzMigrateReplicationRecoveryServicesProvider -ResourceGroupName -ResourceName - [-SubscriptionId ] [-DefaultProfile ] - [] + [-SubscriptionId ] [-DefaultProfile ] [] ``` ### Get ``` -Get-AzMigrateReplicationRecoveryServicesProvider -ResourceGroupName -ResourceName - -FabricName -ProviderName [-SubscriptionId ] [-DefaultProfile ] +Get-AzMigrateReplicationRecoveryServicesProvider -FabricName -ProviderName + -ResourceGroupName -ResourceName [-SubscriptionId ] [-DefaultProfile ] [] ``` @@ -149,3 +148,4 @@ 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 110295c2b3ba..f36b5737a2d8 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateRunAsAccount.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateRunAsAccount.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigraterunasaccount schema: 2.0.0 @@ -20,9 +20,8 @@ Get-AzMigrateRunAsAccount -ResourceGroupName -SiteName [-Subsc ### Get ``` -Get-AzMigrateRunAsAccount -ResourceGroupName -SiteName -AccountName - [-SubscriptionId ] [-DefaultProfile ] - [] +Get-AzMigrateRunAsAccount -AccountName -ResourceGroupName -SiteName + [-SubscriptionId ] [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -147,3 +146,4 @@ 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 cf149d025072..68ebb9d23196 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateServerMigrationStatus.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateServerMigrationStatus.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigrateservermigrationstatus schema: 2.0.0 @@ -14,35 +14,27 @@ Retrieves the details of the replicating server status. ### ListByName (Default) ``` -Get-AzMigrateServerMigrationStatus -ResourceGroupName -ProjectName [-SubscriptionId ] - [-Filter ] [-SkipToken ] [-DefaultProfile ] +Get-AzMigrateServerMigrationStatus -ProjectName -ResourceGroupName + [-SubscriptionId ] [-Filter ] [-SkipToken ] [-DefaultProfile ] [] ``` -### GetByMachineName -``` -Get-AzMigrateServerMigrationStatus -ResourceGroupName -ProjectName [-SubscriptionId ] - -MachineName [-DefaultProfile ] [] -``` - -### GetHealthByMachineName +### GetByApplianceName ``` -Get-AzMigrateServerMigrationStatus -ResourceGroupName -ProjectName [-SubscriptionId ] - -MachineName [-Health] [-DefaultProfile ] - [] +Get-AzMigrateServerMigrationStatus -ApplianceName -ProjectName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] ``` -### GetByPrioritiseServer +### GetByMachineName ``` -Get-AzMigrateServerMigrationStatus -ResourceGroupName -ProjectName [-SubscriptionId ] - -MachineName [-Expedite] [-DefaultProfile ] - [] +Get-AzMigrateServerMigrationStatus -MachineName -ProjectName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] ``` -### GetByApplianceName +### GetHealthByMachineName ``` -Get-AzMigrateServerMigrationStatus -ResourceGroupName -ProjectName [-SubscriptionId ] - -ApplianceName [-DefaultProfile ] [] +Get-AzMigrateServerMigrationStatus -Health -MachineName -ProjectName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -52,15 +44,14 @@ The Get-AzMigrateServerMigrationStatus cmdlet retrieves the replication status f ### Example 1: List status by project name. ```powershell -Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" +Get-AzMigrateServerMigrationStatus -ResourceGroupName cbtpvtrg -ProjectName migpvt ``` ```output -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 +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 @@ -73,102 +64,44 @@ Get by project name. ### Example 2: List status by machine name. ```powershell -Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -MachineName "Rhel8-Vm" +Get-AzMigrateServerMigrationStatus -ProjectName "migpvt-ecyproj" -ResourceGroupName "cbtprivatestamprg" -MachineName "CVM-Win2019" ``` ```output -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 +Server CVM-Win2019 is currently healthy. +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 ----- ----- -------- ----------- ------------- ----------- --------- -Rhel8-Vm DeltaReplication Completed - - - - IDCLAB-B161-3TB +Disk State Progress TimeElapsed TimeRemaining UploadSpeed Datastore +---- ----- -------- ----------- ------------- ----------- --------- +TestVM DeltaReplication Completed - - - - Shared_1TB +CVM-Win2019 DeltaReplication Completed - - - - datastore1 ``` Get by machine name. -### Example 3: List status by appliance name. +### Example 2: List status by appliance name. ```powershell -Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -ApplianceName "cbtresyncgql" +Get-AzMigrateServerMigrationStatus -ProjectName "migpvt-ecyproj" -ResourceGroupName "cbtprivatestamprg" -ApplianceName "migpvt" ``` ```output -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 +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 -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 @@ -201,21 +134,6 @@ 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. @@ -247,11 +165,12 @@ Accept wildcard characters: False ``` ### -MachineName -Specifies the display name of the replicating machine. +[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] + Specifies the display name of the replicating machine. ```yaml Type: System.String -Parameter Sets: GetByMachineName, GetHealthByMachineName, GetByPrioritiseServer +Parameter Sets: GetByMachineName, GetHealthByMachineName Aliases: Required: True @@ -262,7 +181,8 @@ Accept wildcard characters: False ``` ### -ProjectName -Specifies the Azure Migrate project in the current subscription. +[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] + Specifies the Azure Migrate project in the current subscription. ```yaml Type: System.String @@ -277,7 +197,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -Specifies the Resource Group of the Azure Migrate Project in the current subscription. +[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] + Specifies the Resource Group of the Azure Migrate Project in the current subscription. ```yaml Type: System.String @@ -333,3 +254,4 @@ 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 89a2b5b68492..832fe8866243 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigrateserverreplication schema: 2.0.0 @@ -14,40 +14,38 @@ Retrieves the details of the replicating server. ### ListByName (Default) ``` -Get-AzMigrateServerReplication -ResourceGroupName -ProjectName [-SubscriptionId ] - [-Filter ] [-SkipToken ] [-DefaultProfile ] - [] +Get-AzMigrateServerReplication -ProjectName -ResourceGroupName [-SubscriptionId ] + [-Filter ] [-SkipToken ] [-DefaultProfile ] [] ``` -### GetByMachineName +### GetByInputObject ``` -Get-AzMigrateServerReplication -ResourceGroupName -ProjectName [-SubscriptionId ] - -MachineName [-DefaultProfile ] [] +Get-AzMigrateServerReplication -InputObject [-SubscriptionId ] + [-DefaultProfile ] [] ``` -### GetBySRSID +### GetByMachineName ``` -Get-AzMigrateServerReplication [-SubscriptionId ] -TargetObjectID [-DefaultProfile ] - [] +Get-AzMigrateServerReplication -MachineName -ProjectName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] ``` ### GetBySDSID ``` -Get-AzMigrateServerReplication [-SubscriptionId ] -DiscoveredMachineId +Get-AzMigrateServerReplication -DiscoveredMachineId [-SubscriptionId ] [-DefaultProfile ] [] ``` -### GetByInputObject +### GetBySRSID ``` -Get-AzMigrateServerReplication [-SubscriptionId ] -InputObject +Get-AzMigrateServerReplication -TargetObjectID [-SubscriptionId ] [-DefaultProfile ] [] ``` ### ListById ``` -Get-AzMigrateServerReplication [-SubscriptionId ] -ResourceGroupID -ProjectID - [-Filter ] [-SkipToken ] [-DefaultProfile ] - [] +Get-AzMigrateServerReplication -ProjectID -ResourceGroupID [-SubscriptionId ] + [-Filter ] [-SkipToken ] [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -254,7 +252,7 @@ OData filter options. ```yaml Type: System.String -Parameter Sets: ListByName, ListById +Parameter Sets: ListById, ListByName Aliases: Required: False @@ -315,7 +313,7 @@ Specifies the Azure Migrate project in the current subscription. ```yaml Type: System.String -Parameter Sets: ListByName, GetByMachineName +Parameter Sets: GetByMachineName, ListByName Aliases: Required: True @@ -345,7 +343,7 @@ Specifies the Resource Group of the Azure Migrate Project in the current subscri ```yaml Type: System.String -Parameter Sets: ListByName, GetByMachineName +Parameter Sets: GetByMachineName, ListByName Aliases: Required: True @@ -360,7 +358,7 @@ The pagination token. ```yaml Type: System.String -Parameter Sets: ListByName, ListById +Parameter Sets: ListById, ListByName Aliases: Required: False @@ -412,3 +410,4 @@ 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 41cd2a270d1a..8c7266aa8535 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateSite.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateSite.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratesite schema: 2.0.0 @@ -31,6 +31,7 @@ Get-AzMigrateSite -SubscriptionId xxx-xxx-xxx -ResourceGroupName BugBashAVSVMwar ETag Location Name Type ---- -------- ---- ---- southeastasia BBVMwareAVScbbcsite Microsoft.OffAzure/VMwareSites + ``` Get site by name @@ -111,3 +112,4 @@ 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 802793a79b45..54a477416235 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateSolution.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateSolution.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratesolution schema: 2.0.0 @@ -14,8 +14,7 @@ Gets a solution in the migrate project. ``` Get-AzMigrateSolution -MigrateProjectName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] - [] + [-SubscriptionId ] [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -126,3 +125,4 @@ 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 26a17be0ac32..0926922b75f5 100644 --- a/src/Migrate/Migrate/help/Initialize-AzMigrateLocalReplicationInfrastructure.md +++ b/src/Migrate/Migrate/help/Initialize-AzMigrateLocalReplicationInfrastructure.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/initialize-azmigratelocalreplicationinfrastructure schema: 2.0.0 @@ -13,10 +13,9 @@ Initializes the infrastructure for the migrate project. ## SYNTAX ``` -Initialize-AzMigrateLocalReplicationInfrastructure -ResourceGroupName -ProjectName +Initialize-AzMigrateLocalReplicationInfrastructure -ProjectName -ResourceGroupName -SourceApplianceName -TargetApplianceName [-CacheStorageAccountId ] - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] - [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -215,3 +214,4 @@ 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 5d42e6f1aa85..32e4cc529376 100644 --- a/src/Migrate/Migrate/help/Initialize-AzMigrateReplicationInfrastructure.md +++ b/src/Migrate/Migrate/help/Initialize-AzMigrateReplicationInfrastructure.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: 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 -ResourceGroupName -ProjectName +Initialize-AzMigrateReplicationInfrastructure -ProjectName -ResourceGroupName -Scenario -TargetRegion [-CacheStorageAccountId ] [-SubscriptionId ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -195,3 +195,4 @@ 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 4c2513e11a04..ea89ddeb3edb 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateDiskMapping.md +++ b/src/Migrate/Migrate/help/New-AzMigrateDiskMapping.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: 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 -IsOSDisk -DiskType [-DiskEncryptionSetID ] - [] +New-AzMigrateDiskMapping -DiskID -DiskType -IsOSDisk + [-DiskEncryptionSetID ] [] ``` ## DESCRIPTION @@ -33,6 +33,8 @@ 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' @@ -120,3 +122,4 @@ 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 9d4f307b1966..47164f1d6be3 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateLocalDiskMappingObject.md +++ b/src/Migrate/Migrate/help/New-AzMigrateLocalDiskMappingObject.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: 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 -IsOSDisk -IsDynamic -Size - -Format [-PhysicalSectorSize ] [] +New-AzMigrateLocalDiskMappingObject -DiskID -Format -IsDynamic -IsOSDisk + -Size [-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,3 +143,4 @@ 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 2392758d6986..cc24799c603e 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateLocalNicMappingObject.md +++ b/src/Migrate/Migrate/help/New-AzMigrateLocalNicMappingObject.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratelocalnicmappingobject schema: 2.0.0 @@ -13,9 +13,8 @@ Creates an object to update NIC properties of a replicating server. ## SYNTAX ``` -New-AzMigrateLocalNicMappingObject -NicID [-TargetVirtualSwitchId ] - [-TargetTestVirtualSwitchId ] [-CreateAtTarget ] - [] +New-AzMigrateLocalNicMappingObject -NicID [-CreateAtTarget ] + [-TargetTestVirtualSwitchId ] [-TargetVirtualSwitchId ] [] ``` ## DESCRIPTION @@ -112,3 +111,4 @@ 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 f560d5d3a5bc..137d19b2b8ac 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateLocalServerReplication.md +++ b/src/Migrate/Migrate/help/New-AzMigrateLocalServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratelocalserverreplication schema: 2.0.0 @@ -14,22 +14,20 @@ Starts replication for the specified server. ### ByIdDefaultUser (Default) ``` -New-AzMigrateLocalServerReplication -MachineId -TargetStoragePathId - -TargetResourceGroupId -TargetVMName -SourceApplianceName - -TargetApplianceName -TargetVirtualSwitchId -OSDiskID [-TargetVMCPUCore ] - [-TargetTestVirtualSwitchId ] [-IsDynamicMemoryEnabled ] [-TargetVMRam ] - [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] - [-Confirm] [] +New-AzMigrateLocalServerReplication -MachineId -OSDiskID -SourceApplianceName + -TargetApplianceName -TargetResourceGroupId -TargetStoragePathId + -TargetVirtualSwitchId -TargetVMName [-IsDynamicMemoryEnabled ] + [-SubscriptionId ] [-TargetTestVirtualSwitchId ] [-TargetVMCPUCore ] + [-TargetVMRam ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### ByIdPowerUser ``` -New-AzMigrateLocalServerReplication -MachineId -TargetStoragePathId - -TargetResourceGroupId -TargetVMName -SourceApplianceName - -TargetApplianceName [-TargetVMCPUCore ] [-IsDynamicMemoryEnabled ] - [-TargetVMRam ] [-SubscriptionId ] -DiskToInclude - -NicToInclude [-DefaultProfile ] [-WhatIf] - [-Confirm] [] +New-AzMigrateLocalServerReplication -DiskToInclude -MachineId + -NicToInclude -SourceApplianceName -TargetApplianceName + -TargetResourceGroupId -TargetStoragePathId -TargetVMName + [-IsDynamicMemoryEnabled ] [-SubscriptionId ] [-TargetVMCPUCore ] + [-TargetVMRam ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -68,7 +66,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. @@ -404,3 +402,4 @@ 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 fb395de861b1..e0d9720995ea 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateNicMapping.md +++ b/src/Migrate/Migrate/help/New-AzMigrateNicMapping.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: 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 [-TargetNicSelectionType ] [-TargetNicSubnet ] - [-TargetNicName ] [-TargetNicIP ] [-TestNicSubnet ] [-TestNicIP ] - [] +New-AzMigrateNicMapping -NicID [-TargetNicIP ] [-TargetNicName ] + [-TargetNicSelectionType ] [-TargetNicSubnet ] [-TestNicIP ] + [-TestNicSubnet ] [] ``` ## DESCRIPTION @@ -156,3 +156,4 @@ 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 98416935a419..acc0f929111a 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateProject.md +++ b/src/Migrate/Migrate/help/New-AzMigrateProject.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/new-azmigrateproject schema: 2.0.0 @@ -13,9 +13,8 @@ Creates a new Migrate project. ## SYNTAX ``` -New-AzMigrateProject -Name -ResourceGroupName -Location [-ETag ] - [-Property ] [-SubscriptionId ] - [-WhatIf] [-Confirm] [] +New-AzMigrateProject -Location -Name -ResourceGroupName [-ETag ] + [-Property ] [-SubscriptionId ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -32,6 +31,7 @@ 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,3 +170,4 @@ 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 e77f53e15674..1aff2f20a639 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateReplicationPolicy.md +++ b/src/Migrate/Migrate/help/New-AzMigrateReplicationPolicy.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratereplicationpolicy schema: 2.0.0 @@ -15,8 +15,7 @@ The operation to create a replication policy. ``` New-AzMigrateReplicationPolicy -PolicyName -ResourceGroupName -ResourceName [-SubscriptionId ] [-ProviderSpecificInput ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -38,6 +37,7 @@ New-AzMigrateReplicationPolicy -PolicyName TestPolicy -ResourceGroupName Resourc Location Name Type -------- ---- ---- TestPolicy Microsoft.RecoveryServices/vaults/replicationPolicies + ``` Creates a policy for VmWare Cbt @@ -209,3 +209,4 @@ 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 2d9f687f0d6e..e7240e2c44db 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateReplicationProtectionContainerMapping.md +++ b/src/Migrate/Migrate/help/New-AzMigrateReplicationProtectionContainerMapping.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: 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] - [-WhatIf] [-Confirm] [] + [-TargetProtectionContainerId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ## DESCRIPTION @@ -275,3 +275,4 @@ 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 35f4507393d5..b68a44fcac88 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/New-AzMigrateServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/new-azmigrateserverreplication schema: 2.0.0 @@ -14,57 +14,55 @@ Starts replication for the specified server. ### ByIdDefaultUser (Default) ``` -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 ] [] +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 ] [] ``` ### ByIdPowerUser ``` -New-AzMigrateServerReplication -LicenseType -TargetResourceGroupId -TargetNetworkId - -TargetSubnetName -TargetVMName -MachineId [-SqlServerLicenseType ] - [-LinuxLicenseType ] [-TestNetworkId ] [-TestSubnetName ] - [-VMWarerunasaccountID ] [-TargetVMSize ] [-PerformAutoResync ] +New-AzMigrateServerReplication -DiskToInclude -LicenseType + -MachineId -TargetNetworkId -TargetResourceGroupId -TargetSubnetName + -TargetVMName [-DiskTag ] [-LinuxLicenseType ] + [-NicTag ] [-PerformAutoResync ] + [-SqlServerLicenseType ] [-SubscriptionId ] [-Tag ] [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] - [-VMTag ] [-NicTag ] - [-DiskTag ] [-Tag ] - [-TargetBootDiagnosticsStorageAccount ] [-SubscriptionId ] - -DiskToInclude [-DefaultProfile ] - [] + [-TargetBootDiagnosticsStorageAccount ] [-TargetVMSize ] [-TestNetworkId ] + [-TestSubnetName ] [-VMTag ] + [-VMWarerunasaccountID ] [-DefaultProfile ] [] ``` ### ByInputObjectDefaultUser ``` -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 ] - [] +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 ] [] ``` ### ByInputObjectPowerUser ``` -New-AzMigrateServerReplication -LicenseType -TargetResourceGroupId -TargetNetworkId - -TargetSubnetName -TargetVMName [-SqlServerLicenseType ] - [-LinuxLicenseType ] [-TestNetworkId ] [-TestSubnetName ] - [-VMWarerunasaccountID ] [-TargetVMSize ] [-PerformAutoResync ] +New-AzMigrateServerReplication -DiskToInclude -InputObject + -LicenseType -TargetNetworkId -TargetResourceGroupId -TargetSubnetName + -TargetVMName [-DiskTag ] [-LinuxLicenseType ] + [-NicTag ] [-PerformAutoResync ] + [-SqlServerLicenseType ] [-SubscriptionId ] [-Tag ] [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] - [-VMTag ] [-NicTag ] - [-DiskTag ] [-Tag ] - [-TargetBootDiagnosticsStorageAccount ] [-SubscriptionId ] - -DiskToInclude -InputObject [-DefaultProfile ] - [] + [-TargetBootDiagnosticsStorageAccount ] [-TargetVMSize ] [-TestNetworkId ] + [-TestSubnetName ] [-VMTag ] + [-VMWarerunasaccountID ] [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -562,3 +560,4 @@ 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 d528125e7bfa..3d566f33ed30 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateTestNicMapping.md +++ b/src/Migrate/Migrate/help/New-AzMigrateTestNicMapping.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratetestnicmapping schema: 2.0.0 @@ -13,8 +13,7 @@ Creates an object to update NIC properties of a test migrating server. ## SYNTAX ``` -New-AzMigrateTestNicMapping -NicID -TestNicSubnet - [-WhatIf] [-Confirm] [] +New-AzMigrateTestNicMapping -NicID -TestNicSubnet [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -111,3 +110,4 @@ 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 bd3d85951b58..c326e5a34428 100644 --- a/src/Migrate/Migrate/help/Register-AzMigrateProjectTool.md +++ b/src/Migrate/Migrate/help/Register-AzMigrateProjectTool.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: 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 ] - [-WhatIf] [-Confirm] [] + [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -171,3 +171,4 @@ 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 d865f1d03e98..fe693b37e81a 100644 --- a/src/Migrate/Migrate/help/Remove-AzMigrateLocalServerReplication.md +++ b/src/Migrate/Migrate/help/Remove-AzMigrateLocalServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/remove-azmigratelocalserverreplication schema: 2.0.0 @@ -15,15 +15,13 @@ Stops replication for the migrated server. ### ByID (Default) ``` Remove-AzMigrateLocalServerReplication -TargetObjectID [-SubscriptionId ] - [-ForceRemove ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-ForceRemove ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### ByInputObject ``` -Remove-AzMigrateLocalServerReplication [-SubscriptionId ] -InputObject - [-ForceRemove ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] +Remove-AzMigrateLocalServerReplication -InputObject [-SubscriptionId ] + [-ForceRemove ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -233,3 +231,4 @@ 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 f48c69c53986..2ea0719f91f3 100644 --- a/src/Migrate/Migrate/help/Remove-AzMigrateProject.md +++ b/src/Migrate/Migrate/help/Remove-AzMigrateProject.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/remove-azmigrateproject schema: 2.0.0 @@ -15,8 +15,7 @@ Deleting non-existent project is a no-operation. ``` Remove-AzMigrateProject -Name -ResourceGroupName [-SubscriptionId ] - [-AcceptLanguage ] [-DefaultProfile ] [-PassThru] - [-WhatIf] [-Confirm] [] + [-AcceptLanguage ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -170,3 +169,4 @@ 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 4b3dfb032145..1e603eec70ac 100644 --- a/src/Migrate/Migrate/help/Remove-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Remove-AzMigrateServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: 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 ] -InputObject +Remove-AzMigrateServerReplication -InputObject [-SubscriptionId ] [-ForceRemove ] [-DefaultProfile ] [] ``` @@ -55,6 +55,7 @@ TargetObjectId : 101883a0-23f7-538a-bbd5-6d8b4fa900e2 TargetObjectName : prsadhu-TestVM Task : {DisableProtectionOnPrimary, UpdateDraState} Type : Microsoft.RecoveryServices/vaults/replicationJobs + ``` Resync by id. @@ -182,3 +183,4 @@ 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 64046e7d06f9..06f0d44802f1 100644 --- a/src/Migrate/Migrate/help/Restart-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Restart-AzMigrateServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: 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 ] -InputObject +Restart-AzMigrateServerReplication -InputObject [-SubscriptionId ] [-DefaultProfile ] [] ``` @@ -166,3 +166,4 @@ 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 e1b103335f94..0b86d8ea49f7 100644 --- a/src/Migrate/Migrate/help/Resume-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Resume-AzMigrateServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/resume-azmigrateserverreplication schema: 2.0.0 @@ -14,15 +14,14 @@ Starts the replication that has been suspended. ### ByIDVMwareCbt (Default) ``` -Resume-AzMigrateServerReplication -TargetObjectID [-DeleteMigratedResource] [-SubscriptionId ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Resume-AzMigrateServerReplication -TargetObjectID [-DeleteMigratedResource] + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### ByInputObjectVMwareCbt ``` -Resume-AzMigrateServerReplication [-DeleteMigratedResource] [-SubscriptionId ] - -InputObject [-DefaultProfile ] [-WhatIf] - [-Confirm] [] +Resume-AzMigrateServerReplication -InputObject [-DeleteMigratedResource] + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -214,3 +213,4 @@ 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 8ef16f8810c9..4247ea0c100b 100644 --- a/src/Migrate/Migrate/help/Set-AzMigrateDiskMapping.md +++ b/src/Migrate/Migrate/help/Set-AzMigrateDiskMapping.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/set-azmigratediskmapping schema: 2.0.0 @@ -13,8 +13,7 @@ Updates disk mapping ## SYNTAX ``` -Set-AzMigrateDiskMapping -DiskID [-DiskName ] [-IsOSDisk ] - [] +Set-AzMigrateDiskMapping -DiskID [-DiskName ] [-IsOSDisk ] [] ``` ## DESCRIPTION @@ -94,3 +93,4 @@ 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 3f6b23a01cb7..10df4e66133d 100644 --- a/src/Migrate/Migrate/help/Set-AzMigrateLocalServerReplication.md +++ b/src/Migrate/Migrate/help/Set-AzMigrateLocalServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: 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 [-TargetVMCPUCore ] - [-IsDynamicMemoryEnabled ] [-DynamicMemoryConfig ] - [-TargetVMRam ] [-NicToInclude ] [-OsType ] [-SubscriptionId ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Set-AzMigrateLocalServerReplication -TargetObjectID + [-DynamicMemoryConfig ] [-IsDynamicMemoryEnabled ] + [-NicToInclude ] [-OsType ] [-SubscriptionId ] [-TargetVMCPUCore ] + [-TargetVMRam ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## 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,3 +248,4 @@ 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 ae2cd0dc8a54..adb7fd68ab89 100644 --- a/src/Migrate/Migrate/help/Set-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Set-AzMigrateServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/set-azmigrateserverreplication schema: 2.0.0 @@ -14,30 +14,29 @@ Updates the target properties for the replicating server. ### ByIDVMwareCbt (Default) ``` -Set-AzMigrateServerReplication -TargetObjectID [-TargetVMName ] [-TargetDiskName ] - [-TargetVMSize ] [-TargetNetworkId ] [-TestNetworkId ] - [-TargetResourceGroupID ] [-NicToUpdate ] - [-DiskToUpdate ] [-TargetAvailabilitySet ] - [-TargetAvailabilityZone ] [-SqlServerLicenseType ] [-LinuxLicenseType ] +Set-AzMigrateServerReplication -TargetObjectID [-DiskToUpdate ] + [-LinuxLicenseType ] [-NicToUpdate ] [-SqlServerLicenseType ] + [-SubscriptionId ] [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] + [-TargetBootDiagnosticsStorageAccount ] [-TargetDiskName ] [-TargetNetworkId ] + [-TargetResourceGroupID ] [-TargetVMName ] [-TargetVMSize ] [-TestNetworkId ] + [-UpdateDiskTag ] [-UpdateDiskTagOperation ] + [-UpdateNicTag ] [-UpdateNicTagOperation ] [-UpdateTag ] [-UpdateTagOperation ] [-UpdateVMTag ] [-UpdateVMTagOperation ] - [-UpdateNicTag ] [-UpdateNicTagOperation ] - [-UpdateDiskTag ] [-UpdateDiskTagOperation ] - [-TargetBootDiagnosticsStorageAccount ] [-SubscriptionId ] [-DefaultProfile ] - [] + [-DefaultProfile ] [] ``` ### ByInputObjectVMwareCbt ``` -Set-AzMigrateServerReplication [-TargetVMName ] [-TargetDiskName ] [-TargetVMSize ] - [-TargetNetworkId ] [-TestNetworkId ] [-TargetResourceGroupID ] - [-NicToUpdate ] [-DiskToUpdate ] - [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] [-SqlServerLicenseType ] - [-LinuxLicenseType ] [-UpdateTag ] [-UpdateTagOperation ] - [-UpdateVMTag ] [-UpdateVMTagOperation ] - [-UpdateNicTag ] [-UpdateNicTagOperation ] +Set-AzMigrateServerReplication -InputObject [-DiskToUpdate ] + [-LinuxLicenseType ] [-NicToUpdate ] [-SqlServerLicenseType ] + [-SubscriptionId ] [-TargetAvailabilitySet ] [-TargetAvailabilityZone ] + [-TargetBootDiagnosticsStorageAccount ] [-TargetDiskName ] [-TargetNetworkId ] + [-TargetResourceGroupID ] [-TargetVMName ] [-TargetVMSize ] [-TestNetworkId ] [-UpdateDiskTag ] [-UpdateDiskTagOperation ] - [-TargetBootDiagnosticsStorageAccount ] [-SubscriptionId ] -InputObject + [-UpdateNicTag ] [-UpdateNicTagOperation ] + [-UpdateTag ] [-UpdateTagOperation ] + [-UpdateVMTag ] [-UpdateVMTagOperation ] [-DefaultProfile ] [] ``` @@ -509,3 +508,4 @@ 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 620b2129e49b..77fb2f167161 100644 --- a/src/Migrate/Migrate/help/Start-AzMigrateLocalServerMigration.md +++ b/src/Migrate/Migrate/help/Start-AzMigrateLocalServerMigration.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/start-azmigratelocalservermigration schema: 2.0.0 @@ -14,15 +14,14 @@ Starts the migration for the replicating server. ### ByID (Default) ``` -Start-AzMigrateLocalServerMigration -TargetObjectID [-TurnOffSourceServer] [-SubscriptionId ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Start-AzMigrateLocalServerMigration -TargetObjectID [-SubscriptionId ] [-TurnOffSourceServer] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### ByInputObject ``` -Start-AzMigrateLocalServerMigration [-TurnOffSourceServer] [-SubscriptionId ] - -InputObject [-DefaultProfile ] [-WhatIf] - [-Confirm] [] +Start-AzMigrateLocalServerMigration -InputObject [-SubscriptionId ] + [-TurnOffSourceServer] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -239,3 +238,4 @@ 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 4fdd6e642598..e4a52ee0324f 100644 --- a/src/Migrate/Migrate/help/Start-AzMigrateServerMigration.md +++ b/src/Migrate/Migrate/help/Start-AzMigrateServerMigration.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: Module Name: Az.Migrate online version: https://learn.microsoft.com/powershell/module/az.migrate/start-azmigrateservermigration schema: 2.0.0 @@ -14,16 +14,14 @@ Starts the migration for the replicating server. ### ByIDVMwareCbt (Default) ``` -Start-AzMigrateServerMigration -TargetObjectID [-OsUpgradeVersion ] [-TurnOffSourceServer] - [-SubscriptionId ] [-DefaultProfile ] - [] +Start-AzMigrateServerMigration -TargetObjectID [-OsUpgradeVersion ] + [-SubscriptionId ] [-TurnOffSourceServer] [-DefaultProfile ] [] ``` ### ByInputObjectVMwareCbt ``` -Start-AzMigrateServerMigration [-OsUpgradeVersion ] [-TurnOffSourceServer] [-SubscriptionId ] - -InputObject [-DefaultProfile ] - [] +Start-AzMigrateServerMigration -InputObject [-OsUpgradeVersion ] + [-SubscriptionId ] [-TurnOffSourceServer] [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -169,3 +167,4 @@ 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 976b922b267a..9ed1e43089cd 100644 --- a/src/Migrate/Migrate/help/Start-AzMigrateTestMigration.md +++ b/src/Migrate/Migrate/help/Start-AzMigrateTestMigration.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: 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 -TestNetworkID -TargetObjectID [-OsUpgradeVersion ] - [-NicToUpdate ] [-SubscriptionId ] [-DefaultProfile ] - [] +Start-AzMigrateTestMigration -TargetObjectID -TestNetworkID + [-NicToUpdate ] [-OsUpgradeVersion ] [-SubscriptionId ] + [-DefaultProfile ] [] ``` ### ByInputObjectVMwareCbt ``` -Start-AzMigrateTestMigration -TestNetworkID [-OsUpgradeVersion ] - [-NicToUpdate ] [-SubscriptionId ] -InputObject +Start-AzMigrateTestMigration -InputObject -TestNetworkID + [-NicToUpdate ] [-OsUpgradeVersion ] [-SubscriptionId ] [-DefaultProfile ] [] ``` @@ -57,6 +57,7 @@ TargetObjectId : 101883a0-23f7-538a-bbd5-6d8b4fa900e2 TargetObjectName : prsadhu-TestVM Task : {DisableProtectionOnPrimary, UpdateDraState} Type : Microsoft.RecoveryServices/vaults/replicationJobs + ``` By machine id. @@ -88,6 +89,7 @@ TargetObjectId : 101883a0-23f7-538a-bbd5-6d8b4fa900e2 TargetObjectName : prsadhu-TestVM Task : {DisableProtectionOnPrimary, UpdateDraState} Type : Microsoft.RecoveryServices/vaults/replicationJobs + ``` By input object. @@ -216,3 +218,4 @@ 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 7297bf4a90db..e10bbc22304e 100644 --- a/src/Migrate/Migrate/help/Start-AzMigrateTestMigrationCleanup.md +++ b/src/Migrate/Migrate/help/Start-AzMigrateTestMigrationCleanup.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: 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 ] -InputObject +Start-AzMigrateTestMigrationCleanup -InputObject [-SubscriptionId ] [-DefaultProfile ] [] ``` @@ -55,6 +55,7 @@ TargetObjectId : 101883a0-23f7-538a-bbd5-6d8b4fa900e2 TargetObjectName : prsadhu-TestVM Task : {DisableProtectionOnPrimary, UpdateDraState} Type : Microsoft.RecoveryServices/vaults/replicationJobs + ``` By machine id. @@ -88,6 +89,7 @@ TargetObjectId : 101883a0-23f7-538a-bbd5-6d8b4fa900e2 TargetObjectName : prsadhu-TestVM Task : {DisableProtectionOnPrimary, UpdateDraState} Type : Microsoft.RecoveryServices/vaults/replicationJobs + ``` By input object. @@ -169,3 +171,4 @@ 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 839e0fddd718..329b05086c1f 100644 --- a/src/Migrate/Migrate/help/Suspend-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Suspend-AzMigrateServerReplication.md @@ -1,5 +1,5 @@ --- -external help file: Az.Migrate-help.xml +external help file: 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 ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### ByInputObjectVMwareCbt ``` -Suspend-AzMigrateServerReplication [-SubscriptionId ] -InputObject - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Suspend-AzMigrateServerReplication -InputObject [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -198,3 +198,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS +