@Olivier Bézier Apologies for the delay in response and all the inconvenience this issue might have caused.
You can refer to below documentation which might be helpful for your use case scenario:
https://github.com/Azure/Moodle
https://learn.microsoft.com/en-us/azure/cdn/cdn-custom-ssl?tabs=option-1-default-enable-https-with-a-cdn-managed-certificate
https://learn.microsoft.com/en-us/azure/application-gateway/redirect-http-to-https-portal
Hope it helps!!!
Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.