다음을 통해 공유


Get-WAPackVNet

가상 네트워크를 가져옵니다.

참고

이 설명서에서 참조하는 cmdlet은 Service Management API를 사용하는 레거시 Azure 리소스를 관리하기 위한 것입니다. Azure Resource Manager 리소스를 관리하는 cmdlet은 Az PowerShell 모듈을 참조하세요.

Syntax

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

Description

Get-WAPackVNet cmdlet은 가상 네트워크를 가져옵니다.

예제

예제 1: 모든 가상 네트워크 가져오기

PS C:\> Get-WAPackVNet

이 명령은 모든 가상 네트워크를 가져옵니다.

예제 2: ID를 사용하여 가상 네트워크 가져오기

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

이 명령은 지정된 ID가 있는 가상 네트워크를 가져옵니다.

예제 3: 이름을 사용하여 가상 네트워크 가져오기

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

이 명령은 ContosoVNet08이라는 가상 네트워크를 가져옵니다.

매개 변수

-ID

가상 네트워크의 고유 ID를 지정합니다.

Type:Guid
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

가상 네트워크의 이름을 지정합니다.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Profile

이 cmdlet이 읽는 Azure 프로필을 지정합니다. 프로필을 지정하지 않으면 이 cmdlet은 로컬 기본 프로필에서 읽습니다.

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