Closed alexbruno closed 10 months ago
This issue is idle because it has been open for 14 days with no activity.
@alexbruno, I need more information to investigate.
Thanks for the response @patelchandni ! I'm not running any functions now, but I'm gonna run some new tests and give you feedback here in this thread.
This issue is idle because it has been open for 14 days with no activity.
I've also found the same problem.
Hello,
im facing the same issue.
Function was
After the first 2 steps i have a function up and running. When i do a deployment using github actions, i dont get any error, but the code of the function stays the same.
Run Azure/functions-action@v1.5.1 Successfully parsed SCM credential from publish-profile format. Using SCM credential for authentication, GitHub Action will not perform resource validation. (node:1855) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use
node --trace-deprecation ...to show where the warning was created) Successfully acquired app settings from function app (with SCM credential)! Will archive ./XXXX into /home/runner/work/_temp/temp_web_package_9668278850995906.zip as function app content Will use Kudu https://<scmsite>/api/zipdeploy to deploy since publish-profile is detected. Setting SCM_DO_BUILD_DURING_DEPLOYMENT in Kudu container to false Update using context.kuduService.updateAppSettingViaKudu Response with status code [20](https://github.com/XXXX/actions/runs/6651109086/job/18072484926#step:6:21)4 App setting SCM_DO_BUILD_DURING_DEPLOYMENT propagated to Kudu container Setting ENABLE_ORYX_BUILD in Kudu container to false Update using context.kuduService.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://XXXX.scm.azurewebsites.net/api/deployments/ac3811bc7de84b0b8ac54a0e[23](https://github.com/XXXX/actions/runs/6651109086/job/18072484926#step:6:24)7698d1/log Successfully deployed web package to App Service. Deleting SCM_DO_BUILD_DURING_DEPLOYMENT in Kudu container Response with status code 204 Deleting ENABLE_ORYX_BUILD in Kudu container Response with status code 204
As you can see im already using the newest action. I already spent a lot of time into trying to make this work. I dont have any more ideas.
I'm now able to deploy functions. Here are the steps I've used:
functions-action
: - name: Run Azure Functions Action
uses: Azure/functions-action@v1
with:
slot-name: Production
app-name: ${{ env.APP_NAME }}
package: ${{ env.PACKAGE_PATH }}
publish-profile: ${{ secrets.AZURE_FUNCTION_APP_PROFILE }}
@alexbruno Have you checked if it really works or only deploys? For me it looked working, but didnt.
@alexbruno Have you checked if it really works or only deploys? For me it looked working, but didnt.
Yes, working, running an enterprise serverless API in production.
It is possible to check if the functions are online in the Function App initial page.
*Edit: Some more important hints:
/api/
path. If you don't setup anything different, all of your function names will run after that. (Ex.: domain.com/api/function-name
)@alexbruno how did you setup the function in detail? Windows or linux? Is a deployment slot mandatory (i dont have any).
My new tests failed with not enough space when setting up the function with defaults. Stripping the node_modules folder and then trying again to deploy leads to a generic error, that the zip is not processable.
@benboit , the docs are not clear about a lot of things over all the Azure services and features! For most of them we need to discover how to do it right by ourselves.
If you try to deploy your app with everything into it, including package dependencies, you may face that "not enough space" error. So that is my solution for my case:
functions-action
to deploy..js
file with tree-shaking and optimizations to a dist
dir.package.json
into the dist
dir, listing only the Azure packages as dependencies.npm install
inside the dist
dir to pack the depencies for deployment.functions-action
to deploy only the content inside the dist
dir.By doing things this way I could properly deploy my Function App.
Here is my tiny package.json
for my built package:
{
"main": "app.js",
"name": "function-app",
"dependencies": {
"@azure/functions": "latest",
"@azure/storage-blob": "latest"
}
}
hi i'm facing an issue, my github actions workflow, both build and deploy got success without an error but while i check on azure portal my function app is not displaying and i am trying to push from organization repo i dont know how to resolve this can anyone help me
im facing same issue. Im trying to deploy a ASP.NET API with docker image. When i deploy a React docker image it works but it doesnt work with ASP.NET API docker image even though the workflow says "successfull deployed"
- uses: azure/webapps-deploy@v2 with: app-name: testga-bv publish-profile: ${{ secrets.AZURE_WEBB_PUBLISH_PROFILE }} images: | docker.io/<image name>
i tried running my api docker image locally and it worked without problem.
Deploy action is resolving as success but nothing is actually deployed. The application is not working and by checking it at Azure through FTPS I see nothing in
/site/wwwroot/
dir, it is empty.