-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
az artifacts universal download
doesn't work with user assigned managed identities
#26775
Comments
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 |
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. Issue DetailsDescribe the bug
Related commandaz login --identity
az artifacts universal download --organization https://dev.azure.com/$org --project="$project" --scope project --feed $feed --name my-first-package --version 0.0.1 --path $path Errors
cli.azext_devops.dev.common.services: trying to get token (temp) for tenant _redacted_ and user systemAssignedIdentity
cli.azext_devops.dev.common.services: not able to get token from az login
cli.azext_devops.dev.common.services: Tenant shouldn't be specified for managed identity account
Traceback (most recent call last):
File "/home/azuser/.azure/cliextensions/azure-devops/azext_devops/dev/common/services.py", line 157, in get_token_from_az_login
raw = profile.get_raw_token(
File "/home/azuser/.local/lib/python3.10/site-packages/azure/cli/core/_profile.py", line 368, in get_raw_token
raise CLIError("Tenant shouldn't be specified for managed identity account")
knack.util.CLIError: Tenant shouldn't be specified for managed identity account Issue script & Debug output
Expected behaviorAzure cli should log in to azure-devops and download the artefact Environment Summary
Additional contextTo Reproduce:
To Fix:
|
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
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 When It should not pass |
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:
azure-cli/src/azure-cli-core/azure/cli/core/_profile.py
Line 368 in 6928cee
raise CLIError("Please specify only one of subscription and tenant, not both")
with
tenant = False
az artifacts universal download
command.The text was updated successfully, but these errors were encountered: