Конфигурация агента Azure DevOps успешно подключается к серверу, но затем выдает ошибку "Ошибка VS30063: у вас нет прав доступа ..."
Я установил агент Azure DevOps на свой ноутбук и пытаюсь его настроить. Он подключается к серверу Azure, и я вижу его на сервере в списке агентов, но затем config.cmd выдает ошибку VS30063:
PS C:\agent> ./config.cmd
>> Connect:
Enter server URL > https://myazuredevops.com
Enter authentication type (press enter for PAT) >
Enter personal access token > ****************************************************
Connecting to server ...
>> Register Agent:
Enter agent pool (press enter for default) >
Enter agent name (press enter for WINDOWS-NKCBPLC) >
Scanning for tool capabilities.
Connecting to the server.
Enter replace? (Y/N) (press enter for N) > y
Successfully replaced the agent
Testing agent connection.
VS30063: You are not authorized to access https://myazuredevops.com.
Файл журнала содержит следующие строки:
......
[2020-08-26 10:56:13Z INFO ConfigurationManager] Agent server url resolve by server: 'https://myazuredevops.com/'.
[2020-08-26 10:56:13Z INFO ConfigurationStore] Saving OAuth credential @ C:\agent\.credentials
[2020-08-26 10:56:13Z INFO ConfigurationStore] Credentials Saved.
[2020-08-26 10:56:14Z INFO Terminal] WRITE LINE: Testing agent connection.
[2020-08-26 10:56:14Z INFO ConfigurationStore] HasCredentials()
[2020-08-26 10:56:14Z INFO ConfigurationStore] stored True
[2020-08-26 10:56:14Z INFO CredentialManager] GetCredentialProvider
[2020-08-26 10:56:14Z INFO CredentialManager] Creating type OAuth
[2020-08-26 10:56:14Z INFO CredentialManager] Creating credential type: OAuth
[2020-08-26 10:56:14Z INFO RSAEncryptedFileKeyManager] Loading RSA key parameters from file C:\agent\.credentials_rsaparams
[2020-08-26 10:56:14Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2020-08-26 10:56:14Z WARN VisualStudioServices] Authentication failed with status code 401.
.....
1 ответ
1.Убедитесь, что ваша учетная запись Azure Devops имеет разрешение на управление агентами в текущей организации.
2.Затем создайте новый PAT сRead & manage
разрешение.
3. запустить config.cmd
еще раз и введите новое Имя на этом шаге:
4. Если проблема не исчезнет, вы можете создать новый пул агентов и зарегистрировать там агента, чтобы проверить, помогает ли он: