Skip to content

Instantly share code, notes, and snippets.

@ChendrayanV
Last active July 5, 2017 04:58
Show Gist options
  • Save ChendrayanV/cd96c348f9a93cd80cc81e82a6b64835 to your computer and use it in GitHub Desktop.
Save ChendrayanV/cd96c348f9a93cd80cc81e82a6b64835 to your computer and use it in GitHub Desktop.
Visual Studio Team Services REST API - PAT Authentication using PowerShell
# Visual Studio Team Services REST API - PAT Authentication using PowerShell
$UserName = "chendrayan.venkatesan@contoso.com"
$PersonalAccessToken = "Access Token"
$Authentication = "{0}:{1}" -f ($UserName,$PersonalAccessToken)
$Authentication = [System.Text.Encoding]::ASCII.GetBytes($Authentication)
$Authentication = [System.Convert]::ToBase64String($Authentication)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment