I've been deploying azure functions (zip deploy) through:
ApiRest (scm.azurewebsites.net/api/zipdeploy)
Az-Cli
Java SDK (zipDeploy)
and I face the same problem with all those since the kudu deployments logs are deleted after some time. When this happens, all deployments logs are deleted, letting scm.azurewebsites.net/api/deployments totally empty.
The thing is I can't find any configuration for this like a retention policy or something. I controlled it and I saw some logs even made it for hours while others only 2 minutes, so I can't even know how much time I have to check those deploy. I would like to have those logs in a permanent way.
Right now I'm testing it in a Linux consumption plan.
Any ideas what am I missing?