title: Azure Container Instances stuck in "Creating" state
body: <p>Whether I have the azure agent plugin for Jenkins make my container, or if I do it manually, it seems like either way it never enters a running state.</p>
  
  <p><a href="https://i.stack.imgur.com/szKKF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/szKKF.png" alt="enter image description here"></a></p>
  
  <pre><code>az container create \
      --os-type Windows \
      --location eastus \
      --registry-login-server SERVER.azurecr.io \
      --registry-password PASSWORD \
      --registry-username USERNAME \
      --image namespace/image \
      --name jenkins-permanent \
      --resource-group devops-aci \
      --cpu 2 \
      --memory 3.5 \
      --restart-policy Always \
      --command-line "-jnlpUrl http://host:8080/computer/NAME/slave-agent.jnlp -secret SECRET -workDir \"C:\\jenkins\""
  </code></pre>
  
  <p>I've gone through all the troubleshooting steps that apply, tried a different region, but to no avail.</p>
  
  <p>Here's a current event that I got which seems to be the most progress I've had yet:</p>
  
  <pre><code>          {
              "count": 1,
              "firstTimestamp": "2017-12-07T03:02:56+00:00",
              "lastTimestamp": "2017-12-07T03:02:56+00:00",
              "message": "Failed to pull image \"MYREPO.azurecr.io/my-company/windows-agent:latest\": Error response from da
  emon: {\"message\":\"Get https://MYREPO.azurecr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout
  exceeded while awaiting headers)\"}",
              "name": "Failed",
              "type": "Warning"
            }
  </code></pre>
  
  <p>The funny thing is, this event happens before <strong>and</strong> after one case of the instance working (but unfortunately my entrypoint command was wrong, so it never started).</p>
  
  <p>I really feel like Azure is punting on this and I just have no way to change the order I do anything.  It's simply one command.</p>