Ensure that you always use the latest runtime version of the function host for your Microsoft Azure Function Apps in order to adhere to Azure cloud best practices and receive the newest software features, get the latest security patches and bug fixes, and benefit from better performance and reliability. The runtime version used by the function host is usually controlled by the "FUNCTIONS_EXTENSION_VERSION" application setting.
optimisation
excellence
Using the latest runtime version for all the functions managed with Microsoft Azure Function App ensures access to critical security updates, performance enhancements, and bug fixes. Staying up-to-date is crucial for maintaining a secure and efficient serverless environment, as it mitigates potential vulnerabilities and ensures that your functions run smoothly with the latest improvements and optimizations.
Audit
To determine if your Azure Azure functions are configured to use the latest runtime version of the function host, perform the following actions:
Remediation / Resolution
To upgrade the runtime version for your Azure functions managed with Microsoft Azure Function App, perform the following actions:
References
- Azure Official Documentation
- Azure Functions runtime versions overview
- Migrate apps from Azure Functions version 3.x to version 4.x
- App settings reference for Azure Functions
- Azure Command Line Interface (CLI) Documentation
- az functionapp list
- az functionapp config appsettings list
- az functionapp config appsettings set