microsoft / VSTSAgent.PowerShell

Tools for managing and automating your Azure DevOps Agents.
MIT License
29 stars 23 forks source link

PAT from $AccountCredential is not working for me #35

Open devopsdude12 opened 2 years ago

devopsdude12 commented 2 years ago

'PAT' = $AccountCredential.Password it seems like PAT created from AccountCredential is not working

at the end I'm getting this error message. Install-VSTSAgent : VS30063: You are not authorized to access https://dev.azure.com.

jwittner commented 2 years ago

Hey there. It's unclear to me where $AccountCredential is coming from. Have you confirmed the value of Password? From the logs the call seems to be working correctly, and I'm thinking you have authorization issue unrelated to this module.