Skip to content

Why TFS aggregator CLI need to login with both Azure and Azure devops  #287

Description

@Prem-Aggarwal-Technical

Hi Team,

I am using Azure Devops ADO 2022. We are not using Azure (Cloud version). I need to use TFS aggregator. I setup Service in Docker Container (Linux Based) and client in our Windows Machine.

I am successfully logged in using below commands via Aggregator CLI.
aggregator-cli logon.ado --url https://dev.azure.com/youraccount --mode PAT --token ***************************************

But when I am trying to run another commands like list.instances or invoke.rule or any other command. It is giving me below error.

PS C:\Program Files\aggregator-cli> aggregator-cli install.instance --verbose --name inst1 --location india
[2023-12-04 23:58:58Z] aggregator-cli v1.2.0 (build: 1.2.0.0 Release) (c) Copyright c TFS Aggregator Team
[2023-12-04 23:58:58Z] Authenticating to Azure...
[2023-12-04 23:58:58Z] No cached Azure credential: run the logon.azure command.
[2023-12-04 23:58:58Z] Exiting with code 99

Why it is asking to login using logon.azure when I am successfully logged-in using
PS C:\Program Files\aggregator-cli> aggregator-cli logon.ado --url https://server/tfs/TestCollection -t 123456789123456789 -m PAT
[2023-12-04 23:57:57Z] aggregator-cli v1.2.0 (build: 1.2.0.0 Release) (c) Copyright c TFS Aggregator Team
[2023-12-04 23:57:58Z] Connecting to Azure DevOps using PAT credential...
[2023-12-04 23:57:59Z] logon.ado Succeeded
[2023-12-04 23:57:59Z] Exiting with code 0

Please suggest me. Is it required both Azure and Azure Devops like below
aggregator-cli logon.azure --subscription ************ --client ************ --password *********** --tenant ************
aggregator-cli logon.ado --url https://dev.azure.com/youraccount --mode PAT --token ***************************************

but we have no logon.azure credentials because we are only using Azure Devops (On Premise).

Is there any way? Can we use TFS aggregator with only Azure Devops (On Premise)? Please help and guide us.

URL: https://tfsaggregator.github.io/docs/v3/commands/command-examples/

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions