@ee Thank you for reaching out to Microsoft Q&A Apologize for the inconvenience caused by this.
To reproduce this behavior, I have tried to upload a static file abc.txt
to the webapp (without specifying the target path) using the below cmdlet
az webapp deploy -g <ResourceGroupName> -n <WebappName> -s <slotName> --src-path "<pathoffileyouwanttoupload>" --target-path "<absoulte-pathtodestination>" --type static
File upload Operation got successful and when I logged into my web app kudu console, I am able to see the file under /home
instead of /home/site/wwwroot
as mentioned in the documentation
I would request you to check whether the file is uploaded under /home
from the kudu or try passing the absolute path to the --target-path
property to the az webapp deploy
cmdlet
Feel free to reach back to me if you have any further questions on this.