Why do I get "Request Entity Too Large" When Using the ZipDeploy API Azure?

Viewed 70

I have a ASP.NET zip that I'm attempting to upload to an ASE slot using the zipdeploy API, and for one slot it's erroring out resulting in a "Request entity too large" error.

Here's the code I'm using:

$url = "https://" + $slot + "/api/zipdeploy?isAsync=true"  
Invoke-WebRequest -Uri $url -Headers @{Authorization = ("Basic {0}" -f $authInfo)} -Method POST -UseBasicParsing -InFile $zip -ContentType "multipart/form-data"

If I use a relatively small zip it'll work, but if I use the zip I want which is 100MB+, it'll fail.

0 Answers
Related