Get-WAPackVNet
Gets virtual networks.
Note
The cmdlets referenced in this documentation are for managing legacy Azure resources that use Service Management APIs. See the Az PowerShell module for cmdlets to manage Azure Resource Manager resources.
Syntax
Get-WAPackVNet
[-Profile <AzureSMProfile>]
[<CommonParameters>]
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.
Parameters
-ID
Specifies the unique ID of a virtual network.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Specifies the name of a virtual network.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |