How do you use injected aks values with python sdk for azure identity?

aakash regmi 11 Reputation points
2024-11-16T17:58:47.98+00:00

I have injected environment variables to aks which stays can be used as environment variables, however when i use python sdk to auth to anything azure. It’s using the key@azurekeyvault text instead of value. However, if i just create the key it will print the actual value. Any ideas?

For ex: 1st one works great. Second one shows AZURE_CLIENT_ID as clientid@azurekeyvault

{"message": f"Hello World, AZURE_CLIENT_ID: {settings.AZURE_CLIENT_ID} 

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,029 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,160 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.