Get-VBRGoogleCloudComputeSubnet

Short Description

Returns subnets for Google Cloud region.

Platform: VMware, Hyper-V

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

Syntax

Get-VBRGoogleCloudComputeSubnet [-VPC <VBRGoogleCloudComputeVPC>] -Region <VBRGoogleCloudComputeRegion>

[-Name <String>] [<CommonParameters>]

Detailed Description

This cmdlet returns subnets for Google Cloud region.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Name

Specifies a name of the subnet. The cmdlet will return the subnet with the specified name.

String

False

Named

False

Region

Specifies a Google Cloud region. The cmdlet will return subnets for the specified Google Cloud region.

Accepts the VBRGoogleCloudComputeRegion object. To get this object, run the Get-VBRGoogleCloudComputeRegionReturns Google Cloud regions. cmdlet.

VBRGoogleCloudComputeRegion

True

Named

False

VPC

Specifies a Google Cloud VPC network. The cmdlet will return subnets for the specified Google Cloud VPC network.

Accepts the VBRGoogleCloudComputeVPC object. To get this object, run the Get-VBRGoogleCloudComputeVPCReturns Virtual Private Cloud (VPC) networks. cmdlet.

VBRGoogleCloudComputeVPC

False

Named

False

<CommonParameters>

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

Output Object

VBRGoogleCloudComputeSubnet

Examples

Getting Subnets for Google Cloud Region

This example shows how to get subnets for the Europe-west1 Google Cloud region and VPC network of the GCP service account 1 Google Cloud service account.

$computeregion = Get-VBRGoogleCloudComputeRegion -Name "Europe-west1"

$account = Get-VBRGoogleCloudComputeAccount -Name "GCP service account 1"

$vpc = Get-VBRGoogleCloudComputeVPC -Account $account

Get-VBRGoogleCloudComputeSubnet -Region $computeregion -VPC $vpc

Perform the following steps:

  1. Run the Get-VBRGoogleCloudComputeRegionReturns Google Cloud regions. cmdlet. Specify the Name parameter value. Save the result to the $computeregion variable.
  2. Run the Get-VBRGoogleCloudComputeAccountReturns Google Cloud service account credentials record. cmdlet. Specify the Name parameter value. Save the result to the $account variable.
  3. Run the Get-VBRGoogleCloudComputeVPCReturns Virtual Private Cloud (VPC) networks. cmdlet. Set the $account variable as the Account parameter. Save the result to the $vpc variable.
  4. Run the Get-VBRGoogleCloudComputeSubnet cmdlet. Set the $computeregion variable as the Region parameter. Set the $vpc variable as the VPC parameter.

Page updated 2026-08-19

Page content applies to build 13.1.1.18