Get-​WA​Pack​VNet

Gets virtual networks.

Syntax

Get-WAPackVNet
   -ID <Guid>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]
Get-WAPackVNet
   -Name <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

The Get-WAPackVNet cmdlet gets virtual networks.

Examples

Example 1: Get all virtual networks

PS C:\> Get-WAPackVNet

This command gets all virtual networks.

Example 2: Get a virtual network by using an ID

PS C:\> Get-WAPackVNet -ID 66242D17-189F-480D-87CF-8E1D749998C8

This command gets the virtual network that has the specified ID.

Example 3: Get a virtual network by using a name

PS C:\> Get-WAPackVNet -Name "ContosoVNet08"

This command gets the virtual network named ContosoVNet08.

Required Parameters

-ID

Specifies the unique ID of a virtual network.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

Specifies the name of a virtual network.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False