Hi all,
Have tried searching on here but nothing has fixed my issue.
I'm able to deploy my Python Azure Function via Azure CLI but would like to use Pipelines.
However - while Azure CLI deploys fine and runs - when I deploy via Pipelines I'm getting ModuleNotFoundErrors when trying to run the deployed function?
Have I made any obvious errors with my pipeline file below?
image: python:3.6.8
pipelines:
branches:
master:
- step:
name: Build ZIP Package
script:
- python -c "import shutil;shutil.make_archive('myapp','zip',root_dir='.', base_dir='.')"
artifacts:
- myapp.zip
- step:
name: Deploy ZIP Package
trigger: manual
deployment: production
script:
- pip install -r requirements.txt
- pipe: microsoft/azure-functions-deploy:1.0.2
variables:
AZURE_APP_ID: ###
AZURE_PASSWORD: ###
AZURE_TENANT_ID: ###
FUNCTION_APP_NAME: ###
ZIP_FILE: myapp.zip
services:
- docker