Last active
July 5, 2017 04:58
-
-
Save ChendrayanV/cd96c348f9a93cd80cc81e82a6b64835 to your computer and use it in GitHub Desktop.
Visual Studio Team Services REST API - PAT Authentication using PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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