Share via

MFA for Azure VMS

Nitish kumar 0 Reputation points
2026-06-06T05:01:19.0933333+00:00

We have a requirement to enable MFA for azure VMs. We have enabled the managed identity and installed the AAD ext. and tried with 1 user and It allows the user to login with entra credentials. However after setting up conditional access policy its not prompting for MFA.

Please advise what we need to do, We need, if any user try to access VM it should prompt for MFA.

Regards,

Nitish

Microsoft Security | Microsoft Entra | Microsoft Entra External ID

1 answer

Sort by: Most helpful
  1. AI answer

    2026-06-06T05:01:34.8233333+00:00

    To require MFA when users sign in to Azure VMs, configure and scope Conditional Access correctly and avoid legacy per‑user MFA.

    1. Use Conditional Access, not per‑user MFA
    • Ensure legacy per-user Enabled/Enforced Microsoft Entra multifactor authentication is turned off. Per-user MFA can cause sign-in issues for Azure VM sign-in and is not the recommended method.
    • If per-user MFA is enabled and you see errors like “Your credentials didn’t work” or “The sign-in method you’re trying to use isn’t allowed,” remove the per-user MFA setting and rely on Conditional Access instead.
    1. Target the correct cloud app in Conditional Access For Azure VM sign-in, the relevant app is Microsoft Azure Windows Virtual Machine Sign-in (Azure Windows VM Sign-In app):
    • If a Conditional Access policy requires MFA, the device initiating the RDP connection must use a strong authentication method such as Windows Hello for Business.
    • If Windows Hello for Business or other strong methods are not available, configure a Conditional Access policy that excludes the Azure Windows VM Sign-In app from MFA so users can still sign in. However, in your case, the requirement is to enforce MFA, so ensure:
      • The policy includes the Azure Windows VM Sign-In app (and does not exclude it).
      • Users are configured with supported strong authentication methods (for example, Windows Hello for Business) so they can satisfy the MFA requirement when connecting.
    1. Ensure the policy applies to the right users and conditions
    • Under Assignments → Users or workload identities, include the users/groups that must use MFA for VM access.
    • Under Cloud apps or actions / Target resources, include the Azure VM sign-in app (Microsoft Azure Windows Virtual Machine Sign-in).
    • Under Access controls → Grant, select Grant access and Require multifactor authentication (or Require authentication strength → Multifactor authentication if using authentication strengths).
    • Make sure the policy is On (not just Report-only).
    1. Strong authentication requirement for VM sign-in
    • When a Conditional Access policy requires MFA for Azure VM sign-in, the client must use a strong method such as Windows Hello for Business. If that is not configured, users may not see a traditional MFA prompt but instead get sign-in failures.
    • If Windows Hello for Business is not an option in your environment, review whether you can deploy it, or adjust the Conditional Access policy design (for example, enforce MFA at other control points such as management portals or bastion hosts instead of direct VM sign-in).
    1. General MFA configuration guidance
    • If Conditional Access is used broadly to enforce MFA, ensure:
      • Security defaults are disabled if Conditional Access is in use.
      • Users are properly set up for MFA and can satisfy MFA for apps that require it.

    In summary, to have MFA enforced when users access Azure VMs:

    • Use Conditional Access targeting Microsoft Azure Windows Virtual Machine Sign-in.
    • Require MFA (or an MFA authentication strength) in the Grant controls.
    • Ensure users have supported strong authentication methods (for example, Windows Hello for Business) so the VM sign-in can satisfy the MFA requirement.
    • Avoid legacy per-user MFA, which can interfere with Azure VM sign-in.

    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.