Inventory Plugin ignores ANSIBLE_AZURE_AUTH_SOURCE, AZURE_CLIENT_ID env variables #712
Labels
bug
Something isn't working
has_pr
PR fixes have been made
medium_priority
Medium priority
new_feature
New feature requirments
SUMMARY
When setting the environment variable
ANSIBLE_AZURE_AUTH_SOURCE
the inventory plugin ignores the setting and reverts to using theauto
auth source which if nothing else is set, reverts tocli
.Also, when setting
auth_source: msi
we should also be able to set theAZURE_CLIENT_ID
environment variable to tell the auth mechanism which user assigned identity to use (if multiple set) when authenticating with managed identities.ISSUE TYPE
COMPONENT NAME
plugin: azure.azcollection.azure_rm
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
Inventory Plugin Example
Environment Variables
Playbook
EXPECTED RESULTS
I would expect the inventory plugin to use MSI authentication with the AZURE_CLIENT_ID specified in the environment variable.
ACTUAL RESULTS
MSI authentication is being ignored and it fails to find any authentication mechanisms if the azure cli is not logged in.
The text was updated successfully, but these errors were encountered: