There are certain things to overcome to use Connect-AzureAD from powershell
script under azure functions by authenticating with certificate. This article
explains how to do it.
0 Prerequisites
Azure functions has been deployed already.
1 Generate Certificate and Service Principal
To run Azure AD powershell commands, we need to connect