Get-VmNetworkAdapterIsolation

Get-VmNetworkAdapterIsolation

Gets isolation settings for a virtual network adapter.

Syntaxe

Parameter Set: VMName
Get-VmNetworkAdapterIsolation [[-VMName] <String[]> ] [-ComputerName <String[]> ] [-VMNetworkAdapterName <String> ] [ <CommonParameters>]

Parameter Set: ManagementOS
Get-VmNetworkAdapterIsolation -ManagementOS [-ComputerName <String[]> ] [-VMNetworkAdapterName <String> ] [ <CommonParameters>]

Parameter Set: ResourceObject
Get-VmNetworkAdapterIsolation [-VMNetworkAdapter] <VMNetworkAdapterBase[]> [ <CommonParameters>]

Parameter Set: VMObject
Get-VmNetworkAdapterIsolation [-VM] <VirtualMachine[]> [-VMNetworkAdapterName <String> ] [ <CommonParameters>]

Parameter Set: VMSnapshot
Get-VmNetworkAdapterIsolation [-VMSnapshot] <VMSnapshot> [ <CommonParameters>]

Description détaillée

The Get-VmNetworkAdapterIsolation cmdlet gets isolation settings for a virtual network adapter. The cmdlet displays the isolation method, and other information, such as the multitenancy mode and the subnet ID for traffic bound for to the default compartment if multitenancy is enabled.

Paramètres

-ComputerName<String[]>

Specifies an array of Hyper-V hosts. The cmdlet gets isolation settings for virtual machines hosted by the computers that you specify.

Alias

none

Obligatoire ?

false

Position ?

named

Valeur par défaut

none

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-ManagementOS

Indicates that the cmdlet operates on the parent or host operating system. If you specify this parameter, this cmdlet gets isolation settings for the parent or host operating system.

Alias

none

Obligatoire ?

true

Position ?

named

Valeur par défaut

none

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-VM<VirtualMachine[]>

Specifies an array of virtual machines. The cmdlet gets isolation settings for adapters that belong to the virtual machines that you specify. To obtain a virtual machine object, use the Get-VM cmdlet.

Alias

none

Obligatoire ?

true

Position ?

1

Valeur par défaut

none

Accepter l’entrée de pipeline ?

True (ByValue)

Accepter les caractères génériques ?

false

-VMName<String[]>

Specifies an array of names of virtual machines. The cmdlet gets isolation settings for adapters that belong to the virtual machines that you specify.

Alias

none

Obligatoire ?

false

Position ?

1

Valeur par défaut

none

Accepter l’entrée de pipeline ?

True (ByValue)

Accepter les caractères génériques ?

false

-VMNetworkAdapter<VMNetworkAdapterBase[]>

Specifies an array virtual machine network adapters as VMNetworkAdapterBase objects. The cmdlet gets isolation settings for the adapters that you specify. To obtain a network adapter, use the Get-VMNetworkAdapter cmdlet.

Alias

none

Obligatoire ?

true

Position ?

1

Valeur par défaut

none

Accepter l’entrée de pipeline ?

True (ByValue)

Accepter les caractères génériques ?

false

-VMNetworkAdapterName<String>

Specifies the name of a virtual network adapter. The cmdlet gets isolation settings for the adapters that you specify.

Alias

none

Obligatoire ?

false

Position ?

named

Valeur par défaut

none

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-VMSnapshot<VMSnapshot>

Specifies a snapshot as a VMSnapshot object. The cmdlet gets isolation settings for network adapters that belong to the snapshot that you specify. To obtain a snapshot, use the Get-VMSnapshot cmdlet.

Alias

none

Obligatoire ?

true

Position ?

1

Valeur par défaut

none

Accepter l’entrée de pipeline ?

True (ByValue)

Accepter les caractères génériques ?

false

<CommonParameters>

Cette applet de commande prend en charge les paramètres courants : -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer et -OutVariable. Pour plus d’informations, consultez about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entrées

Le type d’entrée correspond au type des objets que vous pouvez transmettre à l’applet de commande.

  • None

Sorties

Le type de sortie est le type des objets émis par l’applet de commande.

  • Microsoft.HyperV.PowerShell.VMNetworkAdapterIsolation

Exemples

Example 1

This example retrieves the isolation settings of a VM.

PS C:\> Get-VMNetworkAdapterIsolation –VMName Multitenant-GW –VMNetworkAdapterName InternalNIC

Rubriques connexes

Set-VmNetworkAdapterIsolation

Get-VM

Get-VMSnapshot

Get-VMNetworkAdapter