Fatal: Could not read password for ‘https://[email protected]’: terminal prompts disabled

As you mentioned you need to use PAT but in this way: git push https://{PAT}@dev.azure.com/{organization}/{project}/_git/{repo-name} Another solution is to “Allow scripts to access the OAuth token” in the job options: In the git push use the System.AccessToken: git push https://$env:[email protected]/…… And give push permissions to the build user (in the repo settings):

Remove files and foldes on Azure before a new deploy from VSTS

First, it’s better to include the files to the project that the web app needs, then just check Remove additional files at destination option (Check Publish using Web Deploy option first) to remove additional files. Secondly, you can remove the files through Kudu API. DELETE /api/vfs/{path} (Delete the file at path) More information, you can … Read more