functions-action: Unable to deploy a linux typescript functionapp
Not entirely sure if this is where I should write the issue. Technically not an issue of the action, but perhaps an underlying azure platform issue.
When I build and deploy my typescript functionapp, the deploy succeeds, but the function app is totally messed up. Here’s what I’ve found.
- Github action logs indicate deployment was successful:
##[Initialize]
##[ValidateParameter]
##[ValidateAzureResource]
Using SCM credential for authentication, GitHub Action will not perform resource validation.
Sucessfully acquired app settings from function app (SCM)!
##[PreparePublishContent]
Will directly deploy ./app/app.zip as function app content
Will use api/zipdeploy to deploy (scm credential)
##[PublishContent]
Setting SCM_DO_BUILD_DURING_DEPLOYMENT in Kudu container to false
Update using Client.updateAppSettingViaKudu
Response with status code 204
App setting SCM_DO_BUILD_DURING_DEPLOYMENT propagated to Kudu container
Setting ENABLE_ORYX_BUILD in Kudu container to false
Update using Client.updateAppSettingViaKudu
Response with status code 204
App setting ENABLE_ORYX_BUILD propagated to Kudu container
Package deployment using ZIP Deploy initiated.
Deploy logs can be viewed at https://app.scm.azurewebsites.net/api/deployments/<xxxxxx>/log
Successfully deployed web package to App Service.
Successfully updated deployment History at https://app.scm.azurewebsites.net/api/deployments/<xxxx>
- When I navigate to the function app and click on functions, no functions are present
- When I click on files, I can see the root files are there (host.json, package.json)
- When I go to the storage area and download the zip file and try to expand it, it fails saying it is an unsupported format (I’m on a mac).
If I switch over to use azure function core tools and use that to publish the function, it works without issue.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 7
- Comments: 22 (7 by maintainers)
Any updates on this? This is still not working for me for a Linux Consumption plan. I looked at the deployment logs before they disappeared and it seemed like the package that was being generated was pretty much empty:
To get around this issue, I resorted to zipping my project myself and then deploying the zip using:
This works great.
GitHub actions fails for me too. I have tried all the options listed above but none of them seem to work.
Stopping it first before deploying as listed in Azure/functions-action#26 didn’t work either.
The original GitHub Workflow created by Azure:
@AmrutaKawade I successfully deploy to Azure Functions using the following document and some app settings. Continuous delivery by using GitHub Action
Did anyone actually get this working yet? I more or less gave up doing CD deployment of a typescript app to azure from github.
It does not have any impact on how and what i do, it just wont work.
When i deploy from VScode everything is fine. When i use the script from https://docs.microsoft.com/en-us/azure/azure-functions/functions-how-to-github-actions?tabs=javascript#build-the-function-app it just wont work.
My setup: Windows Function App on an App Service Plan (Not consumption). Windows deployment script from the website Typescript functions project