Hi @AdamHumiecki-2359,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
It seems you're encountering a common problem with Azure Functions where the function isn't being recognized, despite a successful deployment. Here are some troubleshooting suggestions to help you resolve this issue:
- Make sure that the function name and decorators are applied correctly. The
@app.function_name(name="CosmosToCtFn")
should be properly formatted, and the function itself should be defined accurately. - Since you indicated that the files are present on the host, verify that the structure of the deployment package is correct. The function should be located in the appropriate directory structure within
site/wwwroot
. - Although you mentioned that there are no
ModuleNotFound
errors, consider enabling more detailed logging in Azure Functions. This can often uncover issues that may not be immediately obvious. - Verify that the environment variables, particularly
COSMOSDB_CONNSTRING
, are correctly configured in the Azure portal and align with those in your local settings. - Make sure that the Azure Function App is set to use the correct runtime version that corresponds with your local development environment. Occasionally, rebuilding the function app and redeploying can help resolve issues. Ensure that there are no cached versions causing conflicts.
- If relevant, consider using a storage emulator such as Azurite for local testing, as it can assist in identifying issues related to storage connections.
For your reference, please review the following documentations for further clarification.
Azure Functions triggers and bindings concepts
Azure Functions Python developer guide
By following these steps, you should be able to identify and resolve the issue with your Cosmos DB-triggered function not appearing in the Azure Function App GUI.
If you find the answer helpful, kindly click "Accept Answer" and upvote it. If you have any further questions or concerns, please feel free to reach out to us. We are happy to assist you.