Here are the troubleshooting steps to resolve the issue where deployed functions are not visible, and you encounter errors like "error retrieving function" and "error retrieving function keys":
- Check Deployment Status
- Verify that the deployment was successful using the azureportal, azure devops, vscode, or azureCLI.
- Restart your function app from the Azure Portal to refresh the state.
functions
Folder in Kudu- Open Kudu (Advanced Tools) and navigate to `D:\home\site\wwwroot`. - Ensure that the `function.json` files exist inside the respective function folders. Verify the Function App Configuration - Ensure that the Azure Functions runtime version is compatible with your function. - Check the runtime version in the Azure Portal. Investigate Storage Account Issues - Ensure that the AzureWebJobsStorage setting is correctly configured and points to an active storage account. - Verify that the storage account exists and is accessible.
Check Logs for Errors
- Open the Logs (Application Insights) section in the Azure Portal and review any error messages.
Recreate Host Keys (If Function Keys Are Not Visible)
- Reset the function keys to resolve potential corruption.
Redeploy the Function
- Delete the function from Kudu, then redeploy it to force a fresh deployment.
If the issue persists after these steps, checking for potential permission issues or service outages may also help. Let me know if you need further assistance!