If the vCenter Server system has an OpenID authentication enabled, you can authenticate with the vCenter Server system by using an OAuth security context for the VMware Cloud services platform.

Prerequisites

  • Verify that you are connected to VMware Cloud on AWS.
  • Configure the VMware Cloud on AWS networking to provide access to the vCenter Server system running on the cloud.

Procedure

  1. Create an OAuth security context for the VMware Cloud service by using an API token.
    $oauthSecContext = New-VcsOAuthSecurityContext -ApiToken "Your API token" 
  2. Create a variable with the SDDC you want to connect to.
    $SDDC = Get-VmcSddc 'Your SDDC'
  3. Exchange the OAuth security context for an SAML security context.
    $samlSecContext = New-VISamlSecurityContext -VCenterServer $sddc.VCenterHostName -OAuthSecurityContext $oauthSecContext 
  4. Connect to a vCenter Server system by using an SAML security context.
    Connect-VIServer -Server $sddc.VCenterHostName -SamlSecurityContext $samlSecContext