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 username@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.