title: Pulumi stack update failed due to operation timed out error
body: <p>I am trying to create Azure SQL Managed Instance using C# (Pulumi Azure Native). When executing <code>pulumi up -s dev</code>, getting <code>operation timed out</code> error as following:</p>
  <p><a href="https://i.stack.imgur.com/WAbcs.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WAbcs.jpg" alt="enter image description here" /></a></p>
  <p>(<em>provisioning Managed Instance is a long running operation and in case of Pulumi, it is taking around 4 hours mentioned that when we create Managed Instance using Azure portal, it does not take that much time</em>)</p>
  <p>I tried multiple times and that error is happening exactly after 2 hours. Followings are the issues due to <code>operation timed out</code> error:</p>
  <ul>
  <li>After 2 hours, Pulumi cli gave <code>error: operation timed out</code>, but I checked Azure portal &amp; (after around 4 hours) Managed Instance was created successfully. I connected to Managed Instance using SSMS via public endpoint and restored <code>AdventureWorks2019.bak</code> successfully</li>
  <li>Although Managed Instance was created successfully, Pulumi does not recognize that Managed Instance was provisioned. So executing <code>pulumi preview -s dev</code> or <code>pulumi up -s dev</code> gives &quot;<code>+ 1 to create</code>&quot; means Pulumi will try to cerate Managed Instance again (and will fail since Managed Instance already exists)</li>
  </ul>
  <p><strong>Why <code>operation timed out</code> error is occurring and how to solve it ?</strong></p>