title: Azure Pipelines task timeout not respected
body: <p>I am running an azure pipeline as follows. I have set the timeout in minutes in 3 places: the job, the pool and the task however the step run acceptance tests always timeout after 60 minutes with the error message: </p>
  
  <blockquote>
    <p>An error occurred while provisioning resources (Error Type: Timeout).
    The operation was canceled.</p>
  </blockquote>
  
  <p>Otherwise, everything in the pipeline runs ok.</p>
  
  <pre><code>stages: 
  - stage: Run_Acceptance_Tests
    jobs:
    - job: Run_Acceptance_Tests
      timeoutInMinutes: 180
      pool:
        name: Hosted VS2017
        timeoutInMinutes: 180
        demands:
        - msbuild
        - visualstudio
        - vstest
  
      steps:
      - task: NuGetToolInstaller@0
        displayName: 'Use NuGet 4.4.1'
        inputs:
          versionSpec: 4.4.1
  
      - task: NuGetCommand@2
        displayName: 'NuGet restore'
        inputs:
          restoreSolution: '$(solution)'
  
      - task: VSBuild@1
        displayName: 'Build solution'
        inputs:
          solution: '$(solution)'
          msbuildArgs: '/p:SkipInvalidConfigurations=true /p:ExcludeApp_Data=true /p:AutoParameterizationWebConfigConnectionStrings=false /p:MarkWebConfigAssistFilesAsExclude=false /p:ProfileTransformWebConfigEnabled=false /p:TransformWebConfigEnabled=false'
          platform: '$(BuildPlatform)'
          configuration: '$(BuildConfiguration)'
  
      - task: FileTransform@2
        displayName: 'Transform settings for Acceptance tests'
        inputs:
          folderPath: '$(Build.SourcesDirectory)'
          xmlTransformationRules: '-transform **\Selenium.Tests\App.Test.config -xml **\Selenium.Tests\bin\**\Selenium.Tests.dll.config'    
  
      - task: VSTest@2
        displayName: 'Run ExcelWraps Acceptance tests'
        timeoutInMinutes: 180
        inputs:
          testAssemblyVer2: |
           **\Selenium.Tests.dll
           !**\obj\**
          searchFolder: '$(Build.SourcesDirectory)'
          pathtoCustomTestAdapters: '$(build.sourcesdirectory)\src\packages\NUnit3TestAdapter.3.10.0\build\net35\'
          runInParallel: false
          codeCoverageEnabled: false
          platform: '$(BuildPlatform)'
          configuration: '$(BuildConfiguration)'
          diagnosticsEnabled: false
          uiTests: true
          minimumExpectedTests: 10    
  </code></pre>
  
  <p>I have read and reread the docs and seem to have done everything they ask. 
  All these questions seem to have been answered by placing the timeout in one of the locations I mentioned above:
   - <a href="https://developercommunity.visualstudio.com/content/problem/375541/60-minutes-time-limit-per-build.html" rel="nofollow noreferrer">https://developercommunity.visualstudio.com/content/problem/375541/60-minutes-time-limit-per-build.html</a>
   - <a href="https://developercommunity.visualstudio.com/content/problem/567714/azure-devops-timeoutinminutes-is-being-ignored-in.html" rel="nofollow noreferrer">https://developercommunity.visualstudio.com/content/problem/567714/azure-devops-timeoutinminutes-is-being-ignored-in.html</a>
   - <a href="https://developercommunity.visualstudio.com/content/problem/670377/timeout-not-respected-in-multi-stage-pipeline.html" rel="nofollow noreferrer">https://developercommunity.visualstudio.com/content/problem/670377/timeout-not-respected-in-multi-stage-pipeline.html</a>
   - <a href="https://github.com/Microsoft/azure-pipelines-yaml/issues/48" rel="nofollow noreferrer">https://github.com/Microsoft/azure-pipelines-yaml/issues/48</a>
   - <a href="https://github.com/Microsoft/azure-pipelines-agent/issues/1849" rel="nofollow noreferrer">https://github.com/Microsoft/azure-pipelines-agent/issues/1849</a></p>
  
  <p>How can I increase the timeout of the testing step?</p>