Azure Auth using 'az login' like Terraform does

16 views
Skip to first unread message

Tim Qin

unread,
Jan 30, 2018, 9:19:12 AM1/30/18
to Ansible Project
I m trying to use ansible azure module, but the auth methods blocked me:
- Service principles:  it is no go as we are auth through enterprise AD on Azure portal
- AD: simply provide username and password are not working because when typing my corp email addresses, Azure will redirect to my corp auth page and I need to auth using my account-01 number and password, by trying different combination of the account-01 username/password or the corp email address, I did not get a valid username-password pair.recentl

I noticed Terraform used to rely on Service principle only, however, few month ago you could do 'az login' and then seems that Terraform would be able to pick up the granted temporary token by a successful az login.

Is there a similar mechanism behind that I could use rather than get a dodge account setup?

Thanks,
Tim


Jordan Borean

unread,
Jan 30, 2018, 2:43:29 PM1/30/18
to Ansible Project
This was added with https://github.com/ansible/ansible/pull/35213 and will be available in the 2.5 release. You can checkout the latest devel branch if you wanted to try it out today.

Thanks

Jordan
Reply all
Reply to author
Forward
0 new messages