Skip to content

Commit 1be0d0f

Browse files
committed
tweaks
1 parent 866b6dd commit 1be0d0f

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

azure-local/migrate/migrate-via-powershell.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.author: alkohli
99

1010
# Migrate VMs to Azure Local with Azure Migrate using PowerShell
1111

12-
This article describes how to migrate VMs to Azure Local with Azure Migrate using PowerShell.
12+
This article describes how to migrate virtual machines (VMs) to Azure Local with Azure Migrate using PowerShell.
1313

1414
## Prerequisites
1515

@@ -22,7 +22,7 @@ Before you begin, you should complete the following tasks:
2222
2. Install the [Azure PowerShell Az module](/powershell/azure/install-azure-powershell).
2323

2424
<!-- Update version to 2.X.X in this paragraph-->
25-
3. Verify the Azure Migrate PowerShell module is installed **and version is 2.8.0 or later**. Azure Migrate PowerShell is available as part of the Azure PowerShell Az module. Run the following command to check if Azure Migrate PowerShell is installed on your computer and verify the version is 2.8.0 or later:
25+
3. Verify the Azure Migrate PowerShell module is installed and **version is 2.8.0 or later**. Azure Migrate PowerShell is available as part of the Azure PowerShell `Az` module. Run the following command to check if Azure Migrate PowerShell is installed on your computer and verify the version is 2.8.0 or later:
2626

2727
```powershell
2828
Get-InstalledModule -Name Az.Migrate
@@ -47,12 +47,16 @@ Use the `Get-AzSubscription` cmdlet to get the list of Azure subscriptions you h
4747
Set-AzContext -SubscriptionId "00000000-0000-0000-0000-000000000000"
4848
```
4949
50-
You can view the full list of Azure Migrate PowerShell cmdlets by visiting the [Azure Migrate PowerShell reference](/powershell/module/az.migrate) or by running command `Get-Command -Module Az.Migrate`.
50+
You can view the full list of Azure Migrate PowerShell cmdlets by visiting the [Azure Migrate PowerShell reference](/powershell/module/az.migrate) or by running the command:
51+
52+
```powershell
53+
`Get-Command -Module Az.Migrate`
54+
```
5155

5256
## Retrieve discovered VMs
5357

54-
You can retrieve the discovered VMs in your Azure Migrate project using the `Get-AzMigrateDiscoveredServer` cmdlet. This cmdlet retrieves the list of VMs discovered by the source appliance in your Azure Migrate project. SourceMachineType can be either `HyperV` or `VMware`, depending on your source VM environment.
55-
For more information, see the `Get-AzMigrateDiscoveredServer`](/powershell/module/az.migrate/get-azmigratediscoveredserver).
58+
You can retrieve the discovered VMs in your Azure Migrate project using the `Get-AzMigrateDiscoveredServer` cmdlet. This cmdlet retrieves the list of VMs discovered by the source appliance in your Azure Migrate project. `SourceMachineType` can be either `HyperV` or `VMware`, depending on your source VM environment.
59+
For more information, see the [`Get-AzMigrateDiscoveredServer`](/powershell/module/az.migrate/get-azmigratediscoveredserver) cmdlet.
5660

5761
**Example 1**: Get all VMs discovered by an Azure Migrate source appliance in an Azure Migrate project:
5862

@@ -65,7 +69,7 @@ $DiscoveredServers = Get-AzMigrateDiscoveredServer `
6569
Write-Output $DiscoveredServers | Format-List *
6670
```
6771

68-
**Example 2**: List VMs and filter by source VM display names that contain a specific string (e.g., 'test'):
72+
**Example 2**: List VMs and filter by source VM display names that contain a specific string (like 'test'):
6973

7074
```powershell
7175
$DiscoveredServers = Get-AzMigrateDiscoveredServer `
@@ -80,7 +84,7 @@ Write-Output $DiscoveredServers | Format-List *
8084
## Initialize VM replications
8185

8286
You can initialize the replication infrastructure for your Azure Migrate project using the `Initialize-AzMigrateLocalReplicationInfrastructure` cmdlet. This cmdlet sets up the necessary infrastructure and metadata storage account needed to eventually replicate VMs from the source appliance to the target appliance. Running this cmdlet multiple times will not cause any issues, as it checks if the replication infrastructure is already initialized.
83-
For more information, see the `Initialize-AzMigrateLocalReplicationInfrastructure`](/powershell/module/az.migrate/initialize-azmigratelocalreplicationinfrastructure).
87+
For more information, see the [`Initialize-AzMigrateLocalReplicationInfrastructure`](/powershell/module/az.migrate/initialize-azmigratelocalreplicationinfrastructure) cmdlet.
8488

8589
You can use a default created storage account or a custom-created storage account that will store the replication metadata. You will need the source and target appliance names from the Azure Portal by going to your Azure Migrate project, then navigating to **Appliances > Registered appliances**.
8690

@@ -263,7 +267,7 @@ $NicMappings | Format-List *
263267
```
264268

265269

266-
**Start Replication with Disk and NIC Mappings**
270+
**Start Replication with disk and NIC mappings**
267271
> [!NOTE]
268272
> If you use the `-DiskToInclude` and `-NicToInclude` parameters, you must create both local disk and NIC mapping objects as shown in the **Create a Local Disk Mapping** and **Create a local NIC mapping object** sections. You cannot use one without the other.
269273
>
@@ -427,8 +431,6 @@ $RemoveJob = Remove-AzMigrateLocalServerReplication `
427431
$RemoveJob.Property | Format-List *
428432
```
429433

430-
431-
432434
## Next steps
433435

434436
- Alternatively, you can [replicate and migrate using Azure portal](migration-options-overview.md).

0 commit comments

Comments
 (0)