Get-VBRAmazonEC2VPC

Short Description

Returns an Amazon VPC.

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

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

AWSObjectId

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

String

False

Named

False

Region

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

Accepts the VBRAmazonEC2Region object. To get this object, run the Get-VBRAmazonEC2RegionReturns AWS Regions and datacenters. cmdlet.

VBRAmazonEC2Region

True

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

VBRAmazonEC2VPC

Examples

Getting Amazon EC2 VPCs for Specified AWS Region

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

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

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

Get-VBRAmazonEC2VPC -Region $region

Perform the following steps:

  1. Run the Get-VBRAmazonAccountReturns AWS credentials records. cmdlet. Specify the Id parameter value. Save the result to the $account variable.
  2. Run the Get-VBRAmazonEC2RegionReturns AWS Regions and datacenters. cmdlet. Set the $account variable as the Account parameter value. Set the Global value as the RegionType parameter value. Specify the Name parameter value. Save the result to the $region variable.
  3. Run the Get-VBRAmazonEC2VPC cmdlet. Set the $region variable as the Region parameter value.

Page updated 2026-08-19

Page content applies to build 13.1.1.18