pulumi-azure icon indicating copy to clipboard operation
pulumi-azure copied to clipboard

Azure FunctionApp Python Dependencies

Open philippbussche opened this issue 5 years ago • 1 comments

Hi, I have started using Pulumi in order to deploy a few Python functions zu Azure. I am able to compose a azure.appservice.ArchiveFunctionApp with the archive pointing to my python directory. For very simple functions, which don't require any additional libraries this is working fine but not for functions which require additional libraries which in Python you would normally install using pip and then document in requirements.txt. The Azure function cli (func) provides a "functionapp publish" command which based on the requirements.txt file in the project folder will do a (remote or local) build and add the required libraries. Can one somehow mimic this with a Pulumi deployment ? Link for reference: https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-python#publishing-to-azure

Thanks Philipp

philippbussche avatar Feb 17 '20 22:02 philippbussche

Related: https://github.com/pulumi/pulumi/issues/1064

leezen avatar Feb 27 '20 07:02 leezen