Azure Compute built-in role

Virtual Machine User Login

Allows Microsoft Entra-authenticated sign-in to supported Azure virtual machines and Azure Arc-enabled servers as a regular, non-administrator user. It combines control-plane resource visibility with regular-login DataActions; Owner, Contributor, and VM Contributor do not automatically grant this guest access.

Role-definition permissions are imported from Microsoft Learn. Practical scope, use cases, prerequisites, best practices, security considerations, assignment guidance, and relationships have been reviewed against the official sources below.

Role definition ID: fb879df8-f326-4884-b1cf-06f3ad86be52

Control-plane actions (7)

Data-plane actions (2)

Excluded actions (0)

None

Assignable scopes (1)

Practical scope

The role can be assigned at management group, subscription, resource group, or resource scope and is inherited by child VMs and Arc machines. Microsoft recommends assigning at a management group, subscription, or resource-group boundary rather than per VM to avoid assignment limits, while ensuring unrelated machines are not included.

Common use cases (2)

Prerequisites (2)

Best practices (3)

Security considerations (3)

Assignment guidance

Assign Virtual Machine User Login to an approved user group at the smallest practical machine-fleet boundary. Enable and test Microsoft Entra sign-in first, apply Conditional Access where supported, and grant Administrator Login only to the smaller population that requires elevation.

Related roles (2)

Common questions

When should I assign the Virtual Machine User Login Azure role?

Assign Virtual Machine User Login when you need to: Allow developers or operators to sign in to supported Linux VMs without sudo or root privileges.; and Allow approved users to sign in to supported Windows VMs as regular users through Microsoft Entra authentication.. Practical scope: The role can be assigned at management group, subscription, resource group, or resource scope and is inherited by child VMs and Arc machines. Microsoft recommends assigning at a management group, subscription, or resource-group boundary rather than per VM to avoid assignment limits, while ensuring unrelated machines are not included.

What permissions does the Virtual Machine User Login Azure role grant?

The role definition grants 9 combined control-plane and data-plane actions. Representative operations include: Microsoft.Network/publicIPAddresses/read; Microsoft.Network/virtualNetworks/read; Microsoft.Network/loadBalancers/read; Microsoft.Network/networkInterfaces/read; Microsoft.Compute/virtualMachines/*/read; and Microsoft.HybridCompute/machines/*/read. Review the permission sections above for the complete definition and exclusions.

What are the security risks of the Virtual Machine User Login Azure role?

Key considerations when assigning Virtual Machine User Login: Regular guest access can still read or change any data and applications permitted to the operating-system account.; The DataActions grant real guest login even though administrator login is excluded.; and A broad parent assignment allows the group to sign in to every supported inherited VM or Arc machine.. Follow the assignment guidance above and use the narrowest practical scope.

Editorial sources (7)

Official Microsoft Learn documentation →