Unable to deploy a linux typescript functionapp
See original GitHub issueNot 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.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:22 (7 by maintainers)
Top Results From Across the Web
Unable to deploy fresh Azure Function to Linux app
I'm trying to deploy a newly created Azure Function to a linux Azure Function app. For some reason this keeps failing, even though...
Read more >Work with Azure Functions Core Tools | Microsoft Learn
Deploys your Linux function app as a custom Docker container to a Kubernetes cluster. Before you publish. Important. You must have the Azure...
Read more >Typescript Build for Function app failing on Pipelines with "/bin ...
I am trying to setup a CI build for an Azure function app using Typescript. I set up the YAML using the "Node.js...
Read more >azure-functions-core-tools - npm
Deploying a function to AKS using ACR. Using the configuration options an Azure Function app can also be deployed to a AKS (Azure...
Read more >Publish Azure Functions code with Terraform
This post focuses on how you can publish code to a function app ... Code for Linux/Windows + Consumption/Premium configurations in Github.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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: