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