You cannot enable it in Azure Web Apps.
The App Service's internal load balancer needs to support HTTP/3, but it doesn't.
If you want to use HTTP/3 with .NET 6 in Azure, you probably need to host it in a virtual machine at this point.
Since Azure Load Balancer supports UDP, it may be used as an HTTP/3 load balancer.
https://learn.microsoft.com/en-us/azure/load-balancer/concepts
In .NET Core, the implementation is as follows.
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/http3?view=aspnetcore-6.0