microsoft / azure-pipelines-agent

Azure Pipelines Agent 🚀
MIT License
1.73k stars 869 forks source link

Problem creating type OAuth #817

Closed enricforn closed 7 years ago

enricforn commented 7 years ago

Agent version and platform

Agent version vsts-agent-win7-x64-2.105.7


OS of the machine running the agent: Windows Server 2016 DataCenter

VSTS type and version

On-Prem TFS TFS2017 RTM?

What's not working?

Cannot register OAuth credential. Running command:

.\config.cmd --unattended --url https://tfs17.company.com --auth Negotiate --username companydomain\TFSSERVICE --password **** --pool default --agent Agent1 --replace

Connect:

Connecting to server ...

Register Agent:

Scanning for tool capabilities. Connecting to the server. Successfully replaced the agent Testing agent connection. VS30063: You are not authorized to access https://tfs17.company.com.


[2017-02-27 16:19:58Z INFO AgentProcess] Agent is built for Windows - win7-x64. [2017-02-27 16:19:58Z INFO AgentProcess] RuntimeInformation: Microsoft Windows 10.0.14393 . [2017-02-27 16:19:58Z INFO AgentProcess] Version: 2.105.7 [2017-02-27 16:19:58Z INFO AgentProcess] Commit: 5f286b1f01c51b7cace8c1649edd6b00893a3649 [2017-02-27 16:19:58Z INFO AgentProcess] Culture: en-US [2017-02-27 16:19:58Z INFO AgentProcess] UI Culture: en-US [2017-02-27 16:19:58Z INFO HostContext] Well known directory 'Bin': 'C:\Agents\1\bin' [2017-02-27 16:19:58Z INFO HostContext] Well known directory 'Root': 'C:\Agents\1' [2017-02-27 16:19:58Z INFO AgentProcess] Validating directory permissions for: 'C:\Agents\1' [2017-02-27 16:19:58Z INFO PowerShellExeUtil] Generation: '1' [2017-02-27 16:19:58Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1', value name 'Install': '1' [2017-02-27 16:19:58Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine', value name 'PowerShellVersion': '2.0' [2017-02-27 16:19:58Z INFO PowerShellExeUtil] Unsupported version. Skipping. [2017-02-27 16:19:58Z INFO PowerShellExeUtil] Generation: '3' [2017-02-27 16:19:58Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3', value name 'Install': '1' [2017-02-27 16:19:58Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine', value name 'PowerShellVersion': '5.1.14393.0' [2017-02-27 16:19:58Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine', value name 'ApplicationBase': 'C:\Windows\System32\WindowsPowerShell\v1.0' [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework', value name 'InstallRoot': 'C:\Windows\Microsoft.NET\Framework64\' [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Key name 'SOFTWARE\Microsoft\NET Framework Setup\NDP' contains sub keys: [2017-02-27 16:19:58Z INFO NetFrameworkUtil] 'CDF' [2017-02-27 16:19:58Z INFO NetFrameworkUtil] 'v4' [2017-02-27 16:19:58Z INFO NetFrameworkUtil] 'v4.0' [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4', value name 'Version' is null. [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4', value name '' is null. [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Key name 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4' contains sub keys: [2017-02-27 16:19:58Z INFO NetFrameworkUtil] 'Client' [2017-02-27 16:19:58Z INFO NetFrameworkUtil] 'Full' [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Version': '4.6.01586' [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Install': '1' [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'InstallPath': 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\' [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Release': '394802' [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Type is System.Int32 [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Interpreted version: 4.6.2 [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Version': '4.6.01586' [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Install': '1' [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'InstallPath': 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\' [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Release': '394802' [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Type is System.Int32 [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Interpreted version: 4.6.2 [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4.0', value name 'Version' is null. [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4.0', value name '': 'deprecated' [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Found 2 versions: [2017-02-27 16:19:58Z INFO NetFrameworkUtil] 4.6.2 [2017-02-27 16:19:58Z INFO NetFrameworkUtil] 4.6.2 [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Testing for min NET Framework version: '4.5' [2017-02-27 16:19:58Z INFO CommandLineParser] Parse [2017-02-27 16:19:58Z INFO CommandLineParser] Parsing 15 args [2017-02-27 16:19:58Z INFO CommandLineParser] parsing argument [2017-02-27 16:19:58Z INFO CommandLineParser] HasArgs: False [2017-02-27 16:19:58Z INFO CommandLineParser] Adding Command: configure [2017-02-27 16:19:58Z INFO CommandLineParser] parsing argument [2017-02-27 16:19:58Z INFO CommandLineParser] HasArgs: True [2017-02-27 16:19:58Z INFO CommandLineParser] arg: unattended [2017-02-27 16:19:58Z INFO CommandLineParser] parsing argument [2017-02-27 16:19:58Z INFO CommandLineParser] HasArgs: True [2017-02-27 16:19:58Z INFO CommandLineParser] arg: url [2017-02-27 16:19:58Z INFO CommandLineParser] Adding flag: unattended [2017-02-27 16:19:58Z INFO CommandLineParser] parsing argument [2017-02-27 16:19:58Z INFO CommandLineParser] HasArgs: True [2017-02-27 16:19:58Z INFO CommandLineParser] Adding option 'url': 'https://tfs17.company.com' [2017-02-27 16:19:58Z INFO CommandLineParser] parsing argument [2017-02-27 16:19:58Z INFO CommandLineParser] HasArgs: True [2017-02-27 16:19:58Z INFO CommandLineParser] arg: auth [2017-02-27 16:19:58Z INFO CommandLineParser] parsing argument [2017-02-27 16:19:58Z INFO CommandLineParser] HasArgs: True [2017-02-27 16:19:58Z INFO CommandLineParser] Adding option 'auth': 'Negotiate' [2017-02-27 16:19:58Z INFO CommandLineParser] parsing argument [2017-02-27 16:19:58Z INFO CommandLineParser] HasArgs: True [2017-02-27 16:19:58Z INFO CommandLineParser] arg: username [2017-02-27 16:19:58Z INFO CommandLineParser] parsing argument [2017-02-27 16:19:58Z INFO CommandLineParser] HasArgs: True [2017-02-27 16:19:58Z INFO CommandLineParser] Adding option 'username': 'company\TFSSERVICE' [2017-02-27 16:19:58Z INFO CommandLineParser] parsing argument [2017-02-27 16:19:58Z INFO CommandLineParser] HasArgs: True [2017-02-27 16:19:58Z INFO CommandLineParser] arg: password [2017-02-27 16:19:58Z INFO CommandLineParser] parsing argument [2017-02-27 16:19:58Z INFO CommandLineParser] HasArgs: True [2017-02-27 16:19:58Z INFO CommandLineParser] Adding option 'password': '****' [2017-02-27 16:19:58Z INFO CommandLineParser] parsing argument [2017-02-27 16:19:58Z INFO CommandLineParser] HasArgs: True [2017-02-27 16:19:58Z INFO CommandLineParser] arg: pool [2017-02-27 16:19:58Z INFO CommandLineParser] parsing argument [2017-02-27 16:19:58Z INFO CommandLineParser] HasArgs: True [2017-02-27 16:19:58Z INFO CommandLineParser] Adding option 'pool': 'default' [2017-02-27 16:19:58Z INFO CommandLineParser] parsing argument [2017-02-27 16:19:58Z INFO CommandLineParser] HasArgs: True [2017-02-27 16:19:58Z INFO CommandLineParser] arg: agent [2017-02-27 16:19:58Z INFO CommandLineParser] parsing argument [2017-02-27 16:19:58Z INFO CommandLineParser] HasArgs: True [2017-02-27 16:19:58Z INFO CommandLineParser] Adding option 'agent': 'agent1' [2017-02-27 16:19:58Z INFO CommandLineParser] parsing argument [2017-02-27 16:19:58Z INFO CommandLineParser] HasArgs: True [2017-02-27 16:19:58Z INFO CommandLineParser] arg: replace [2017-02-27 16:19:58Z INFO AgentProcess] Arguments parsed [2017-02-27 16:19:58Z INFO ProxyConfiguration] No proxy setting found. [2017-02-27 16:19:58Z INFO Agent] ExecuteCommand [2017-02-27 16:19:58Z INFO ConfigurationStore] currentAssemblyLocation: C:\Agents\1\bin\Agent.Listener.dll [2017-02-27 16:19:58Z INFO ConfigurationStore] binPath: C:\Agents\1\bin [2017-02-27 16:19:58Z INFO ConfigurationStore] RootFolder: C:\Agents\1 [2017-02-27 16:19:58Z INFO ConfigurationStore] ConfigFilePath: C:\Agents\1.agent [2017-02-27 16:19:58Z INFO ConfigurationStore] CredFilePath: C:\Agents\1.credentials [2017-02-27 16:19:58Z INFO ConfigurationStore] ServiceConfigFilePath: C:\Agents\1.service [2017-02-27 16:19:58Z INFO CommandSettings] Flag 'help': 'False' [2017-02-27 16:19:58Z INFO CommandSettings] Flag 'version': 'False' [2017-02-27 16:19:58Z INFO CommandSettings] Flag 'commit': 'False' [2017-02-27 16:19:58Z INFO CommandSettings] Command 'configure': 'True' [2017-02-27 16:19:58Z INFO ConfigurationManager] ConfigureAsync [2017-02-27 16:19:58Z INFO ConfigurationStore] IsConfigured() [2017-02-27 16:19:58Z INFO ConfigurationStore] IsConfigured: False [2017-02-27 16:19:58Z INFO ConfigurationManager] Is configured: False [2017-02-27 16:19:58Z INFO NetFrameworkUtil] Testing for min NET Framework version: '4.6' [2017-02-27 16:19:59Z INFO Terminal] WRITE LINE: [2017-02-27 16:19:59Z INFO Terminal] WRITE LINE: >> Connect: [2017-02-27 16:19:59Z INFO Terminal] WRITE LINE: [2017-02-27 16:19:59Z INFO CommandSettings] Arg 'url': 'https://tfs17.company.com' [2017-02-27 16:19:59Z INFO CommandSettings] Remove url from Arg dictionary. [2017-02-27 16:19:59Z INFO ConfigurationManager] GetCredentialProvider [2017-02-27 16:19:59Z INFO CommandSettings] Arg 'auth': 'Negotiate' [2017-02-27 16:19:59Z INFO CommandSettings] Remove auth from Arg dictionary. [2017-02-27 16:19:59Z INFO ConfigurationManager] Creating credential for auth: Negotiate [2017-02-27 16:19:59Z INFO CredentialManager] GetCredentialProvider [2017-02-27 16:19:59Z INFO CredentialManager] Creating type Negotiate [2017-02-27 16:19:59Z INFO CredentialManager] Creating credential type: Negotiate [2017-02-27 16:19:59Z INFO PersonalAccessToken] EnsureCredential [2017-02-27 16:19:59Z INFO CommandSettings] Arg 'username': 'domain\TFSSERVICE' [2017-02-27 16:19:59Z INFO CommandSettings] Remove username from Arg dictionary. [2017-02-27 16:19:59Z INFO CommandSettings] Arg 'password': '****' [2017-02-27 16:19:59Z INFO CommandSettings] Remove password from Arg dictionary. [2017-02-27 16:19:59Z INFO NegotiateCredential] GetVssCredentials [2017-02-27 16:19:59Z INFO NegotiateCredential] User name retrieved. [2017-02-27 16:19:59Z INFO NegotiateCredential] Password retrieved. [2017-02-27 16:19:59Z INFO NegotiateCredential] URL retrieved: https://tfs17.company.com [2017-02-27 16:19:59Z INFO ConfigurationManager] cred retrieved [2017-02-27 16:19:59Z INFO Terminal] WRITE LINE: Connecting to server ... [2017-02-27 16:20:00Z INFO ConfigurationManager] Connect complete. [2017-02-27 16:20:00Z INFO RSAEncryptedFileKeyManager] Found existing RSA key parameters file C:\Agents\1.credentials_rsaparams [2017-02-27 16:20:00Z INFO Terminal] WRITE LINE: [2017-02-27 16:20:00Z INFO Terminal] WRITE LINE: >> Register Agent: [2017-02-27 16:20:00Z INFO Terminal] WRITE LINE: [2017-02-27 16:20:00Z INFO CommandSettings] Arg 'pool': 'default' [2017-02-27 16:20:00Z INFO CommandSettings] Remove pool from Arg dictionary. [2017-02-27 16:20:00Z INFO ConfigurationManager] Found pool default with id 2 [2017-02-27 16:20:00Z INFO ConfigurationManager] PoolId for agent pool 'default' is '2'. [2017-02-27 16:20:00Z INFO CommandSettings] Arg 'agent': 'agent1' [2017-02-27 16:20:00Z INFO CommandSettings] Remove agent from Arg dictionary. [2017-02-27 16:20:00Z INFO Terminal] WRITE LINE: Scanning for tool capabilities. [2017-02-27 16:20:00Z INFO ExtensionManager] Getting extensions for interface: 'Microsoft.VisualStudio.Services.Agent.Listener.Capabilities.ICapabilitiesProvider' [2017-02-27 16:20:00Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Capabilities.AgentCapabilitiesProvider, Agent.Listener [2017-02-27 16:20:00Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Capabilities.EnvironmentCapabilitiesProvider, Agent.Listener [2017-02-27 16:20:00Z INFO ExtensionManager] Creating instance: Microsoft.VisualStudio.Services.Agent.Listener.Capabilities.PowerShellCapabilitiesProvider, Agent.Listener [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'ALLUSERSPROFILE': 'C:\ProgramData' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'APPDATA': 'C:\Users\installtfs\AppData\Roaming' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'CLIENTNAME': 'CAMALEO' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'CommonProgramFiles': 'C:\Program Files\Common Files' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'CommonProgramFiles(x86)': 'C:\Program Files (x86)\Common Files' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'CommonProgramW6432': 'C:\Program Files\Common Files' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'COMPUTERNAME': 'companyaz28' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'ComSpec': 'C:\Windows\system32\cmd.exe' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'ES_HEAP_SIZE': '2100m' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'HOMEDRIVE': 'C:' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'HOMEPATH': '\Users\installtfs' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'JAVA_HOME': 'C:\Program Files\Microsoft Team Foundation Server 15.0\Search\Java\jre1.8.0_111' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'LOCALAPPDATA': 'C:\Users\installtfs\AppData\Local' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'LOGONSERVER': '\companyaz-D5' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'NUMBER_OF_PROCESSORS': '2' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'OS': 'Windows_NT' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'Path': 'C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\installtfs\AppData\Local\Microsoft\WindowsApps;;C:\Agents\1\bin' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'PROCESSOR_ARCHITECTURE': 'AMD64' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'PROCESSOR_IDENTIFIER': 'Intel64 Family 6 Model 63 Stepping 2, GenuineIntel' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'PROCESSOR_LEVEL': '6' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'PROCESSOR_REVISION': '3f02' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'ProgramData': 'C:\ProgramData' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'ProgramFiles': 'C:\Program Files' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'ProgramFiles(x86)': 'C:\Program Files (x86)' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'ProgramW6432': 'C:\Program Files' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'PROMPT': '$P$G' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'PSModulePath': 'C:\Users\installtfs\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'PUBLIC': 'C:\Users\Public' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'SEARCH_ES_INDEX_PATH': 'C:\TfsData\Search\IndexStore' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'SESSIONNAME': 'RDP-Tcp#17' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'SystemDrive': 'C:' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'SystemRoot': 'C:\Windows' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'TEMP': 'C:\Users\INSTAL~1\AppData\Local\Temp\3' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'TMP': 'C:\Users\INSTAL~1\AppData\Local\Temp\3' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'USERDNSDOMAIN': 'domain.LOCAL' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'USERDOMAIN': 'domain' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'USERDOMAIN_ROAMINGPROFILE': 'domain' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'USERNAME': 'installtfs' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'USERPROFILE': 'C:\Users\installtfs' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'VERBOSE_ARG': ''SilentlyContinue'' [2017-02-27 16:20:00Z INFO EnvironmentCapabilitiesProvider] Adding 'windir': 'C:\Windows' [2017-02-27 16:20:00Z INFO PowerShellExeUtil] Generation: '1' [2017-02-27 16:20:00Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1', value name 'Install': '1' [2017-02-27 16:20:00Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine', value name 'PowerShellVersion': '2.0' [2017-02-27 16:20:00Z INFO PowerShellExeUtil] Unsupported version. Skipping. [2017-02-27 16:20:00Z INFO PowerShellExeUtil] Generation: '3' [2017-02-27 16:20:00Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3', value name 'Install': '1' [2017-02-27 16:20:00Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine', value name 'PowerShellVersion': '5.1.14393.0' [2017-02-27 16:20:00Z INFO PowerShellExeUtil] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine', value name 'ApplicationBase': 'C:\Windows\System32\WindowsPowerShell\v1.0' [2017-02-27 16:20:00Z INFO ProcessInvoker] Starting process: [2017-02-27 16:20:00Z INFO ProcessInvoker] File name: 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' [2017-02-27 16:20:00Z INFO ProcessInvoker] Arguments: '-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\Agents\1\bin\powershell\Add-Capabilities.ps1'"' [2017-02-27 16:20:00Z INFO ProcessInvoker] Working directory: 'C:\Agents\1\bin\powershell' [2017-02-27 16:20:00Z INFO ProcessInvoker] Require exit code zero: 'False' [2017-02-27 16:20:00Z INFO ProcessInvoker] Encoding web name: ; code page: '' [2017-02-27 16:20:01Z INFO ProcessInvoker] Process started with process id 1452, waiting for process exit. [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: & C:\Agents\1\bin\powershell\Add-AndroidSdkCapabilities.ps1 [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'CurrentUser', view 'Default', key name 'SOFTWARE\Android SDK Tools', value name 'Path' [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'SOFTWARE\Android SDK Tools', value name 'Path' [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'SOFTWARE\Android SDK Tools', value name 'Path' [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: & C:\Agents\1\bin\powershell\Add-AntCapabilities.ps1 [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: 'env:ANT_HOME' [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Value not found or is empty. [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: & C:\Agents\1\bin\powershell\Add-AzurePowerShellCapabilities.ps1 [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Env:PSModulePath: 'C:\Users\installtfs\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules' [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Attempting to find the module 'AzureRM' from the module path. [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Not found. [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking if path exists: C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureRM.Profile\AzureRM.Profile.psd1 [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking if path exists: C:\Program Files\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureRM.Profile\AzureRM.Profile.psd1 [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Attempting to find the module 'Azure' from the module path. [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Not found. [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking if path exists: C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Azure.psd1 [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking if path exists: C:\Program Files\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Azure.psd1 [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: & C:\Agents\1\bin\powershell\Add-ChefCapabilities.ps1 [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Not found. [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: & C:\Agents\1\bin\powershell\Add-DotNetFrameworkCapabilities.ps1 [2017-02-27 16:20:01Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft.NETFramework', value name 'InstallRoot' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: 'C:\Windows\Microsoft.NET\Framework\' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\NET Framework Setup\NDP' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Sub keys: [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: 'CDF' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: 'v4' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: 'v4.0' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\NET Framework Setup\NDP\v4', value name 'Version' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Value not found or is empty. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\NET Framework Setup\NDP\v4', value name '' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Value not found or is empty. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\NET Framework Setup\NDP\v4' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Sub keys: [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: 'Client' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: 'Full' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Version' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: '4.6.01586' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Install' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found Int32 value: '1' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'InstallPath' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Release' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found Int32 value: '394802' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: ##vso[agent.capability name=DotNetFramework_4.6.2]C:\Windows\Microsoft.NET\Framework\v4.0.30319 [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] Adding 'DotNetFramework_4.6.2': 'C:\Windows\Microsoft.NET\Framework\v4.0.30319' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Version' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: '4.6.01586' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Install' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found Int32 value: '1' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'InstallPath' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Release' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found Int32 value: '394802' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: ##vso[agent.capability name=DotNetFramework_4.6.2]C:\Windows\Microsoft.NET\Framework\v4.0.30319 [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] Adding 'DotNetFramework_4.6.2': 'C:\Windows\Microsoft.NET\Framework\v4.0.30319' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\NET Framework Setup\NDP\v4.0', value name 'Version' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Value not found or is empty. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\NET Framework Setup\NDP\v4.0', value name '' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: 'deprecated' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft.NETFramework', value name 'InstallRoot' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: 'C:\Windows\Microsoft.NET\Framework64\' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\NET Framework Setup\NDP' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Sub keys: [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: 'CDF' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: 'v4' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: 'v4.0' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\NET Framework Setup\NDP\v4', value name 'Version' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Value not found or is empty. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\NET Framework Setup\NDP\v4', value name '' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Value not found or is empty. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\NET Framework Setup\NDP\v4' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Sub keys: [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: 'Client' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: 'Full' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Version' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: '4.6.01586' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Install' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found Int32 value: '1' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'InstallPath' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\NET Framework Setup\NDP\v4\Client', value name 'Release' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found Int32 value: '394802' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: ##vso[agent.capability name=DotNetFramework_4.6.2_x64]C:\Windows\Microsoft.NET\Framework64\v4.0.30319 [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] Adding 'DotNetFramework_4.6.2_x64': 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Version' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: '4.6.01586' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Install' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found Int32 value: '1' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'InstallPath' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\NET Framework Setup\NDP\v4\Full', value name 'Release' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found Int32 value: '394802' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: ##vso[agent.capability name=DotNetFramework_4.6.2_x64]C:\Windows\Microsoft.NET\Framework64\v4.0.30319 [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] Adding 'DotNetFramework_4.6.2_x64': 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\NET Framework Setup\NDP\v4.0', value name 'Version' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Value not found or is empty. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\NET Framework Setup\NDP\v4.0', value name '' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: 'deprecated' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: ##vso[agent.capability name=DotNetFramework]C:\Windows\Microsoft.NET\Framework64\v4.0.30319 [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] Adding 'DotNetFramework': 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: & C:\Agents\1\bin\powershell\Add-JavaCapabilities.ps1 [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\JavaSoft\Java Runtime Environment\1.6', value name 'JavaHome' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\JavaSoft\Java Runtime Environment\1.7', value name 'JavaHome' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\JavaSoft\Java Runtime Environment\1.8', value name 'JavaHome' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: 'C:\Program Files (x86)\Java\jre1.8.0_121' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: ##vso[agent.capability name=java_8]C:\Program Files (x86)\Java\jre1.8.0_121 [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] Adding 'java_8': 'C:\Program Files (x86)\Java\jre1.8.0_121' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\JavaSoft\Java Runtime Environment\1.6', value name 'JavaHome' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\JavaSoft\Java Runtime Environment\1.7', value name 'JavaHome' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\JavaSoft\Java Runtime Environment\1.8', value name 'JavaHome' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: ##vso[agent.capability name=java]C:\Program Files (x86)\Java\jre1.8.0_121 [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] Adding 'java': 'C:\Program Files (x86)\Java\jre1.8.0_121' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\JavaSoft\Java Development Kit\1.6', value name 'JavaHome' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\JavaSoft\Java Development Kit\1.7', value name 'JavaHome' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\JavaSoft\Java Development Kit\1.8', value name 'JavaHome' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\JavaSoft\Java Development Kit\1.6', value name 'JavaHome' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\JavaSoft\Java Development Kit\1.7', value name 'JavaHome' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\JavaSoft\Java Development Kit\1.8', value name 'JavaHome' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: & C:\Agents\1\bin\powershell\Add-MavenCapabilities.ps1 [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: env:JAVA_HOME [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: 'env:M2_HOME' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Value not found or is empty. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: & C:\Agents\1\bin\powershell\Add-MSBuildCapabilities.ps1 [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\MSBuild\ToolsVersions\2.0', value name 'MSBuildToolsPath' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\MSBuild\ToolsVersions\3.5', value name 'MSBuildToolsPath' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\MSBuild\ToolsVersions\4.0', value name 'MSBuildToolsPath' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: ##vso[agent.capability name=MSBuild_4.0]C:\Windows\Microsoft.NET\Framework\v4.0.30319\ [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] Adding 'MSBuild_4.0': 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\MSBuild\ToolsVersions\12.0', value name 'MSBuildToolsPath' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\MSBuild\ToolsVersions\14.0', value name 'MSBuildToolsPath' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: 'C:\Program Files (x86)\MSBuild\14.0\bin\' [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] STDOUT: ##vso[agent.capability name=MSBuild_14.0]C:\Program Files (x86)\MSBuild\14.0\bin\ [2017-02-27 16:20:02Z INFO PowerShellCapabilitiesProvider] Adding 'MSBuild_14.0': 'C:\Program Files (x86)\MSBuild\14.0\bin\' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Testing container: 'REGISTRY::HKEY_CLASSES_ROOT\CLSID{177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D}' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Does not exist. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: ##vso[agent.capability name=MSBuild]C:\Program Files (x86)\MSBuild\14.0\bin\ [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] Adding 'MSBuild': 'C:\Program Files (x86)\MSBuild\14.0\bin\' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\MSBuild\ToolsVersions\2.0', value name 'MSBuildToolsPath' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\MSBuild\ToolsVersions\3.5', value name 'MSBuildToolsPath' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\MSBuild\ToolsVersions\4.0', value name 'MSBuildToolsPath' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: ##vso[agent.capability name=MSBuild_4.0_x64]C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] Adding 'MSBuild_4.0_x64': 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\MSBuild\ToolsVersions\12.0', value name 'MSBuildToolsPath' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\MSBuild\ToolsVersions\14.0', value name 'MSBuildToolsPath' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Found String value: 'C:\Program Files (x86)\MSBuild\14.0\bin\amd64\' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: ##vso[agent.capability name=MSBuild_14.0_x64]C:\Program Files (x86)\MSBuild\14.0\bin\amd64\ [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] Adding 'MSBuild_14.0_x64': 'C:\Program Files (x86)\MSBuild\14.0\bin\amd64\' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: ##vso[agent.capability name=MSBuild_x64]C:\Program Files (x86)\MSBuild\14.0\bin\amd64\ [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] Adding 'MSBuild_x64': 'C:\Program Files (x86)\MSBuild\14.0\bin\amd64\' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: & C:\Agents\1\bin\powershell\Add-NodeToolCapabilities.ps1 [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking for application: 'npm' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking for application: 'gulp' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking for application: 'node' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking for application: 'bower' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking for application: 'grunt' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking for application: 'svn' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: & C:\Agents\1\bin\powershell\Add-PowerShellCapabilities.ps1 [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: ##vso[agent.capability name=PowerShell]5.1.14393.206 [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] Adding 'PowerShell': '5.1.14393.206' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: & C:\Agents\1\bin\powershell\Add-ScvmmAdminConsoleCapabilities.ps1 [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\Microsoft System Center Virtual Machine Manager Administrator Console\Setup', value name 'InstallPath' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\Microsoft System Center Virtual Machine Manager Administrator Console\Setup', value name 'InstallPath' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: & C:\Agents\1\bin\powershell\Add-SqlPackageCapabilities.ps1 [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\Microsoft SQL Server' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\Microsoft SQL Server' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\Microsoft SQL Server\Data-Tier Application Framework' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\Microsoft SQL Server\Data-Tier Application Framework' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\VisualStudio' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Sub keys: [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: '11.0' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: '14.0' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\VisualStudio\14.0', value name 'InstallDir' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Value not found or is empty. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\VisualStudio\11.0', value name 'InstallDir' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Value not found or is empty. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\VisualStudio' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Sub keys: [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: '14.0' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry64', key name 'Software\Microsoft\VisualStudio\14.0', value name 'InstallDir' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Value not found or is empty. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: & C:\Agents\1\bin\powershell\Add-VisualStudioCapabilities.ps1 [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\VisualStudio\10.0', value name 'ShellFolder' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\VisualStudio\10.0', value name 'InstallDir' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\VisualStudio\11.0', value name 'ShellFolder' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Value not found or is empty. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\VisualStudio\11.0', value name 'InstallDir' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Value not found or is empty. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\VisualStudio\12.0', value name 'ShellFolder' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\VisualStudio\14.0', value name 'ShellFolder' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Value not found or is empty. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Testing container: 'REGISTRY::HKEY_CLASSES_ROOT\CLSID{177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D}' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Does not exist. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\VisualStudio\15.0', value name 'ShellFolder' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: & C:\Agents\1\bin\powershell\Add-WindowsKitCapabilities.ps1 [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\Windows Kits\Installed Roots', value name '' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: & C:\Agents\1\bin\powershell\Add-WindowsSdkCapabilities.ps1 [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Microsoft\Microsoft SDKs\Windows' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: & C:\Agents\1\bin\powershell\Add-XamarinAndroidCapabilities.ps1 [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Checking: hive 'LocalMachine', view 'Registry32', key name 'Software\Novell\Mono for Android', value name 'InstalledVersion' [2017-02-27 16:20:03Z INFO PowerShellCapabilitiesProvider] STDOUT: Key not found. [2017-02-27 16:20:03Z INFO ProcessInvoker] Finished process with exit code 0, and elapsed time 00:00:02.8039883. [2017-02-27 16:20:03Z INFO AgentCapabilitiesProvider] Adding 'Agent.Name': 'agent1' [2017-02-27 16:20:03Z INFO AgentCapabilitiesProvider] Adding 'Agent.OS': 'Windows_NT' [2017-02-27 16:20:03Z INFO AgentCapabilitiesProvider] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion', value name 'CurrentMajorVersionNumber': '10' [2017-02-27 16:20:03Z INFO AgentCapabilitiesProvider] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion', value name 'CurrentMinorVersionNumber': '0' [2017-02-27 16:20:03Z INFO AgentCapabilitiesProvider] Key name 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion', value name 'CurrentBuildNumber': '14393' [2017-02-27 16:20:03Z INFO AgentCapabilitiesProvider] Adding 'Agent.OSVersion': '10.0.14393' [2017-02-27 16:20:03Z INFO AgentCapabilitiesProvider] Adding 'Cmd': 'C:\Windows\system32\cmd.exe' [2017-02-27 16:20:03Z INFO AgentCapabilitiesProvider] Adding 'Agent.Version': '2.105.7' [2017-02-27 16:20:03Z INFO AgentCapabilitiesProvider] Adding 'Agent.ComputerName': 'companyaz28' [2017-02-27 16:20:03Z INFO Terminal] WRITE LINE: Connecting to the server. [2017-02-27 16:20:03Z INFO CommandSettings] Flag 'replace': 'True' [2017-02-27 16:20:04Z INFO Terminal] WRITE LINE: Successfully replaced the agent [2017-02-27 16:20:04Z INFO ConfigurationManager] Agent server url resolve by server: 'https://tfs17.company.com/'. [2017-02-27 16:20:04Z INFO ConfigurationStore] Saving OAuth credential @ C:\Agents\1.credentials [2017-02-27 16:20:04Z INFO ConfigurationStore] Delete exist agent credential file. [2017-02-27 16:20:04Z INFO ConfigurationStore] Credentials Saved. [2017-02-27 16:20:04Z INFO Terminal] WRITE LINE: Testing agent connection. [2017-02-27 16:20:04Z INFO ConfigurationStore] HasCredentials() [2017-02-27 16:20:04Z INFO ConfigurationStore] stored True [2017-02-27 16:20:04Z INFO CredentialManager] GetCredentialProvider [2017-02-27 16:20:04Z INFO CredentialManager] Creating type OAuth [2017-02-27 16:20:04Z INFO CredentialManager] Creating credential type: OAuth [2017-02-27 16:20:04Z INFO RSAEncryptedFileKeyManager] Loading RSA key parameters from file C:\Agents\1.credentials_rsaparams [2017-02-27 16:20:04Z INFO RSAEncryptedFileKeyManager] Loading RSA key parameters from file C:\Agents\1.credentials_rsaparams [2017-02-27 16:20:04Z INFO RSAEncryptedFileKeyManager] Loading RSA key parameters from file C:\Agents\1.credentials_rsaparams [2017-02-27 16:20:04Z INFO RSAEncryptedFileKeyManager] Loading RSA key parameters from file C:\Agents\1.credentials_rsaparams [2017-02-27 16:20:04Z INFO RSAEncryptedFileKeyManager] Loading RSA key parameters from file C:\Agents\1.credentials_rsaparams [2017-02-27 16:20:04Z ERR Agent] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: VS30063: You are not authorized to access https://tfs17.company.com. at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.d17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.d3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Net.Http.HttpClient.d58.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.d45.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__421.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.<GetConnectionDataAsync>d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.d41.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Services.Agent.AgentServer.d3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.d7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Services.Agent.Listener.Agent.d9.MoveNext() [2017-02-27 16:20:04Z ERR Terminal] WRITE ERROR: VS30063: You are not authorized to access https://tfs17.company.com.

TingluoHuang commented 7 years ago

@enricforn do you have access to your TFS AT's event log? if so, can you check whether there is any error around the time your configure the agent.

enricforn commented 7 years ago

@TingluoHuang There's no errors referring the configuration of the agent in the event viewer of application tier

TingluoHuang commented 7 years ago

@enricforn it might not be a error record in the event view. can you send your event log to me? tihuang@microsoft.com

TingluoHuang commented 7 years ago

@enricforn in the event log, there is a build agent configure against localhost is able to run until 2/10. there is a config change happened in 2/10, then the failure start happen.

2017/2/10 8:10:46
The application is being shutdown for the following reason: ConfigurationChange
Application Domain: /LM/W3SVC/1/ROOT-2-131312057807550669

Can you recall what might happen at that time? Also, can you check what's the default access level you have on your on-prem environment? is it basic or stakeholder?

enricforn commented 7 years ago

You are rigtht @TingluoHuang , the agent is created but, there's some kind of authentication after the creation retrying to access to tfs and is not authorized.

Every time I try to recreate the agent, it's created successfully, but I also get the authorization error. Then in the agent pool configuration site, the agent appears, but in red mode, as idle status.

If you review the configuration log for this agent, you can find:

[2017-02-27 16:20:04Z INFO CredentialManager] Creating credential type: OAuth [2017-02-27 16:20:04Z INFO RSAEncryptedFileKeyManager] Loading RSA key parameters from file C:\Agents\1.credentials_rsaparams [2017-02-27 16:20:04Z INFO RSAEncryptedFileKeyManager] Loading RSA key parameters from file C:\Agents\1.credentials_rsaparams [2017-02-27 16:20:04Z INFO RSAEncryptedFileKeyManager] Loading RSA key parameters from file C:\Agents\1.credentials_rsaparams [2017-02-27 16:20:04Z INFO RSAEncryptedFileKeyManager] Loading RSA key parameters from file C:\Agents\1.credentials_rsaparams [2017-02-27 16:20:04Z INFO RSAEncryptedFileKeyManager] Loading RSA key parameters from file C:\Agents\1.credentials_rsaparams [2017-02-27 16:20:04Z ERR Agent] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: VS30063: You are not authorized to access https://tfs17.company.com. at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at

It seems there's a problem when it want to establish an oauth securization. Can I do something to validate the oauth service of tfs ?

TingluoHuang commented 7 years ago

@enricforn make sure your basic is the default access level. image

TingluoHuang commented 7 years ago

@enricforn also, where did you get the agent that you configured? is it a fresh download .zip?

TingluoHuang commented 7 years ago

@enricforn

2017/2/10 8:10:46
The application is being shutdown for the following reason: ConfigurationChange
Application Domain: /LM/W3SVC/1/ROOT-2-131312057807550669

can you recall what config change you made at that time?

enricforn commented 7 years ago

@TingluoHuang Default access level is VS Enterprise, otherwise I tried with Basic, but it doesn't work either.

Yes it s a fresh download .zip (vsts-agent-win7-2.105.7.zip)

And Yes , I tried to reconfigure from a new fresh path, and it doesn't work either.

What else can I test ?

enricforn commented 7 years ago

If I enable Anonymous autentication on AT then it works.

@TingluoHuang is there anther workaround to avoid enabling Anonymous Authentication ?

TingluoHuang commented 7 years ago

@enricforn AH, did you disable anonymous access manually? it should be on by default. anonymous access is required. https://www.visualstudio.com/en-us/docs/build/troubleshooting#agent-connection-issues-on-premises-tfs-only

bryanmacfarlane commented 7 years ago

@enricforn Note that it doesn't allow anonymous users to use the application. That lets OAuth tokens through IIS front gate. The application will still enforce that if it's not authenticated (NTLM) that an OAuth token (header) must be present. So either way, you have to authenticate.

enricforn commented 7 years ago

@TingluoHuang we didn't disable anonymous access manually, it seems a bug in TFS2017 installer. @bryanmacfarlane thanks, we'll keep the anonymous access.