title: Why is my Azure DevOps Migration timing out after several hours?
body: <p>I have a long running Migration (don't ask) being run by an AzureDevOps Release pipeline.
  Specifically, it's an &quot;Azure SQL Database deployment&quot; activity, running a &quot;SQL Script File&quot; Deployment Type.</p>
  <p>Despite having configured maximums in all the timeouts in the Invoke-Sql Additional Parameters settings, my migration is still timing out.</p>
  <p>Specifically, I get:</p>
  <blockquote>
  <p>We stopped hearing from agent Hosted Agent. Verify the agent machine is running and has a healthy network connection. Anything that terminates an agent process, starves it for CPU, or blocks its network access can cause this error.</p>
  </blockquote>
  <p>So far it's timed out after:</p>
  <ul>
  <li>6:13:15</li>
  <li>6:13:18</li>
  <li>6:14:41</li>
  <li>6:10:19</li>
  </ul>
  <p>So &quot;after 6 and a bit hours&quot;. It's ~22,400 seconds, which doesn't seem like any obvious kind of number either :)</p>
  <p>Why? And how do I fix it?</p>