Retrieving organization networks

If you create virtual appliances or virtual machines, you probably want to connect them to a network. The Get-OrgVdcNetwork cmdlet will retrieve available organization vDC networks. The syntax of the Get-OrgVdcNetwork cmdlet is given here. The first parameter set is the default:

Get-OrgVdcNetwork [[-Name] <String[]>] [-OrgVdc <OrgVdc[]>]
    [-Server <CIServer[]>] [<CommonParameters>]

The second parameter set is to retrieve organization vDC networks by ID:

Get-OrgVdcNetwork -Id <String[]> [-Server <CIServer[]>]
    [<CommonParameters>]

The -Id parameter is required.

The Get-OrgVdcNetwork cmdlet without parameters will retrieve all of the organization vDC networks, as shown in the following example:

PowerCLI C:\> Get-OrgVdcNetwork ...

Get Learning PowerCLI - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.