Hello,
Welcome to Microsoft Q&A,
.Net 6 reached end-of-life on 2024 Nov 12 and is no longer supported. You will not be able to create Azure Function apps with .Net 6. Please upgrade the application to .Net 8 or 9, and you can deploy the application.
https://azure.microsoft.com/en-us/updates?id=dotnet6support
Please Upvote and accept the answer if it helps!!