Syntax
Get-VMHostProfileVmPortGroupConfiguration [-HostProfile] <VMHostProfile[]> [[-PortGroupName] <String[]>] [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online VersionDetailed Description
Retrieves the virtual machine port group configuration for the given host profile.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
HostProfile | VMHostProfile[] | Specifies the virtual machine host profile. | true | True (ByValue) | |
PortGroupName | String[] | Specifies the port group name that is unique for the host profile. The port group name can be passed to filter results for the particular port group. | false | False | |
Server | VIServer[] | Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet. | false | True (ByValue) |
Return Type
VMware.VimAutomation.ViCore.Types.V1.Host.Profile.VMHostProfileVmPortGroupConfiguration[]Notes
Examples
-------------------------- Example 1 --------------------------
PS C:\> Get-VMHostProfileVmPortGroupConfiguration -HostProfile 'Host_Profile'
Retrieves all virtual machine port group configurations within the host profile named Host_Profile.