Ensure you're using Power Automate Machine Runtime with these steps:
Use Power Automate Machine Runtime installer, not just PAD UI.
Register the Azure VM as a machine in Power Platform Admin Center.
Create a Machine Group if necessary.
Assign the service account with Unattended RPA license.
Cloud flows should trigger PAD flows via the “Run desktop flow” action.
This method does NOT require the PAD UI to be signed in persistently. It uses machine credentials and runs headless.
If the PAD application UI is opened and logged in manually, it will timeout after 24 hours even with no idle time.
Instead:
Schedule or trigger flows via Cloud flows.
Avoid using the PAD UI login unless actively debugging.
Though you’ve already set these, verify:
Access token lifetime policy is NOT explicitly set to 24h.
If needed, use PowerShell to check token settings:
Also verify that Sign-in frequency in Conditional Access is:
Not set (defaults to indefinite) or
Set to "Every 30 days" or higher for the excluded service account group.
If your Azure VM is Azure AD Joined only, try converting it to Hybrid Azure AD Join (i.e., also joined to local AD + Entra ID). This can improve token caching and persistent login behavior.
If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
Regards,
Riyaz