List active directory user & group details from azure with ansible modules

94 views
Skip to first unread message

Prakash Sharma

unread,
Nov 6, 2019, 8:49:56 PM11/6/19
to Ansible Project
Hello Experts, 

I am trying to use ansible for azure automation and want to use ansible as much as possible for resources creation and auto assigning the role based access. 

While doing so , I couldn't find any replacement for below  az cli  in ansible module.

"az ad user show --id user...@example.com"   (  I am doing this to get the ObjectId of the user and group so that i can use that  with azure_rm_roleassignment module)

Do anyone have suggestion how do we address this ? Also for any az cli if there is no substitute , How one handles this ? If one calls the az cli in playbook then how does he pass the credentials  (mainly service principal ).

Looking forward to suggestions.

Regards,
Prakash. 



Reply all
Reply to author
Forward
0 new messages