Hi @Venkat Ambati,
I am able to deploy and functions are shown in Overview section by following below approach:
Firstly, created functions and later deployed to GitHub using below commands:
cd "Function App folder path"
git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/Name/Repository.git
git push -u origin main
Then while creating the function app, In deployment action, Enable Continuous deployment and give organization, repo and branch details as below:
Then in Deployment Center, click on Build/Deploy Logs :
Then wait for some time for the function to deploy:
Workflow file:
name: Build and deploy dotnet core app to Azure Function App - test12325
on:
push:
branches:
- main
workflow_dispatch:
env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
DOTNET_VERSION: '8.0.x' # set this to the dotnet version to use
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4
- name: Setup DotNet ${{ env.DOTNET_VERSION }} Environment
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: 'Resolve Project Dependencies Using Dotnet'
shell: pwsh
run: |
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
dotnet build --configuration Release --output ./output
popd
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: 'test12325'
slot-name: 'Production'
package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_4391F28A09AE484F8E0AA996C24084AF }}
Functions are shown:
Check the deployment status :
By following the above approach, I am able to deploy and work with my functions. even after using above approach if you still face the issue, then i would suggest you check with code and packages, as the above process works.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.