PowerShell Logo Small

Add-VMMigrationNetwork



This is the built-in help made by Microsoft for the command 'Add-VMMigrationNetwork', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Adds a network for virtual machine migration on one or more virtual machine hosts.

SYNTAX


Add-VMMigrationNetwork [-Subnet] <String> [[-Priority] <UInt32>] [-ComputerName <String[]>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Add-VMMigrationNetwork cmdlet adds a network for virtual machine migration on one or more virtual machine hosts.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkID=306811

REMARKS

<

Examples


Example 1

PS C:\>Add-VMMigrationNetwork 192.168.0.1



This example adds an IPv4 address as a live migration network on the local Hyper-V host.




Example 2

PS C:\>Add-VMMigrationNetwork 192.168.10.0/24



This example adds an IPv4 address range as possible live migration networks on the local Hyper-V host by using a subnet mask.




Example 3

PS C:\>Add-VMMigrationNetwork 2001:836c:6456:1c99::/32



This example adds an IPv6 address range as possible live migration networks on the local Hyper-V host by adding a subnet mask.




Example 4

PS C:\>Add-VMMigrationNetwork 2001:836c:6456:1c99::/64 –Priority 8



This example adds an IPv6 address range as possible live migration networks on the local Hyper-V host by using a subnet mask and specifying the network as lower priority.