-
Notifications
You must be signed in to change notification settings - Fork 334
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
azure_rm_account_info dont work since v2 #1413
Comments
Bump |
@ebuildy @radsto azure_rm_account_info.py is used to access login account information, so when using this module, you need to have az login, and then use the cli credentials(auth_source: cli) to get login account information through the 'auth_source' setting. After migrating to msgraph earlier, you need to make a few minor changes, see https://github.com/ansible-collections/azure/pull/1510.。 Thank you!
Return: |
Fixed by #1510 |
Thanks for the workaround, I will test this ! |
Any feedback? |
I have cloned your branch with the fix and ran the following playbook - hosts: localhost
tasks:
- name: Get facts for current logged in user
azure.azcollection.azure_rm_account_info:
auth_source: cli
register: azure_account
- debug:
var: azure_account It passes fine : Thanks for your fix and wish you a nice day ! |
SUMMARY
task:
throw error The error was: TypeError: Session.request() got an unexpected keyword argument 'claims'
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
v2 (work with v1.19.0)
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
throw error The error was: TypeError: Session.request() got an unexpected keyword argument 'claims'
Related
#1387
The text was updated successfully, but these errors were encountered: