我如何 运行 Azure Cloud Shell 脚本花费超过 20 分钟?有没有办法防止 Azure Cloud Shell 中的超时?
How can I run an Azure Cloud Shell script that takes longer than 20 minutes? Is there a way to prevent timeouts in Azure Cloud Shell?
我正在尝试 运行 计算我的 Azure 存储帐户大小的脚本。我这样做是因为我无权访问结算部分。
脚本取自here
我的存储帐户约为 2TB,但我想了解每个容器的大小。
当我运行 azure cloud shell 中的脚本时,它会在20 分钟后超时。有什么办法让它保持活力吗?
不幸的是,这是General limitation of Azure Cloud Shell。
The machine that provides your Cloud Shell session is temporary, and it is recycled after your session is inactive for 20 minutes.
如果你想改进云shell,你可以投票给这个feedback。
或者如果可以的话,您可以在 运行 脚本的本地安装 Az
powershell 模块。
您可以尝试 运行 将脚本作为后端作业。
我使用 tmux 和一个新窗格,我 运行 观看会话,例如看/home/myusername或者看ps,或者看我感兴趣的东西。这在过去有一定的作用,现在,有时不起作用,但总比没有好,有很多shell 来自一个界面的会话。
我正在尝试 运行 计算我的 Azure 存储帐户大小的脚本。我这样做是因为我无权访问结算部分。
脚本取自here
我的存储帐户约为 2TB,但我想了解每个容器的大小。
当我运行 azure cloud shell 中的脚本时,它会在20 分钟后超时。有什么办法让它保持活力吗?
不幸的是,这是General limitation of Azure Cloud Shell。
The machine that provides your Cloud Shell session is temporary, and it is recycled after your session is inactive for 20 minutes.
如果你想改进云shell,你可以投票给这个feedback。
或者如果可以的话,您可以在 运行 脚本的本地安装 Az
powershell 模块。
您可以尝试 运行 将脚本作为后端作业。
我使用 tmux 和一个新窗格,我 运行 观看会话,例如看/home/myusername或者看ps,或者看我感兴趣的东西。这在过去有一定的作用,现在,有时不起作用,但总比没有好,有很多shell 来自一个界面的会话。