Open ghost opened 5 years ago
$ jq '.[] | { "_authority": ._authority }' < /tmp/accessTokens.json
{
"_authority": "https://login.microsoftonline.com/common"
}
{
"_authority": "https://login.microsoftonline.com/ac86c139-a432-4110-9521-{yyyyyyyyyyyy}"
}
{
"_authority": "https://login.microsoftonline.com/2c606659-30f9-4cb1-aa65-{xxxxxxxxxxxx}"
}
It seems Draft picks up wrong authority.
It works well after deleting the object that have "https://login.microsoftonline.com/ac86c139-a432-4110-9521-{yyyyyyyyyyyy}" as _authority.
My account shares my company's subscription. I suspect it is a one of the reason causing this issue.
Just for reference, which account is considered the "default" when running az account list -o table
? Using the Azure SDK for Go we are trying to pull the default subscription from the account, but if we're pulling the wrong account info then we should take a closer look.
The result of az account list -o table
is.
A few accounts are skipped as they don't have 'Enabled' state. Use '--all' to display them.
Name CloudName SubscriptionId State IsDefault
--------------------------- ----------- ------------------------------------ ------- -----------
Microsoft Azure Sponsorship AzureCloud e000d296-c414-4552-a6b1-{bbbbbbbbbbbb} Enabled True
Tips: Run echo '[' $(az account get-access-token) ']' > /tmp/accessTokens.json
after running az login
.
Only one access token is overridden and I can run draft up
without editing accessTokens.json
file.
I got an error when I run
draft up
with ACR builder. Console logs are like following.