Get-TfsAccessTokenString
SYNOPSIS
Gets the VSTS PAT base64 encoded
SYNTAX
Get-TfsAccessTokenString [-PersonalAccessToken] <String> [<CommonParameters>]
DESCRIPTION
Gets the VSTS PAT base64 encoded to use with the TFS cmdlets
EXAMPLES
Example 1
Get-TfsAccessTokenString -PersonalAccessToken (New-Guid).Guid
Returns a string along the lines of "Basic OjU1YjE0Mzc4LWIxZGYtNDY3Ny1iMzEyLTM5NDAzODE4ZjZjNQ=="
PARAMETERS
-PersonalAccessToken
Your VSTS personal access token (see https://dev.azure.com/[YOUR USERNAME]/_details/security/tokens for details.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.