--- title: "Disconnect-VBRAmazonS3Service" description: "This cmdlet stops active sessions with Amazon S3 object storage. You can stop current sessions for the following types of Amazon object storage: Amazon S3 S3 compatible (including IBM Cloud Object Storage)" canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/disconnect-vbramazons3service.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Backup Infrastructure > Cloud Credentials > Amazon S3 Accounts > Managing Amazon Connection Service > Disconnect-VBRAmazonS3Service" dateModified: "2026-08-19" --- # Disconnect-VBRAmazonS3Service ## Short Description Stops active sessions with Amazon S3 and S3 compatible object storage. **Platform**: VMware, Hyper-V **Product Edition**: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Disconnect-VBRAmazonS3Service -Connection [] ``` ## Detailed Description This cmdlet stops active sessions with Amazon S3 object storage. You can stop current sessions for the following types of Amazon object storage: - Amazon S3 - S3 compatible (including IBM Cloud Object Storage) ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Connection

Specifies a session with Amazon S3 object storage that you want to stop.

IVBRAmazonS3Connection

True

Named

True (ByValue)

`` 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). ## Examples ::: example ### Stopping Active Session with Amazon S3 Object Storage This example shows how to stops an active session with Amazon S3 object storage. ``` $account = Get-VBRAmazonAccount -AccessKey "ABCDEFGHIGKLMNOP" $session = Connect-VBRAmazonS3Service -Account $account -RegionType Global -ServiceType CapacityTier Disconnect-VBRAmazonS3Service -Connection $session ``` Perform the following steps: 1. Run the [`Get-VBRAmazonAccount`](get-vbramazonaccount.md) cmdlet. Specify the `AccessKey` parameter value. Save the result to the `$account` variable. 2. Run the [`Connect-VBRAmazonS3Service`](connect-vbramazons3service.md) cmdlet. Set the `$account` variable as the `Account` parameter value. Specify the `RegionType` and `ServiceType` parameter values. Save the result to the `$session` variable. 3. Run the `Disconnect-VBRAmazonS3Service` cmdlet. Set the `$session` variable as the `Connection` parameter value. ::: ## Related Commands - [`Get-VBRAmazonAccount`](get-vbramazonaccount.md) - [`Connect-VBRAmazonS3Service`](connect-vbramazons3service.md)