Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
71 views
in Azure by 14 20 30
I am actively using Azure Cloud Shell, and the session is terminated quically in case, I was inactive, Is there any way to extend Azure Cloud Shell session time to be more than 1 hour!

1 Answer

1 like 0 dislike
by 187 242 471
selected by
 
Best answer

Is it possible to Extend Azure inactive Cloud Sell Session Time?

As a short answer: NO,

Azure Cloud Shell does have an automatic timeout of 20 minutes for inactive sessions. Unfortunately, Microsoft doesn’t currently support customizing this beyond the default behavior.

Why This Happens?

Cloud Shell runs on ephemeral containers, and the timeout ensures resource efficiency. Unfortunately, there’s no configurable setting to extend this further.

Workarounds to Avoid Session Timeout:

  • Keep the Session Active and Run lightweight periodic commands (e.g., echo "ping" or sleep) to prevent inactivity timeouts.
  • For longer tasks, consider installing the Azure CLI or PowerShell module locally.

Feedback to Microsoft:

If this is a critical need for your workflow, you can upvote/request the feature on the Azure Feedback Forum. The Azure team actively reviews community input!

by 14 20 30
0 0
Got it, thank you
If you don’t ask, the answer is always NO!
...