Share via

Unable to deploy python http trigger function to function app in vnet

Abhay Gupta 71 Reputation points
2021-05-21T01:58:01.543+00:00

Hi

When deploying python code through VSCode to a function app it is failing

Preparing deployment for commit id '1d2d3fd1-e'.
Repository path is /tmp/zipdeploy/extracted
Running oryx build...
Command: oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.8 -i /tmp/8d8f5386e9b06e3 -p packagedir=.python_packages/lib/site-packages
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version: 0.2.20210120.1, Commit: 66c7820d7df527aaffabd2563a49ad57930999c9, ReleaseTagName: 20210120.1

Build Operation ID: |K9ZrSSPWtrg=.1eb096d0_
Repository Commit : 1d2d3fd1-e1ef-47de-adc7-b7c87069fa0d

Detecting platforms...
Error: Oops... An unexpected error has occurred.
Error: Oops... An unexpected error has occurred.\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.8 -i /tmp/8d8f5386e9b06e3 -p packagedir=.python_packages/lib/site-packages

Function app is on app service plan. Can someone please assist on this error

Thanks

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

0 comments No comments

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 71,016 Reputation points Moderator
    2021-05-25T05:08:40.657+00:00

    @Abhay Gupta If you are still facing the issue can you please respond to my private comment. Ideally, in the case, if there is restricted inbound traffic the deployment will fail but error details cannot confirm it.

    Update:
    @Abhay Gupta Thanks for confirming that the issue was resolved. The issue was caused due to azure firewall which was breaking the connection.

    Was this answer helpful?

    0 comments No comments

Your answer

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