Open JayDoubleu opened 1 year ago
Hi @JayDoubleu,
This is not the official Azure CLI published by Microsoft.
How to tell if the installed Azure CLI is unofficial:
Please follow https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux to install Microsoft official Azure CLI.
If you feel that further discussion is needed, please add a comment with the text /clibot unresolve
to reopen the issue.
Thank you for opening this issue, we will look into it.
/clibot unresolve
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @v-anvashist, @V-hmusukula.
Author: | JayDoubleu |
---|---|
Assignees: | - |
Labels: | `bug`, `Service Attention`, `customer-reported`, `Installation`, `Artifacts`, `DevOps`, `Auto-Assign`, `Azure CLI Team`, `Auto-Resolve` |
Milestone: | Backlog |
Adding service team to look into the devops issue.
Hi Team, may I ask if there're any further actions regarding the fix promoted by @JayDoubleu ? I'm also encountering the same issue of using the plugin with a managed identity. Want to see when the fix will be included in future release.
I am facing the same issue as well. Can we please have a fix for this?
Any update? Would like to use universal package with MSI as well.
The tenant
argument of get_raw_token()
is used for cross-tenant authentication for user and service principal accounts.
Can I use a managed identity to access a resource in a different directory/tenant? No, managed identities don't currently support cross-directory scenarios.
Also, according to https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/tutorial-windows-managed-identities-vm-access?pivots=identity-windows-mi-vm-access-arm#get-an-access-token, managed identity's http://169.254.169.254/metadata/identity/oauth2/token
API doesn't support a tenant
parameter.
When azure-devops
extension calls get_raw_token()
, it passes tenant
unconditionally (not for cross-tenant authentication), which is a misuse:
It should not pass tenant
.
Any updates on this? Having this same exact error, trying to use with user assigned managed identity.
Describe the bug
az artifacts universal download
doesn't seem to work with user assigned managed identitiesRelated command
Errors
Issue script & Debug output
Expected behavior
Azure cli should log in to azure-devops and download the artefact
Environment Summary
Additional context
To Reproduce:
To Fix:
raise CLIError("Please specify only one of subscription and tenant, not both")
withtenant = False
az artifacts universal download
command.