如何延长默认的Azure AppService超时时间?

时间:2018-09-27 17:00:09

标签: azure powershell asp.net-mvc-4 web-config timeout

我正在尝试通过Azure上托管的Web应用程序上传视频文件。

对于大于约1.8Gb的文件,我收到超时错误500。

我进行了一些更改以延长此超时,但未成功:

  1. 激活了“始终在线”功能

  2. 在Azure面板的“应用程序设置”中将SCM_COMMAND_IDLE_TIMEOUT设置为2400 seg

  3. 将WEBSITE_SCM_IDLE_TIMEOUT_IN_MINUTES设置为60分钟 在Azure面板的“应用程序设置”中

  4. 试图在powershell上运行此命令:

    Get-AzureVM –ServiceName “MyService” –Name “MyVM” | Get-AzureEndpoint
    

我想将4 GB的文件上传到云中。

1 个答案:

答案 0 :(得分:0)

可能是:

WEBJOBS_IDLE_TIMEOUT = 2400吗?

和您的.config

<system.web>
   <httpRuntime executionTimeout="YourTime" maxRequestLength="YourSizeRequest"/>
</system.web>

-

<system.webServer>
   <security>
      <requestFiltering>
         <requestLimits maxAllowedContentLength="<valueInBytes>"/>
      </requestFiltering>
   </security>
</system.webServer>