Thank you for reaching out! Since it looks like you are running into an issue with Azure Repos, we want to make sure that you are getting the best answer possible. Azure DevOps and its services are not supported in Microsoft Q&A because the Azure DevOps team and DevOps community are actively answering questions here:
https://developercommunity.visualstudio.com/spaces/21/index.html
Related answers:
https://github.com/microsoft/azure-pipelines-tasks/issues/8657
https://stackoverflow.com/questions/65098456/error-error-failed-to-deploy-web-package-to-app-service-bad-request-code-40