Skip to content

Instantly share code, notes, and snippets.

@pmatthews05
Last active September 27, 2020 14:06
Show Gist options
  • Select an option

  • Save pmatthews05/b00a81f57ff8fe820285b934fc7606b1 to your computer and use it in GitHub Desktop.

Select an option

Save pmatthews05/b00a81f57ff8fe820285b934fc7606b1 to your computer and use it in GitHub Desktop.
$PersonalAccessToken = '<Put your PAT Token>'
$TeamProject = '<Project Name>'
$TeamFoundationCollectionUri = 'https://dev.azure.com/<OrganizationName >'
$AppRegistrationName = '<Service Principal Name>'
$AppPassword = '<Service Principal Secret>'
$AppSecurePassword = ConvertTo-SecureString -String:$AppPassword -AsPlainText -Force
.\Install-ServiceConnectionSubscription.ps1 -PersonalAccessToken $PersonalAccessToken `
-TeamFoundationCollectionUri:$TeamFoundationCollectionUri `
-TeamProject:$TeamProject `
-AppRegistrationName:$AppRegistrationName `
-AppPassword:$AppSecurePassword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment