You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure-local/migrate/migrate-via-powershell.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ms.author: alkohli
9
9
10
10
# Migrate VMs to Azure Local with Azure Migrate using PowerShell
11
11
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.
13
13
14
14
## Prerequisites
15
15
@@ -22,7 +22,7 @@ Before you begin, you should complete the following tasks:
22
22
2. Install the [Azure PowerShell Az module](/powershell/azure/install-azure-powershell).
23
23
24
24
<!-- 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:
26
26
27
27
```powershell
28
28
Get-InstalledModule -Name Az.Migrate
@@ -47,12 +47,16 @@ Use the `Get-AzSubscription` cmdlet to get the list of Azure subscriptions you h
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
+
```
51
55
52
56
## Retrieve discovered VMs
53
57
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.
56
60
57
61
**Example 1**: Get all VMs discovered by an Azure Migrate source appliance in an Azure Migrate project:
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.
84
88
85
89
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**.
86
90
@@ -263,7 +267,7 @@ $NicMappings | Format-List *
263
267
```
264
268
265
269
266
-
**Start Replication with Disk and NIC Mappings**
270
+
**Start Replication with disk and NIC mappings**
267
271
> [!NOTE]
268
272
> 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.
0 commit comments