PowerShell Logo Small

Set-VmNetworkAdapterIsolation



This is the built-in help made by Microsoft for the command 'Set-VmNetworkAdapterIsolation', 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

Modifies isolation settings for a virtual network adapter.

SYNTAX


Set-VmNetworkAdapterIsolation [-VMName] <String[]> [-AllowUntaggedTraffic <Boolean>] [-ComputerName <String[]>] [-DefaultIsolationID <Int32>] [-IsolationMode
<VMNetworkAdapterIsolationMode>] [-MultiTenantStack <OnOffState>] [-Passthru] [-VMNetworkAdapterName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-VmNetworkAdapterIsolation [-AllowUntaggedTraffic <Boolean>] [-ComputerName <String[]>] [-DefaultIsolationID <Int32>] [-IsolationMode <VMNetworkAdapterIsolationMode>]
[-MultiTenantStack <OnOffState>] [-Passthru] [-VMNetworkAdapterName <String>] -ManagementOS [-Confirm] [-WhatIf] [<CommonParameters>]
Set-VmNetworkAdapterIsolation [-VM] <VirtualMachine[]> [-AllowUntaggedTraffic <Boolean>] [-DefaultIsolationID <Int32>] [-IsolationMode <VMNetworkAdapterIsolationMode>]
[-MultiTenantStack <OnOffState>] [-Passthru] [-VMNetworkAdapterName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-VmNetworkAdapterIsolation [-VMNetworkAdapter] <VMNetworkAdapterBase[]> [-AllowUntaggedTraffic <Boolean>] [-DefaultIsolationID <Int32>] [-IsolationMode
<VMNetworkAdapterIsolationMode>] [-MultiTenantStack <OnOffState>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-VmNetworkAdapterIsolation cmdlet modifies isolation settings for a virtual network adapter. You can isolate a virtual machine adapter by using virtual local area
network (VLAN), Hyper-V Network Virtualization or a third party virtualization solution. You can specify the isolation method and modify other settings, which include
multitenancy settings. For more information about multitenancy, see the Add-VmNetworkAdapterRoutingDomainMapping cmdlet.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=294126
Get-VmNetworkAdapterIsolation
Get-VM
Get-VMNetworkAdapter
Set-VMNetworkAdapter
Set-VMNetworkAdapterVlan

REMARKS

<

Examples


Example 1: Set isolation mode for a virtual machine

PS C:\> Set-VMNetworkAdapterIsolation -VMName "TSQA01" -AllowUntaggedTraffic $False -IsolationMode NativeVirtualSubnet -MultiTenantStack On



This command sets the isolation mode of the virtual machine named TSQA01 to NativeVirtualSubnet, which indicates Hyper-V Network Virtualization. The virtual machine does not
accept untagged traffic, but the MultitenantStack parameter has a value of On, so the virtual machine can provide services to multiple tenants.




Example 2: Set isolation mode and untagged traffic setting for a virtual machine

PS C:\> Set-VMNetworkAdapterIsolation -VMName "TSQA01" -AllowUntaggedTraffic $True -IsolationMode VLAN -DefaultIsolationID 1 -MultiTenantStack On



This command sets the isolation mode for virtual machine named TSQA01 to be VLAN. The virtual machine accepts untagged traffic, which is sent and received on VLAN 1,
specified by the DefaultIsolationID parameter. Untagged traffic goes to the default compartment in the virtual machine. Multitenancy is enabled, therefore, the virtual
machine receives isolation subnet and routing domain information.