Can python zipapps (for instance, a .pyz file created using shiv) be deployed to azure-functions or azure-app service via the deploy package with WEBSITE_RUN_FROM_PACKAGE

Michael Ryan 21 Reputation points
2022-10-31T18:38:17.683+00:00

I have python functionapps and python app service applications I want to deploy to azure-app service or azure-functionapps and wanted to know if it was possible to deploy the zip file as a .pyz file (with all package source files, dependencies, frameworks, etc) or if it is only usable with .zip or .war files.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,072 questions
Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
237 questions
0 comments No comments
{count} votes

Accepted answer
  1. Alistair Ross 7,136 Reputation points Microsoft Employee
    2022-11-01T10:00:26.313+00:00

    Hello @Michael Ryan

    As per our documentation

    The package file must be .zip formatted.

    This is because it uses Kudu's zipdeploy and only supports .zip files
    https://github.com/projectkudu/kudu/blob/master/Kudu.Services/Zip/ZipController.cs

    I hope this helps provide you with the information you need. If it does, please make sure to mark the question as answered so it helps other people in future.

    Kind Regards

    Alistair

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.