Use Azure API to authenticate

I requested a somewhat same feature: