This is the Trace Id: 634d5b788d4d562fb4fc36044a1219f6

Bring the world closer with Bing Wallpaper

Download the free app and enjoy breathtaking views with a new background each day.
A laptop displaying a colorful seascape from Bing Wallpaper.

Sample Azure Migrate to Azure Local PowerShell Script

PowerShell script to automate VM replication and migration from VMware or Hyper-V to Azure Local using Azure Migrate.

Important! Selecting a language below will dynamically change the complete page content to that language.

Download
  • Version:

    1.0.0

    Date Published:

    8/5/2025

    File Name:

    sample-AzLocal-migration-script.ps1

    File Size:

    5.2 KB

    This sample PowerShell script demonstrates how to use the Azure Migrate PowerShell module to replicate and migrate VMs from VMware or Hyper-V to Azure Local. It covers key steps such as discovering VMs, initializing replication infrastructure, creating replication jobs (with or without disk/NIC mapping), and completing migration.
  • Supported Operating Systems

    Windows Server 2008 R2 Standard, Windows Server 2012 R2, Windows Server 2012 Standard, Windows Server 2016, Windows Server 2019, Windows Server 2022, Windows Server 2025

    PowerShell 5.1 or higher Azure PowerShell Az module
  • Listed in Learn Documentation

Follow Microsoft