An Azure service that provides an event-driven serverless compute platform.
Hi Parnika Mittal,
Functions Not Appearing in Azure Portal Due to Missing function.json/DLLs After Deployment.
Verify Build Output:
- Ensure that
Microsoft.NET.Sdk.Functionsis updated in your.csprojfile to automatically generatefunction.jsonduring the build process. - Check the local build output (located in
bin/Release/net6.0for .NET) to confirm that bothfunction.jsonand the necessary DLLs are present before deployment.
Deployment Settings:
- Use the command
func azure functionapp publish <APP_NAME> --publish-local-settings -ito include local files in the deployment. - If you are using
WEBSITE_RUN_FROM_PACKAGE=1, verify that the ZIP file contains all required files by checking through Kudu.
Runtime Mismatch:
- Ensure that the Azure Function Runtime version (v4) aligns with your project’s target framework (e.g., .NET 6 should correspond to v4).
To help you better understand, kindly refer to the documentations below:
Please refer to these details as well: https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies?tabs=windows
If issues continue, consider redeploying using the Visual Studio Publish Profile instead of the CLI to ensure all necessary files are included.
If you have any further queries, please let us know we are glad to help you.