-
Notifications
You must be signed in to change notification settings - Fork 332
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
Upgrade from 1.19 to 2.x - "msg": "Find the key vault secret got exception, exception as The current credential is not configured to acquire tokens for tenant xxx. #1539
Comments
Same issue with latest ansible version
|
If I patch It looks like that the tenant is not passed to the identity library, I don't find why |
@Poil I switched the version test and did not encounter the problem you mentioned, but according to the error log, I encountered an error when obtaining authorization. Could you please provide the version of 'azure-identity'? |
Hi, I installed all the requirements from your
|
You use 'az login' or credential files? |
Return value for local execution:
|
We passed the parameter
perhaps I'm wrong but it looks like keyvault module don't use the tenant_id passed if I grep in the python module, it looks like to be extracted from the kv url ? |
When using azure cli to auth it works |
I can git the secret through the parameters! It works! |
@Poil Are you use multi-tenant to authentication? is the tenant you configured in the parameters consistent with the tenant in you 'az account show'? According to the error, it is the case of tenant. Thank you ! |
kindly ping! |
Hi, Sorry I'm in holidays :) We use a service principal, so not multi tenant Regards |
@Poil I am testing locally, and only if you use the wrong tenant id will you encounter such an error, When you come back from your vacation, could you please check and confirm? Thank you! |
@Poil In addition, Do you manage resources under different subscription ids? |
@Poil What version of Azure. azcollection do you have installed? Thank you! |
SUMMARY
Hi,
After upgrading to 2.x I have this error message when trying to retrieve a keyvault secret via
azure.azcollection.azure_rm_keyvaultsecret_info
We pass these parameters
ISSUE TYPE
Debug
COMPONENT NAME
azure_rm_keyvaultsecret_info
ANSIBLE VERSION
The text was updated successfully, but these errors were encountered: