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} 

Community Center | Not monitored
{count} votes

Your answer

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