Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Prem-Aggarwal-Technical opened this issue Dec 7, 2023 · 1 comment
Assignees

Comments

@Prem-Aggarwal-Technical
Copy link

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/

@jessehouwing jessehouwing transferred this issue from tfsaggregator/tfsaggregator Dec 7, 2023
@marnheus
Copy link

marnheus commented Jan 2, 2024

All the commands you mention are exclusively to be used with the cloud version of the aggregator. When you use a docker hosted runtime, you just copy the rule files in a directory of the container and then use the map.local command to map your rule.
https://tfsaggregator.github.io/docs/v3/setup/docker/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants