title: 504 Gateway Time-out on Azure App Gateway causing WordPress plugin update errors
body: <p>We have our WordPress site behind an Azure Application Gateway (WAF v2). When we update WordPress plugins we receive the following error:</p>
  <pre><code>Update failed: 504 Gateway Time-out 504 Gateway Time-out Microsoft-Azure-Application-Gateway/v2 
  &lt;!-- a padding to disable MSIE and Chrome friendly error page --&gt; 
  &lt;!-- a padding to disable MSIE and Chrome friendly error page --&gt; 
  &lt;!-- a padding to disable MSIE and Chrome friendly error page --&gt; 
  &lt;!-- a padding to disable MSIE and Chrome friendly error page --&gt; 
  &lt;!-- a padding to disable MSIE and Chrome friendly error page --&gt; 
  &lt;!-- a padding to disable MSIE and Chrome friendly error page --&gt;
  </code></pre>
  <p>Looking in the WAF logs, using the following query, there is no activity when plugins are being updated.</p>
  <pre><code>AzureDiagnostics
  | where ResourceType == &quot;APPLICATIONGATEWAYS&quot; and Category == &quot;ApplicationGatewayFirewallLog&quot; and action_s != &quot;Allowed&quot;
  | project TimeGenerated, hostname_s, requestUri_s, clientIp_s, ruleSetType_s, ruleSetVersion_s, ruleId_s, action_s, Message, instanceId_s
  </code></pre>
  <p>We have set the <code>Request time-out (seconds)</code> to 60 seconds, but this hasn't had any effect. All the above being said the plugins do seem to install, update, and work correctly.</p>
  <p>Is there anything we can do to prevent this error?</p>