Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Azure Function Deploy - ModuleNotFoundError

shelg
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 16, 2019

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

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events