I want to use REST API Web Apps - Create One Deploy Operation (https://learn.microsoft.com/en-us/rest/api/appservice/web-apps/create-one-deploy-operation) to deploy to slot in Azure Web App.
I don't see how to do that. Has someone already faced that?
Thank you!
Need to check below:
Sometimes, web applications will run out of storage capacity while being deployed to any of the slots. In this case, verify the disk space and remove the cache as well as detailed in the blog by @Feng Lu. After that, try to complete the deployment with
one deployoperation.Goto
Advance editor. Openkuduin the browser and go tosite extensions, search forDisk usage.Add this to your environment to verify the disk usage and the available space for the deployments.
MSDeploy operation:
Rather than using
one deployoperation, I would suggest you useMSDeployoperation as detailed below.One deployfocuses primarily on simple applications. You can deploy web apps by simply uploading a zip package along with the package URL.MSDeployoperations work for large and complicated deployments with the specified configurations in the similar way.Request type:
PUTAPI call URL:
Request body:
Below are the required parameters to be passed:
Response status:
Once it is succeeded, I checked in the
kudu files -> site extensionsand it displayed the contents as expected.Refer MSDoc for the relevant information.