The inactivity timeout setting helps to protect resources from unauthorized access if you forget to secure your workstation. After you've been idle for a while, you’re automatically signed out of your Azure portal session.

The change is saved automatically. If you’re idle, your Azure portal session will sign out after the duration you set.