|
| 1 | +--- |
| 2 | +external help file: |
| 3 | +Module Name: Az.Migrate |
| 4 | +online version: https://learn.microsoft.com/powershell/module/az.migrate/get-azmigrateservermigrationstatus |
| 5 | +schema: 2.0.0 |
| 6 | +--- |
| 7 | + |
| 8 | +# Get-AzMigrateServerMigrationStatus |
| 9 | + |
| 10 | +## SYNOPSIS |
| 11 | +Retrieves the details of the replicating server status. |
| 12 | + |
| 13 | +## SYNTAX |
| 14 | + |
| 15 | +### ListByName (Default) |
| 16 | +``` |
| 17 | +Get-AzMigrateServerMigrationStatus -ProjectName <String> -ResourceGroupName <String> |
| 18 | + [-SubscriptionId <String>] [-Filter <String>] [-SkipToken <String>] [-DefaultProfile <PSObject>] |
| 19 | + [<CommonParameters>] |
| 20 | +``` |
| 21 | + |
| 22 | +### GetByApplianceName |
| 23 | +``` |
| 24 | +Get-AzMigrateServerMigrationStatus -ApplianceName <String> -ProjectName <String> -ResourceGroupName <String> |
| 25 | + [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [<CommonParameters>] |
| 26 | +``` |
| 27 | + |
| 28 | +### GetByMachineName |
| 29 | +``` |
| 30 | +Get-AzMigrateServerMigrationStatus -MachineName <String> -ProjectName <String> -ResourceGroupName <String> |
| 31 | + [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [<CommonParameters>] |
| 32 | +``` |
| 33 | + |
| 34 | +### GetHealthByMachineName |
| 35 | +``` |
| 36 | +Get-AzMigrateServerMigrationStatus -Health -MachineName <String> -ProjectName <String> |
| 37 | + -ResourceGroupName <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [<CommonParameters>] |
| 38 | +``` |
| 39 | + |
| 40 | +## DESCRIPTION |
| 41 | +The Get-AzMigrateServerMigrationStatus cmdlet retrieves the replication status for the replicating server. |
| 42 | + |
| 43 | +## EXAMPLES |
| 44 | + |
| 45 | +### Example 1: List status by project name. |
| 46 | +```powershell |
| 47 | +Get-AzMigrateServerMigrationStatus -ResourceGroupName cbtpvtrg -ProjectName migpvt |
| 48 | +``` |
| 49 | + |
| 50 | +```output |
| 51 | +Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed Health LastSync Datastore |
| 52 | +--------- ------ ----- -------- ----------- ------------- ----------- ------ -------- --------- |
| 53 | +migpvt CVM-Win2019 DeltaReplication Completed - - - - Normal 12/7/2023, 11:18:07 AM Shared_1TB, datastore1 |
| 54 | +migpvt CVM-Win2022 DeltaReplication Completed - - - - Normal 12/7/2023, 10:41:42 AM datastore1 |
| 55 | +
|
| 56 | +
|
| 57 | +
|
| 58 | +
|
| 59 | +To resolve the health issue use the command |
| 60 | +Get-AzMigrateServerMigrationStatus -ProjectName <String> -ResourceGroupName <String> -MachineName <String> -Health |
| 61 | +``` |
| 62 | + |
| 63 | +Get by project name. |
| 64 | + |
| 65 | +### Example 2: List status by machine name. |
| 66 | +```powershell |
| 67 | +Get-AzMigrateServerMigrationStatus -ProjectName "migpvt-ecyproj" -ResourceGroupName "cbtprivatestamprg" -MachineName "CVM-Win2019" |
| 68 | +``` |
| 69 | + |
| 70 | +```output |
| 71 | +Server CVM-Win2019 is currently healthy. |
| 72 | +
|
| 73 | +Appliance Server State Progress TimeElapsed TimeRemaining UploadSpeed LastSync Datastore |
| 74 | +--------- ------ ----- -------- ----------- ------------- ----------- -------- --------- |
| 75 | +migpvt CVM-Win2019 DeltaReplication Completed - - - - 12/7/2023, 11:18:07 AM Shared_1TB, datastore1 |
| 76 | +
|
| 77 | +
|
| 78 | +
|
| 79 | +Disk State Progress TimeElapsed TimeRemaining UploadSpeed Datastore |
| 80 | +---- ----- -------- ----------- ------------- ----------- --------- |
| 81 | +TestVM DeltaReplication Completed - - - - Shared_1TB |
| 82 | +CVM-Win2019 DeltaReplication Completed - - - - datastore1 |
| 83 | +``` |
| 84 | + |
| 85 | +Get by machine name. |
| 86 | + |
| 87 | +### Example 2: List status by appliance name. |
| 88 | +```powershell |
| 89 | +Get-AzMigrateServerMigrationStatus -ProjectName "migpvt-ecyproj" -ResourceGroupName "cbtprivatestamprg" -ApplianceName "migpvt" |
| 90 | +``` |
| 91 | + |
| 92 | +```output |
| 93 | +Server State Progress TimeElapsed TimeRemaining UploadSpeed Health LastSync Datastore |
| 94 | +------ ----- -------- ----------- ------------- ----------- ------ -------- --------- |
| 95 | +CVM-Win2019 DeltaReplication Completed - - - - Normal 12/7/2023, 11:18:07 AM Shared_1TB, datastore1 |
| 96 | +CVM-Win2022 DeltaReplication Completed - - - - Normal 12/7/2023, 10:41:42 AM datastore1 |
| 97 | +
|
| 98 | +
|
| 99 | +To resolve the health issue use the command |
| 100 | +Get-AzMigrateServerMigrationStatus -ProjectName <String> -ResourceGroupName <String> -MachineName <String> -Health |
| 101 | +``` |
| 102 | + |
| 103 | +Get by appliance name. |
| 104 | + |
| 105 | +## PARAMETERS |
| 106 | + |
| 107 | +### -ApplianceName |
| 108 | +Specifies the name of the appliance. |
| 109 | + |
| 110 | +```yaml |
| 111 | +Type: System.String |
| 112 | +Parameter Sets: GetByApplianceName |
| 113 | +Aliases: |
| 114 | + |
| 115 | +Required: True |
| 116 | +Position: Named |
| 117 | +Default value: None |
| 118 | +Accept pipeline input: False |
| 119 | +Accept wildcard characters: False |
| 120 | +``` |
| 121 | +
|
| 122 | +### -DefaultProfile |
| 123 | +The credentials, account, tenant, and subscription used for communication with Azure. |
| 124 | +
|
| 125 | +```yaml |
| 126 | +Type: System.Management.Automation.PSObject |
| 127 | +Parameter Sets: (All) |
| 128 | +Aliases: AzureRMContext, AzureCredential |
| 129 | + |
| 130 | +Required: False |
| 131 | +Position: Named |
| 132 | +Default value: None |
| 133 | +Accept pipeline input: False |
| 134 | +Accept wildcard characters: False |
| 135 | +``` |
| 136 | +
|
| 137 | +### -Filter |
| 138 | +OData filter options. |
| 139 | +
|
| 140 | +```yaml |
| 141 | +Type: System.String |
| 142 | +Parameter Sets: ListByName |
| 143 | +Aliases: |
| 144 | + |
| 145 | +Required: False |
| 146 | +Position: Named |
| 147 | +Default value: None |
| 148 | +Accept pipeline input: False |
| 149 | +Accept wildcard characters: False |
| 150 | +``` |
| 151 | +
|
| 152 | +### -Health |
| 153 | +Specifies whether the health issues to show for replicating server. |
| 154 | +
|
| 155 | +```yaml |
| 156 | +Type: System.Management.Automation.SwitchParameter |
| 157 | +Parameter Sets: GetHealthByMachineName |
| 158 | +Aliases: |
| 159 | + |
| 160 | +Required: True |
| 161 | +Position: Named |
| 162 | +Default value: None |
| 163 | +Accept pipeline input: False |
| 164 | +Accept wildcard characters: False |
| 165 | +``` |
| 166 | +
|
| 167 | +### -MachineName |
| 168 | +[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] |
| 169 | + Specifies the display name of the replicating machine. |
| 170 | +
|
| 171 | +```yaml |
| 172 | +Type: System.String |
| 173 | +Parameter Sets: GetByMachineName, GetHealthByMachineName |
| 174 | +Aliases: |
| 175 | + |
| 176 | +Required: True |
| 177 | +Position: Named |
| 178 | +Default value: None |
| 179 | +Accept pipeline input: False |
| 180 | +Accept wildcard characters: False |
| 181 | +``` |
| 182 | +
|
| 183 | +### -ProjectName |
| 184 | +[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] |
| 185 | + Specifies the Azure Migrate project in the current subscription. |
| 186 | +
|
| 187 | +```yaml |
| 188 | +Type: System.String |
| 189 | +Parameter Sets: (All) |
| 190 | +Aliases: |
| 191 | + |
| 192 | +Required: True |
| 193 | +Position: Named |
| 194 | +Default value: None |
| 195 | +Accept pipeline input: False |
| 196 | +Accept wildcard characters: False |
| 197 | +``` |
| 198 | +
|
| 199 | +### -ResourceGroupName |
| 200 | +[Parameter(ParameterSetName = 'GetByPrioritiseServer', Mandatory)] |
| 201 | + Specifies the Resource Group of the Azure Migrate Project in the current subscription. |
| 202 | +
|
| 203 | +```yaml |
| 204 | +Type: System.String |
| 205 | +Parameter Sets: (All) |
| 206 | +Aliases: |
| 207 | + |
| 208 | +Required: True |
| 209 | +Position: Named |
| 210 | +Default value: None |
| 211 | +Accept pipeline input: False |
| 212 | +Accept wildcard characters: False |
| 213 | +``` |
| 214 | +
|
| 215 | +### -SkipToken |
| 216 | +The pagination token. |
| 217 | +
|
| 218 | +```yaml |
| 219 | +Type: System.String |
| 220 | +Parameter Sets: ListByName |
| 221 | +Aliases: |
| 222 | + |
| 223 | +Required: False |
| 224 | +Position: Named |
| 225 | +Default value: None |
| 226 | +Accept pipeline input: False |
| 227 | +Accept wildcard characters: False |
| 228 | +``` |
| 229 | +
|
| 230 | +### -SubscriptionId |
| 231 | +Azure Subscription ID. |
| 232 | +
|
| 233 | +```yaml |
| 234 | +Type: System.String |
| 235 | +Parameter Sets: (All) |
| 236 | +Aliases: |
| 237 | + |
| 238 | +Required: False |
| 239 | +Position: Named |
| 240 | +Default value: (Get-AzContext).Subscription.Id |
| 241 | +Accept pipeline input: False |
| 242 | +Accept wildcard characters: False |
| 243 | +``` |
| 244 | +
|
| 245 | +### CommonParameters |
| 246 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). |
| 247 | +
|
| 248 | +## INPUTS |
| 249 | +
|
| 250 | +## OUTPUTS |
| 251 | +
|
| 252 | +### System.Management.Automation.PSObject[] |
| 253 | +
|
| 254 | +## NOTES |
| 255 | +
|
| 256 | +## RELATED LINKS |
| 257 | +
|
0 commit comments