--- title: "Set-VBRCloudGateway" description: "This cmdlet modifies an existing cloud gateway. 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." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/set-vbrcloudgateway.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Veeam Cloud Connect > Veeam Cloud Connect Cloud Gateways > Set-VBRCloudGateway" dateModified: "2026-08-19" --- # Set-VBRCloudGateway ## Short Description Modifies cloud gateways. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License Requires a cloud provider license. ## Syntax ``` Set-VBRCloudGateway -CloudGateway [-Description ] [-IpAddress ] [-IncomingPort ] [-NATPort ] [-PassThru] [-NetworkMode ] [] ``` ## Detailed Description This cmdlet modifies an existing cloud gateway. ::: 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

CloudGateway

Specifies the cloud gateway you want to modify.

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

VBRCloudGateway

True

Named

True (ByPropertyName, ByValue)

Description

Specifies the description of the cloud gateway.

String

False

Named

False

IncomingPort

Specifies a port on the NAT gateway used for listening to connections from users and passing cloud commands from users to the SP Veeam backup server.

Permitted values: 1 to 65535.

Default: 6180.

Int32

False

Named

False

IpAddress

Specifies an external IP address of the NAT or network interface gateway.

Accepts IPAddress or string.

String

False

Named

False

NATPort

Specifies an external port that will be used by the Veeam backup server to connect to the gateway.

Permitted values: 1 to 65535.

Default: (for Direct) null, (for NAT) 6180.

Int32

False

Named

False

NetworkMode

Specifies network mode: Direct, NAT.

VBRGatewayNetworkMode

False

Named

False

PassThru

Defines that the command returns the output object to the Windows PowerShell console.

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 [`VBRCloudGateway`](vbrcloudgateway.md) ## Examples ::: example ### Example 1. Setting New Port for Cloud Gateway [Using Variable] This example shows how to set a new port for the cloud gateway to connect to Veeam Backup & Replication. The new port number is set to `9012`. ``` $cloudgateway = Get-VBRCloudGateway -Name "Cloud Gateway" Set-VBRCloudGateway -CloudGateway $cloudgateway -IncomingPort 9012 ``` Perform the following steps: 1. Run the [`Get-VBRCloudGateway`](get-vbrcloudgateway.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$cloudgateway` variable. 2. Run the `Set-VBRCloudGateway` cmdlet. Set the `$cloudgateway` variable as the `CloudGateway` parameter value. Specify the `IncomingPort` parameter value. ::: ::: example ### Example 2. Setting New Port for Cloud Gateway [Using Pipeline] This example shows how to set a new cloud gateway IP address and port to connect to Veeam Backup & Replication. The IP address is set to `172.16.10.20` and the port is set to `8062`. ``` Get-VBRCloudGateway | Set-VBRCloudGateway -IpAddress 172.16.10.20 -IncomingPort 8062 ``` Perform the following steps: 1. Run the [`Get-VBRCloudGateway`](get-vbrcloudgateway.md) cmdlet. 2. Pipe the cmdlet output to the `Set-VBRCloudGateway` cmdlet. Specify the `IpAddress` and the `IncomingPort` parameter values. ::: ## Related Commands [`Get-VBRCloudGateway`](get-vbrcloudgateway.md)