I'm having a problem setting up a deployment source on an Azure Web App for my Visual Studio Team Services account.
I had just reorganised my solution - added a new project and changed the root directory of my git repo to be the parent folder of the old root folder (I used to have my solution & project in the same folder, which was my git root, but now I have .\solution\ & .\solution\project1 & .\solution\project2, with .\solution now being my git root).
Continuous deployment had been setup via my Visual Studio Team Services account, and was working fine, but after this reorganisation it stopped working. I tried deleting and recreating the Azure Web Site, and also re-created the VS Team Services project, but that made no difference.
When I attempt to set the Deployment Source for my Web App in the portal, it fails with the following error:
Failed to set up deployment source for web app my-web-app(Staging),
using Visual Studio Team Services. Repository 'UpdateSiteSourceControl'
operation failed with System.InvalidOperationException: Vso GetRepository:
Cannot find repository
https://my_account.visualstudio.com/DefaultCollection/_git/my_repo_name
at
Microsoft.Web.Hosting.SourceControls.VsoProxy.<GetRepository>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.<UpdateSiteSourceControl>d__6.MoveNext().