It sounds like you're experiencing issues with your Azure Function App not starting properly after deployment, despite the pipeline succeeding. Here are some troubleshooting steps you can consider:
- Check Function App Status: Ensure that your Function App is running. You can do this in the Azure portal by navigating to your Function App and checking the status.
- Review Application Insights: If you have Application Insights set up, check the telemetry data for any errors or performance issues that might indicate why the function isn't running.
- Diagnose and Solve Problems Tool: Use the "Diagnose and solve problems" feature in the Azure portal for your Function App. This tool can help identify common issues and provide guidance on how to resolve them.
- Check for Resource Consumption: High resource consumption can lead to issues. Monitor the CPU and memory usage of your Function App to ensure it is not exceeding limits, especially if you are on a Consumption plan.
- Function Host Not Running: If you see the error "Function host not running," it may indicate that the function app is not able to start properly. Review the logs for any startup errors.
- Access Denied Errors: If you encounter access denied errors, ensure that the necessary permissions are set for your Function App to access required resources.
- Try Restarting the Function App: Sometimes, simply restarting the Function App can resolve transient issues.
- Check for Deployment Errors: Review the deployment logs in Azure DevOps to ensure there were no hidden errors during the deployment process that could affect the app's functionality.
If the Log Stream is not providing any output, it may be indicative of deeper issues with the function app itself. If none of these steps resolve the issue, consider reaching out to Azure support for further assistance.
References: