--- title: "Set-VBRGoogleCloudRepository" description: "This cmdlet modifies settings for Google Cloud object storage added to the backup infrastructure. To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/set-vbrgooglecloudrepository.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Backup Infrastructure > Object Storage Repositories > Adding Google Cloud Object Storage > Set-VBRGoogleCloudRepository" dateModified: "2026-08-19" --- # Set-VBRGoogleCloudRepository ## Short Description Modifies settings for Google Cloud object storage added to the backup infrastructure. **Platform**: VMware, Hyper-V **Product Edition**: Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Set-VBRGoogleCloudRepository -Repository [-Name ] [-Description ] [-UseGatewayServer] [-ConnectionType ] [-GatewayServer ] [-EnableSizeLimit] [-SizeLimit ] [-EnableNearlineStorageClass] [-EnableColdlineStorageClass] [-ImmutabilityMode ] [-ImmutabilityPeriod ] [-MountServerOptions ] [-GoogleProxySpec ] [-EnableConcurrentTasksLimit] [-MaxConcurrentTasks ] [-Force] [] ``` ## Detailed Description This cmdlet modifies settings for Google Cloud object storage added to the backup infrastructure. ::: note To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. ::: ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

ConnectionType

Specifies how Veeam Backup & Replication will access the object storage repository:

  • Direct: Use this option if you want Veeam Backup & Replication to use a proxy server to transfer data from the processed VM to object storage repositories.
  • Gateway: Use this option if you want Veeam Backup & Replication to use a gateway server to transfer data from processed VM to object storage repositories. Note: Provide the GatewayServer parameter to specify the server.

Default: Direct.

VBRRepositoryConnectionType

False

Named

False

Description

Specifies a description of Google Cloud object storage. The cmdlet will assign this description to Google Cloud object storage.

String

False

Named

False

EnableColdlineStorageClass

Assigns the Coldline storage class to data blocks that you want to keep in Google Cloud object storage. Use this option if you plan to access your backup data rarely (for example, once a quarter) and plan to store data minimum 90 days.

Default: False.

Note: If you do not provide the EnableNearlineStorageClass or EnableColdlineStorageClass parameters, the cmdlet will assing the Standard storage class to data blocks.

SwitchParameter

False

Named

False

EnableConcurrentTasksLimit

Enables limits for concurrent tasks that can be processed by Google Cloud object storage.

Use the MaxConcurrentTasks parameter to specify the number of tasks.

SwitchParameter

False

Named

False

EnableNearlineStorageClass

Assigns the Nearline storage class to data blocks that you want to keep in Google Cloud object storage. Use this option if you want to access data rarely (for example, once in a month or less) and plan to store data minimum 30 days.

Default: False.

Note: If you do not provide the EnableNearlineStorageClass or EnableColdlineStorageClass parameters, the cmdlet will assing the Standard storage class to data blocks.

SwitchParameter

False

Named

False

EnableSizeLimit

Enables size limits for Google Cloud object storage that you want to add as an object storage.

Default: False.

Note: Use the SizeLimit parameter to specify the size limits.

SwitchParameter

False

Named

False

Force

Defines that the cmdlet will add Google Cloud object storage without showing warnings in the PowerShell console.

SwitchParameter

False

Named

False

GatewayServer

Specifies an array of gateway servers that you want to use to transfer data from processed VM to object storage repositories.

CHost[]

False

Named

False

GoogleProxySpec

Specifies proxy appliance settings. The cmdlet will use these settings to add Google Cloud object storage.

Accepts the VBRGoogleCloudComputeProxyAppliance object. To create this object, run the New-VBRGoogleCloudComputeProxyAppliance cmdlet.

VBRGoogleCloudComputeProxyAppliance

False

Named

False

ImmutabilityMode

Specifies the immutability retention period:

  • BackupRetention: Use this option if you want the immutability period to depend on the backup job retention.
  • RepositoryRetention: Use this option if you want to ignore the job retention and specify the immutability period explicitly.

VBRRepositoryImmutabilityMode

False

Named

False

ImmutabilityPeriod

Defines the immutability period in days.

Default: 30.

Maximum: 999.

Int32

False

Named

False

MaxConcurrentTasks

Specifies a maximum number of concurrent tasks that can be processed at once by Google Cloud object storage.

Int32

False

Named

False

MountServerOptions

Specifies settings of a mount server for object storage repositories.

Note: This parameter is required for object storage repositories that you want to add as performance extents to a scale-out backup repository.

VBRRepositoryMountServerOptions[]

False

Named

True (ByPropertyName)

Name

Specifies a name of Google Cloud object storage. The cmdlet will assign this name to Google Cloud object storage.

String

False

Named

False

Repository

Specifies the Google Cloud object storage that you want to modify.

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

VBRGoogleCloudRepository

True

Named

True (ByPropertyName, ByValue)

SizeLimit

For the EnableSizeLimit parameter.

Specifies the size limits in GB for data blocks that you want to store in Google Cloud object storage added as an object storage repository.

Permitted value: 10241073741824.

Default: 10240 GB.

Int32

False

Named

False

UseGatewayServer

Note: This parameter is deprecated and will be ignored. Use the GatewayServer parameter instead.

Defines that the cmdlet will use a gateway server to transfer data from processed VM to object storage repositories.

Default: False.

SwitchParameter

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 [`VBRGoogleCloudRepository`](vbrgooglecloudrepository.md) ## Examples ::: example ### Modifying Gateway Server of Google Cloud Object Storage This example shows how to modify settings for a Google Cloud object storage added to the backup infrastructure. The cmdlet will use custom gateway servers to connect to Google Cloud object storage. ``` $repository = Get-VBRObjectStorageRepository -Name "google" $gateserv = Get-VBRServer -Name "north.tech.local", "north2.tech.local" Set-VBRGoogleCloudRepository -Repository $repository -ConnectionType Gateway -GatewayServer $gateserv ``` Perform the following steps: 1. Run the [`Get-VBRObjectStorageRepository`](get-vbrobjectstoragerepository.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$repository` variable. 2. Run the [`Get-VBRServer`](get-vbrserver.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$gateserv` variable. 3. Run the `Set-VBRGoogleCloudRepository` cmdlet. Set the `$repository` variable as the `Repository` parameter value. Set the `Gateway` value for the `ConnectionType` parameter. Set the `$gateserv` variable as the `GatewayServer` parameter value. ::: ## Related Commands - [`Add-VBRGoogleCloudRepository`](add-vbrgooglecloudrepository.md) - [`Get-VBRObjectStorageRepository`](get-vbrobjectstoragerepository.md) - [`Get-VBRServer`](get-vbrserver.md)