Mark Theobald Thank you for posting your question in Microsoft Q&A. Based on my understanding, you are trying to use Microsoft.EntityFrameworkCore 7.0.0 in .NET 6.0 and faced the above-mentioned error.
As described in https://github.com/Azure/Azure-Functions/issues/2319, we have a limitation of in-proc model in V4 running on .NET 6 which supports the dependencies to 6.0.0 (not 7.0.0). Hence you can either move to Isolated model (https://techcommunity.microsoft.com/t5/apps-on-azure-blog/announcing-the-net-7-for-azure-functions-isolated-worker-process/ba-p/3671398) or change your dependencies to 6.0.0. If you have any concerns or feedback on this limitation, feel free to share it on the same GitHub thread or open new issue for Cosmos (but underlying limitation are the same).
I hope this helps with your question but feel free to let me know for any other questions or face issues with Isolated model.
Please accept as "Yes" if the answer is helpful, so that it can help others in the community.