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

[Workload Identity] Azure CLI Not Installed #2305

Open
3 tasks done
aiell0 opened this issue Mar 7, 2025 · 1 comment
Open
3 tasks done

[Workload Identity] Azure CLI Not Installed #2305

aiell0 opened this issue Mar 7, 2025 · 1 comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@aiell0
Copy link

aiell0 commented Mar 7, 2025

Bug Title

[Workload Identity] Azure CLI Not Installed

Crate Name

azure_identity

Crate Version

v0.22.0

Description

When using Workload Identity with the azure identity rust SDK, I am getting the following error in my service logs:

error getting token credential from Azure CLI - Azure CLI not installed

I didn't need to install the CLI on my NodeJS containers using the SDK. Just flagging in case I'm doing something wrong here.

Steps to Reproduce

  1. Rust code:
let credential = DefaultAzureCredential::new()?;
  1. Use Azure Workload Identity and run this code inside of a pod.
  2. Get the error listed above

Checklist

@github-project-automation github-project-automation bot moved this to Untriaged in Azure SDK Rust Mar 7, 2025
@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Mar 7, 2025
@aiell0
Copy link
Author

aiell0 commented Mar 7, 2025

I used the DefaultAzureCredential because I figured the credential chain would use the workload identity eventually (this is how it works in Nodejs). Is that not the case. Should I be using WorkloadIdentityCredential?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
Status: Untriaged
Development

No branches or pull requests

1 participant