Hello @Phan Huy Hoang (LAB.SC),
A 503 "Service Unavailable" error when calling an Azure Function typically means the runtime is currently unreachable, and this can happen for several reasons. Since the function was working fine recently, I recommend starting with a few quick checks, restart the Function App from the Azure Portal, and verify if there are any ongoing outages in your region using Azure Service Health. You also mentioned that “Sync Web Apps Function Triggers failed,” which can prevent functions from executing.
Try manually syncing the triggers through the Azure Portal or using the Azure CLI (func azure functionapp publish <APP_NAME> --force
). Additionally, check if your app has hit a daily execution quota (especially on the Consumption Plan), or if there have been any recent configuration changes, such as modifying read-only app settings or network restrictions. If your app is hosted in an App Service Environment (ASE) or has IP restrictions, ensure it’s not unintentionally blocking access.
Also, be aware that host ID collisions or authentication overrides (such as Azure AD or ASP.NET auth) can interfere with function execution. Since the function isn’t logging to Application Insights, it’s likely the runtime is failing before it starts. To gain more visibility, enable diagnostic logs in the App Service settings and consider setting up AutoHeal to automatically recover from 503 errors.
Another possible issue is Function App Scaling Limitations, particularly if the function is hosted on a Consumption Plan. Scaling delays or cold starts can sometimes result in a 503 error. Switching to a Premium Plan or Dedicated Plan could provide better reliability.
Kindly refer below links:
Troubleshoot error: "Azure Functions Runtime is unreachable"
https://stackoverflow.com/questions/70212651/azure-functionapp-publish-failing-on-syncing-triggers
https://techcommunity.microsoft.com/blog/appsonazureblog/simple-self-troubleshooting-steps-for-function-app-not-seeing-triggers/4167100
Hope this helps. Do let us know if you any further queries.