Has anyone tried setting up Azure AD authentication with grafana running in containers successfully? I am trying to set up grafana in Azure App service for linux which is basically docker container, image pulled from official grafana image.
While on a regular compute I am able to set up Azure AD auth easily I am not able to wrap my head on how to get it working Azure Web App service for Linux.
I have followed the documentation step by step however whenever I specify reply URL in root_url parameter I am not able to load grafana. I keep on getting following error:
If you’re seeing this Grafana has failed to load its application files
- This could be caused by your reverse proxy settings.
- If you host grafana under subpath make sure your grafana.ini root_path setting includes subpath
- If you have a local dev build make sure you build frontend using: npm run dev, npm run watch, or npm run build
- Sometimes restarting grafana-server can help
Obviously without root_url specified I get AADSTS50011 Error. I have tried specifying Server.Domain, Protocol, Port parameters but having similar issues. Grafana is official image from docker hub. I am accessing grafana as url e.g. xxxxx.azurewebsites.net url for Azure App Service which proxies/load balances requests to Grafana containers. (used the same with root_url with /login/generic_oauth, also tried specify domain,port etc).
Even tried my luck with https vs http as in Azure AD sign in error reply url
I am using MySQL as persistent store (I don’t think that matters here). Any insights into on what I am doing wrong will be appreciated.