-
Notifications
You must be signed in to change notification settings - Fork 16
Description
When I'm running the ado-npm-auth command I get the following error:
VS30063: You are not authorized to access https://dev.azure.com."
This seems to be caused by it selecting the Microsoft tenant: 72f988bf-86f1-41af-91ab-2d7cd011db47. And we are connected to Azure DevOps using an Entra ID account, from another tenant.
I looked at the code and running azureauth with:
npm exec azureauth -- ado pat --organization <DevOpsOrgName> --display-name NuGetPackages --scope vso.packaging --prompt-hint NuGetPackages --tenant <EntaIdTenantID> --output json --domain <EntraIDEmailDomain>
It opens up the browser login to our tenant, and returning a correct token. Passing in the --domain also gives the proper use of the cached tokens.
Is it possible to forward these arguments from ado-npm-auth, or is there something that I'm missing?