Connect to VMware Cloud on AWS GovCloud (US)

You can use PowerCLI to connect to VMware Cloud on AWS GovCloud (US).

Prerequisites

Use the VMware Cloud service web portal to generate an API token for authentication with PowerCLI.

Procedure

  1. Create variables to store the VMware Cloud API token and the VMware Cloud on AWS GovCloud (US) endpoints.
    $APIToken = "Your API Token"
    $VCSEndpoint = "console.cloud-us-gov.vmware.com"
    $VMCEndpoint = "www.vmc-us-gov.vmware.com"
    
  2. Create an OAuth security context and login to VMware Cloud services.
    $oauthSecContext = New-VcsOAuthSecurityContext -VcsServer $VCSEndpoint -ApiToken $APIToken
  3. Connect to VMware Cloud on AWS GovCloud (US).
    Connect-Vmc -Server $VMCEndpoint -OAuthSecurityContext $oauthSecContext