Get-WAPackVNet
Gets virtual networks.
Note
The cmdlets referenced in this documentation are for managing legacy Azure resources that use Azure Service Manager (ASM) APIs. This legacy PowerShell module isn't recommended when creating new resources since ASM is scheduled for retirement. For more information, see Azure Service Manager retirement.
The Az PowerShell module is the recommended PowerShell module for managing Azure Resource Manager (ARM) resources with PowerShell.
Syntax
Empty (Default)
Get-WAPackVNet
[-Profile <AzureSMProfile>]
[<CommonParameters>]
FromId
Get-WAPackVNet
-ID <Guid>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
FromName
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.
Parameter properties
Type: | Guid |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
FromId
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Name
Specifies the name of a virtual network.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
FromName
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | 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.
Parameter properties
Type: | AzureSMProfile |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.