Hello Abhi Shah,
When using Azure Functions with the Flex Consumption plan, the deployment behavior differs from the traditional Consumption plan. In Flex Consumption, the runtime expects the function code package to be retrieved from the storage location defined under functionAppConfig.deployment.storage. If the runtime cannot successfully access or load the package, the Function App will be created but no functions will appear, which is the behavior you are observing.
A few things you may want to verify:
- Confirm the package is present in the container Ensure that the ZIP package containing the function code is successfully uploaded to the blob container during deployment. The container should contain the actual deployment package (for example, functionapp.zip). If the container is empty or the package upload fails, the runtime will not be able to load the functions.
- Validate the package structure Make sure the ZIP file contains the function app root structure. For example:
host.json
If the ZIP contains an additional parent folder (for example project-folder/host.json), the runtime may not detect any functions.
- Check storage access permissions Since the deployment configuration uses managed identity authentication, ensure that the Function App’s managed identity has the appropriate permissions on the storage account or container. Typically, the following role is required:
Storage Blob Data Reader
This allows the runtime to read the deployment package from the container.
- Identity configuration If SystemAssignedIdentity is specified in the deployment configuration, the access should be granted to the Function App’s system-assigned identity. If you intend to use a user-assigned identity instead, ensure the correct identity is referenced and has the necessary storage permissions.
- Verify runtime configuration Confirm that the runtime configuration matches the application package you are deploying:
runtime:
The function application must be built for the corresponding Java runtime supported by Azure Functions.
If all resources are deployed successfully but functions are still not detected, another useful step is to check the Function App logs and deployment logs in Application Insights to see whether the runtime reports any issues while downloading or extracting the package.
Please accept as answer and do a Thumbs-up to upvote this response if you are satisfied with the community help. Your upvote will be beneficial for the community users facing similar issues.