This is an archive version of the document. To get the most up-to-date information, see the current version.

Get-VBRAmazonEC2VPC

Short Description

Returns an Amazon VPC.

Applies to

Platform: VMware, Hyper-V

Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Get-VBRAmazonEC2VPC -Region <VBRAmazonEC2Region> [-AWSObjectId <string>]  [<CommonParameters>]

Detailed Description

This cmdlet returns an Amazon VPC.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Region

Specifies an AWS region. The cmdlet will return Amazon VPCs that are configured for this AWS location.

Accepts the VBRAmazonEC2Region type.

True

Named

False

 

AWSObjectId

Specifies the internal ID of the Amazon VPC. The cmdlet will return the VPC with this ID.

False

Named

False

 

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Return Type

Example

This example shows how to get Amazon EC2 VPCs that are configured for the specified AWS region.

  1. Run Get-VBRAmazonAccount to get AWS credentials records. Save the result to the $account variable.
  2. Run Get-VBRAmazonEC2Region with the $account variable. Use the RegionType and Name parameters to specify the type and name of the AWS region. Save the result to the $region variable.
  3. Run Get-VBRAmazonEC2VPC with the $region variable.

$account = Get-VBRAmazonAccount -Id "936edf7c-7cf3-4dbd-9895-c7485ef4bb2c"

$region = Get-VBRAmazonEC2Region -Account $account -RegionType Global -Name "ap-northeast-1"

Get-VBRAmazonEC2VPC -Region $region

Related Commands

Get-VBRAmazonAccount

Get-VBRAmazonEC2Region