Syntax
Connect-Vmc [-RefreshToken <SecureString>] [-SaveRefreshToken] [-NotDefault] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet establishes a connection to a VMware Cloud on AWS server. Only Open Authorization (OAuth) is supported and a refresh token retrieves an access token, which later makes calls to the server.Parameters
Return Type
VMware.VimAutomation.Vmc.Types.V1.VmcServerNotes
Examples
-------------- Example 1 --------------
Connect-Vmc -RefreshToken $myRefreshToken
Connects to a VMware Cloud on AWS server.
-------------- Example 2 --------------
Connect-Vmc -RefreshToken $script:refreshToken -SaveRefreshToken
Connects to a VMware Cloud on AWS server by specifying the related secure connection token and saving it for later usage.
-------------- Example 3 --------------
$VmcServer = $newVmcServerAddress $VmcAuthenticationUrl = $newVmcServerAuthenticationUrl $VmcApiMetadataUrl = $newVmcServerMetaDataUrl Connect-Vmc -RefreshToken $myNewRefreshToken
Sets the VMware Cloud on AWS server, authentication, and API metadata URL variables and then connects to a VMware Cloud on AWS server by specifying the related secure connection token.