I have been facing this issue particularly today while deploying my application to the Azure environment using Azure Devops.
One of the deployment tasks fails with the following error message:
##[debug]Deployment Failed with Error: TypeError: Cannot read property 'scmUri' of undefined
When I retry to deploy a couple of times it succeeds and deployment is successfully done.
What is the issue causing this error?