--- title: "Get-VBRGoogleCloudComputeSharedSubnet" description: "This cmdlet returns subnets of Google Cloud shared VPC network." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/get-vbrgooglecloudcomputesharedsubnet.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Data Recovery > Restore to Google Compute Engine > Get-VBRGoogleCloudComputeSharedSubnet" dateModified: "2026-08-19" --- # Get-VBRGoogleCloudComputeSharedSubnet ## Short Description Returns subnets of Google Cloud shared VPC network. **Platform**: VMware, Hyper-V **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Get-VBRGoogleCloudComputeSharedSubnet [-Region ] [-Name ] -Account [] ``` ## Detailed Description This cmdlet returns subnets of Google Cloud shared VPC network. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Account

Specifies a Google Cloud service account. The cmdlet will return subnets of the shared VPC network for the specified Google Cloud service account.

Accepts the VBRGoogleCloudComputeAccount object. To create this object, run the Add-VBRGoogleCloudComputeAccount cmdlet.

VBRGoogleCloudComputeAccount

True

Named

False

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 of the shared VPC for the specified Google Cloud region.

Accepts the VBRGoogleCloudComputeRegion object. To get this object, run the Get-VBRGoogleCloudComputeRegion cmdlet.

String

False

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Output Object [`VBRGoogleCloudComputeSubnet`](vbrgooglecloudcomputesubnet.md) ## Examples ::: example ### Getting Subnets of Shared VPC Network for Google Cloud Service Account This example shows how to get subnets of the shared VPC network for the `GCP service acc 1` Google Cloud service account. ``` $account = Get-VBRGoogleCloudComputeAccount -Name "GCP service acc 1" Get-VBRGoogleCloudComputeSharedSubnet -Account $account ``` Perform the following steps: 1. Run the [`Get-VBRGoogleCloudComputeAccount`](get-vbrgooglecloudcomputeaccount.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$account` variable. 2. Run the `Get-VBRGoogleCloudComputeSharedSubnet` cmdlet. Set the `$account` variable as the `Account` parameter. ::: ## Related Commands [`Get-VBRGoogleCloudComputeAccount`](get-vbrgooglecloudcomputeaccount.md)