@@ -3735,11 +3735,13 @@ Retrieves the details of the replicating server status.
37353735. Description
37363736The Get-AzMigrateServerMigrationStatus cmdlet retrieves the replication status for the replicating server.
37373737. Example
3738- Get-AzMigrateServerMigrationStatus -ResourceGroupName cbtpvtrg -ProjectName migpvt
3738+ Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg"
37393739. Example
3740- Get-AzMigrateServerMigrationStatus -ProjectName "migpvt-ecyproj " -ResourceGroupName "cbtprivatestamprg " -MachineName "CVM-Win2019 "
3740+ Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql " -ResourceGroupName "ankitbaluni-resync-rg " -MachineName "Rhel8-Vm "
37413741. Example
3742- Get-AzMigrateServerMigrationStatus -ProjectName "migpvt-ecyproj" -ResourceGroupName "cbtprivatestamprg" -ApplianceName "migpvt"
3742+ Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -ApplianceName "cbtresyncgql"
3743+ . Example
3744+ Get-AzMigrateServerMigrationStatus -ProjectName "cbt-resync-gql" -ResourceGroupName "ankitbaluni-resync-rg" -MachineName "Rhel8-Vm" -Expedite
37433745
37443746. Outputs
37453747System.Management.Automation.PSObject[]
@@ -3753,15 +3755,13 @@ param(
37533755 [Parameter (Mandatory )]
37543756 [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category (' Path' )]
37553757 [System.String ]
3756- # [Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)]
3757- # Specifies the Resource Group of the Azure Migrate Project in the current subscription.
3758+ # Specifies the Resource Group of the Azure Migrate Project in the current subscription.
37583759 ${ResourceGroupName} ,
37593760
37603761 [Parameter (Mandatory )]
37613762 [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category (' Path' )]
37623763 [System.String ]
3763- # [Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)]
3764- # Specifies the Azure Migrate project in the current subscription.
3764+ # Specifies the Azure Migrate project in the current subscription.
37653765 ${ProjectName} ,
37663766
37673767 [Parameter ()]
@@ -3771,20 +3771,26 @@ param(
37713771 # Azure Subscription ID.
37723772 ${SubscriptionId} ,
37733773
3774- [Parameter (ParameterSetName = ' GetByApplianceName' , Mandatory )]
3775- [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category (' Path' )]
3776- [System.String ]
3777- # Specifies the name of the appliance.
3778- ${ApplianceName} ,
3779-
3774+ [Parameter (ParameterSetName = ' GetByPrioritiseServer' , Mandatory )]
37803775 [Parameter (ParameterSetName = ' GetHealthByMachineName' , Mandatory )]
37813776 [Parameter (ParameterSetName = ' GetByMachineName' , Mandatory )]
37823777 [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category (' Path' )]
37833778 [System.String ]
3784- # [Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)]
3785- # Specifies the display name of the replicating machine.
3779+ # Specifies the display name of the replicating machine.
37863780 ${MachineName} ,
37873781
3782+ [Parameter (ParameterSetName = ' GetByPrioritiseServer' , Mandatory )]
3783+ [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category (' Path' )]
3784+ [System.Management.Automation.SwitchParameter ]
3785+ # Specifies whether to expedite the operation of a replicating server.
3786+ ${Expedite} ,
3787+
3788+ [Parameter (ParameterSetName = ' GetByApplianceName' , Mandatory )]
3789+ [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category (' Path' )]
3790+ [System.String ]
3791+ # Specifies the name of the appliance.
3792+ ${ApplianceName} ,
3793+
37883794 [Parameter (ParameterSetName = ' GetHealthByMachineName' , Mandatory )]
37893795 [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category (' Path' )]
37903796 [System.Management.Automation.SwitchParameter ]
@@ -3878,11 +3884,12 @@ begin {
38783884
38793885 $mapping = @ {
38803886 ListByName = ' Az.Migrate.custom\Get-AzMigrateServerMigrationStatus' ;
3887+ GetByPrioritiseServer = ' Az.Migrate.custom\Get-AzMigrateServerMigrationStatus' ;
38813888 GetByApplianceName = ' Az.Migrate.custom\Get-AzMigrateServerMigrationStatus' ;
38823889 GetHealthByMachineName = ' Az.Migrate.custom\Get-AzMigrateServerMigrationStatus' ;
38833890 GetByMachineName = ' Az.Migrate.custom\Get-AzMigrateServerMigrationStatus' ;
38843891 }
3885- if ((' ListByName' , ' GetByApplianceName' , ' GetHealthByMachineName' , ' GetByMachineName' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' )) {
3892+ if ((' ListByName' , ' GetByPrioritiseServer ' , ' GetByApplianceName' , ' GetHealthByMachineName' , ' GetByMachineName' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' )) {
38863893 $testPlayback = $false
38873894 $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ($_ ) { $testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
38883895 if ($testPlayback ) {
0 commit comments