The retirement of the IDCRL authentication protocol and the enforcement of OpenID Connect and OAuth protocols will affect how authentication is handled in your Azure function when accessing SharePoint. Since your code uses a managed identity to authenticate to SharePoint, it is essential to ensure that your Azure function is updated to use the recommended authentication protocols.
In your code, if you are using the GetJwtTokenUsingSystemManagedIdentity() method to obtain the access token, you should verify that this method is compatible with the new authentication protocols. The use of managed identities is generally supported with OpenID Connect and OAuth, so you should be able to continue using this approach as long as it aligns with the updated requirements.
Make sure to test your Azure function after the transition to confirm that it can successfully authenticate and interact with SharePoint using the new protocols. Additionally, keep an eye on any updates from Microsoft regarding the specific changes and timelines related to the retirement of IDCRL and the enforcement of the new protocols.