Azure Virtual Machine Run Command and Role Assignment by Same User
Detects instances where the same user performs both a role assignment (potentially for privilege escalation) and executes a Run Command on an Azure Virtual Machine within a one-hour window. This behavior is indicative of an attacker modifying access control and immediately executing arbitrary code on the target resource.
Microsoft Sentinel (KQL)

