Get-SCVirtualNetworkAdapterConfiguration

Gets the virtual network adapter configuration information contained in a virtual machine configuration.

Syntax

Get-SCVirtualNetworkAdapterConfiguration
   [-VMMServer <ServerConnection>]
   -VMConfiguration <BaseVMConfiguration>
   [<CommonParameters>]

Description

The Get-SCVirtualNetworkAdapterConfiguration cmdlet gets the virtual network adapter configuration information that is contained within a virtual machine configuration.

Examples

Example 1: Get a virtual network adapter configuration from a virtual machine configuration

PS C:\> $ServiceConfig = Get-SCServiceConfiguration -Name "Service01" 
PS C:\> $TierConfig = Get-SCComputerTierConfiguration -ServiceConfiguration $ServiceConfig 
PS C:\> $VMConfig = Get-SCVMConfiguration -ComputerTierConfiguration $TierConfig
PS C:\> $VNAConfig = Get-SCVirtualNetworkAdapterConfiguration -VMConfiguration $VMConfig[0]
PS C:\> $VNAConfig

The first command gets the service configuration object named Service01 and stores the object in the $ServiceConfig variable.

The second command gets the computer tier configuration for the service configuration stored in $ServiceConfig and stores the object in the $TierConfig variable.

The third command gets the virtual machine configuration for the computer tier configuration stored in $TierConfig and stores the object in the $VMConfig variable.

The fourth command gets the virtual network adapter configuration for the first virtual machine configuration stored in $VMConfig.

The last command displays the properties of the virtual network adapter configuration stored in $VMConfig to the user.

Parameters

-VMConfiguration

Specifies a virtual machine configuration object.

Type:BaseVMConfiguration
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-VMMServer

Specifies a Virtual Machine Manager (VMM) server object.

Type:ServerConnection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Outputs

VirtualNetworkAdapterConfiguration

This cmdlet returns a VirtualNetworkAdapterConfiguration object.