Seems the information you provided files are being copied to PUBLISH_DIRECTORY which is pointing to "d:\a\1\a but you need to make sure that files are properly zipped and deployed to "~\wwwroot" directory
- Script: | cd $(PUBLISH_DIRECTORY) zip -r ../publish.zip DisplayName: "Zip create from published Directory"
Update the deployment task
'$(Build.ArtifactStagingDirectory)/publish.zip'
Ensuring your build outputs are zipped and copied correctly will hopefully solve your 404 issues. If Still exists then please check the logs again. Thanks