title: Azure does not find any repositories in VSTS
body: <p>I've previously setup continuous deployment from VSTS to Azure. My previous sites are no longer working and I cannot setup new connections. When I try to setup continuous deployment from Azure portal I get this error:</p>
  
  <pre><code>Failed to set up continuous deployment
  DESCRIPTIONFailed to set up continuous deployment for web app myproject, using Visual Studio Team Services. Repository 'UpdateSiteSourceControl' operation failed with System.InvalidOperationException: Vso GetRepository: Cannot find repository https://myaccount.visualstudio.com/DefaultCollection/_git/myproject
     at Microsoft.Web.Hosting.SourceControls.VsoProxy.&lt;GetRepository&gt;d__3f.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at Microsoft.Web.Hosting.Administration.VsoSiteRepositoryProvider.&lt;UpdateSiteSourceControl&gt;d__6.MoveNext().
  STATUSError
  </code></pre>
  
  <p>I've also tried to set it up from the old azure portal: <a href="https://azure.microsoft.com/en-us/documentation/articles/cloud-services-continuous-delivery-use-vso/" rel="nofollow" title="continuous integration using vso">continuous integration using vso</a>. At step 4 "when authorization completes" I get an error saying that it cannot find any repositories.</p>
  
  <p>I've tried setting up new repos, new websites, unlinking team services, old portal, new portal etc.</p>
  
  <p>After unlinking team services and oauth-granting it again I get this error (almost the same but a bit different):</p>
  
  <pre><code>Failed to set up continuous deployment for web app myproject, using Visual Studio Team Services. Repository 'UpdateSiteSourceControl' operation failed with Microsoft.Web.Hosting.SourceControls.OAuthException: Vso ListRepositories(SOMENUMBER@live.com): (401) Unauthorized.
     at Microsoft.Web.Hosting.SourceControls.VsoProxy.&lt;ProcessResponse&gt;d__83`1.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at Microsoft.Web.Hosting.SourceControls.VsoProxy.&lt;ListRepositories&gt;d__30.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at Microsoft.Web.Hosting.SourceControls.VsoProxy.&lt;GetRepository&gt;d__3f.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at Microsoft.Web.Hosting.Administration.VsoSiteRepositoryProvider.&lt;UpdateSiteSourceControl&gt;d__6.MoveNext().
  </code></pre>