Connect-MgGraph -UseDeviceCode does not prompt MFA
I am investigating different Microsoft Entra ID sign-in mechanisms to confirm the effectiveness of Microsoft Graph API with MFA. While Connect-MgGraph cmdlet itself and alongside many other flags like “-TenantId” prompted for MFA, the Connect-MgGraph -UseDeviceCode does not prompt for MFA.
The question would be “Are you sure MFA has been configured on your Azure Tenant?” Well, Good question. The answer will be “It is only the use of -UseDeviceCode that is failing to prompt the MFA. So something is quite wrong other than MFA setup on our Azure.
Is this something someone has also witnessed?
I am investigating different Microsoft Entra ID sign-in mechanisms to confirm the effectiveness of Microsoft Graph API with MFA. While Connect-MgGraph cmdlet itself and alongside many other flags like “-TenantId” prompted for MFA, the Connect-MgGraph -UseDeviceCode does not prompt for MFA. The question would be “Are you sure MFA has been configured on your Azure Tenant?” Well, Good question. The answer will be “It is only the use of -UseDeviceCode that is failing to prompt the MFA. So something is quite wrong other than MFA setup on our Azure. Is this something someone has also witnessed? Read More