It seems you are encountering a recurring startup failure with your Azure Function App that uses a custom Docker image. Based on the information provided, the following points are relevant:
- Startup Timeout: The default startup timeout for Azure Function Apps is 230 seconds. If your container fails to respond to health checks within this time frame, it will result in a startup failure. You mentioned that adding the application setting
WEBSITES_CONTAINER_START_TIME_LIMITto 1800 seconds previously mitigated the issue, which indicates that your container may need more time to start up due to its configuration or resource requirements. - Health Checks: Ensure that your container is configured to respond to health checks correctly. If the application inside the container is not ready to handle requests within the specified timeout, it will lead to the issues you're experiencing.
- Portal Visibility Issues: The problems with the Azure Portal UI not displaying the Function App correctly could be related to the startup failures. If the app is not starting properly, it may not register correctly in the portal.
- Manual Mitigation: Since the issue is consistent across new Function Apps, and you've previously mitigated it by adjusting the startup time limit, it may be worth applying this setting again as a temporary fix while awaiting further investigation from Microsoft Support.
- Root Cause Analysis: It appears that there has been a lack of follow-up from Microsoft Support regarding the root cause analysis (RCA) for this issue. It may be beneficial to re-engage with support to seek updates on the RCA and any potential fixes or recommendations they may have.
In summary, adjusting the WEBSITES_CONTAINER_START_TIME_LIMIT setting seems to be a necessary step to allow your Function App to start successfully. Additionally, ensuring that your container is properly configured to respond to health checks is crucial for resolving these startup issues.
References: