Hello, I have a python 3.9 function app. I tried to automate its deployment with this action, only to be met with internal server errors or CORS errors after deployment. The curious this is; I can deploy with the VScode extension and all the code runs fine. I'm not sure if I have an error in configuration.
For reference, I've added the action yaml, host.json, and function.json (there's only one function).
deploy.yaml:
name: Deploy python function app to Azure Function App
on:
push:
branches:
master
env:
AZURE_FUNCTIONAPP_NAME: 'APP_NAME' # I set this but changed it in for the issue
AZURE_FUNCTIONAPP_PACKAGE_PATH: '' # set this to the path to your function app project, defaults to the repository root
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: dev
steps:
Hello, I have a python 3.9 function app. I tried to automate its deployment with this action, only to be met with internal server errors or CORS errors after deployment. The curious this is; I can deploy with the VScode extension and all the code runs fine. I'm not sure if I have an error in configuration. For reference, I've added the action yaml, host.json, and function.json (there's only one function). deploy.yaml:
name: Deploy python function app to Azure Function App
on: push: branches:
jobs: build-and-deploy: runs-on: ubuntu-latest environment: dev steps:
host.json:
{ "version": "2.0", "logging": { "applicationInsights": { "samplingSettings": { "isEnabled": true, "excludedTypes": "Request" } } }, "extensionBundle": { "id": "Microsoft.Azure.Functions.ExtensionBundle", "version": "[3.*, 4.0.0)" } }
function.json:
{ "scriptFile": "__init__.py", "bindings": [ { "authLevel": "anonymous", "type": "httpTrigger", "direction": "in", "name": "req", "methods": [ "get", "post" ] }, { "type": "http", "direction": "out", "name": "$return" } ] }