PowerShell Logo Small

Add-VmNetworkAdapterRoutingDomainMapping



This is the built-in help made by Microsoft for the command 'Add-VmNetworkAdapterRoutingDomainMapping', 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 routing domain and virtual subnets to a virtual network adapter.

SYNTAX


Add-VmNetworkAdapterRoutingDomainMapping [-VMName] <String[]> [-RoutingDomainID] <String> [-RoutingDomainName] <String> [[-IsolationID] <Int32[]>] [[-IsolationName]
<String[]>] [-ComputerName <String[]>] [-Passthru] [-VMNetworkAdapterName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]
Add-VmNetworkAdapterRoutingDomainMapping [-RoutingDomainID] <String> [-RoutingDomainName] <String> [[-IsolationID] <Int32[]>] [[-IsolationName] <String[]>] [-ComputerName
<String[]>] [-Passthru] [-VMNetworkAdapterName <String>] -ManagementOS [-Confirm] [-WhatIf] [<CommonParameters>]
Add-VmNetworkAdapterRoutingDomainMapping [-VM] <VirtualMachine[]> [-RoutingDomainID] <String> [-RoutingDomainName] <String> [[-IsolationID] <Int32[]>] [[-IsolationName]
<String[]>] [-Passthru] [-VMNetworkAdapterName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]
Add-VmNetworkAdapterRoutingDomainMapping [-VMNetworkAdapter] <VMNetworkAdapterBase[]> [-RoutingDomainID] <String> [-RoutingDomainName] <String> [[-IsolationID] <Int32[]>]
[[-IsolationName] <String[]>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Add-VmNetworkAdapterRoutingDomainMapping cmdlet adds a routing domain and virtual subnets to a virtual network adapter. The cmdlet adds the information about the routing
domain and virtual subnets to connected multitenant virtual machines.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=294121
Get-VMNetworkAdapterRoutingDomainMapping
Set-VmNetworkAdapterRoutingDomainMapping
Remove-VMNetworkAdapterRoutingDomainMapping
Get-VM

REMARKS

<

Examples


Example 1: Add a tenant and virtual subnet to a multitenant virtual network

PS C:\>Add-VMNetworkAdapterRoutingDomainMapping -VMName "Gateway01" -VMNetworkAdapterName "Internal NIC" –RoutingDomainID "{5a07361e-6a54-49fc-9210-bfbf14a5c56f}"
RoutingDomainName "Contoso" -IsolationID 6000 -IsolationName "ContosoGatewayVsid"



This command adds a tenant that has the specified routing domain to the virtual network adapter named Internal NIC that belongs to the multitenant virtual machine named
Gateway01. The command also adds the virtual subnet that has the ID 6000 to the virtual network adapter.