This is an external blog post that I submitted, you might want to read it. Automating MFA Enrollment using PowerShell and Azure