I'm trying to upload a zip file to KUDU for a development webapp and have the files extracted to the root of wwwroot folder
URL i'm using is https://webappname.scm.azurewebsites.net/api/zip/site/wwwroot
Code to upload to zip is:
$result = Invoke-RestMethod -Uri $kuduUrl `
-Headers @{Authorization=$kuduheader;"If-Match"="*"} `
-Method PUT `
-InFile $ZipFileLocation `
-ContentType "multipart/form-data"
It is uploading the .zip file but rather than extracting the files to the root of the wwwroot folder it is creating a folder in wwwroot called the same name as the .zip file
I'm sure it's someting very simple but i've been looking for a couple of hours without luck!
Thanks in Advance!