Hi Alex-1534,
Welcome to Microsoft Q&A Forum, thank you for posting your query here!
Yes, it is possible to embed an Azure Managed Grafana dashboard in a web application and restrict access to authenticated users. Here's how you can do it
- Use Azure Active Directory (AAD) Authentication
Azure Managed Grafana integrates with Azure Active Directory (AAD) for authentication. You can configure your Grafana instance to authenticate users via AAD. Here's how:
- In Azure Portal, go to your Azure Managed Grafana resource.
- Under Settings, select Authentication and authorization.
- Enable Azure Active Directory as the authentication provider.
- Ensure your web application also uses Azure AD for authentication, so users are authenticated using the same system.
- Restrict Access to the Dashboard
In your Grafana instance:
- Define user roles and permissions within Grafana to control access to specific dashboards.
- Create viewer roles for users who should only see the embedded dashboard.
- Enable Embedding: In the Azure Managed Grafana instance, go to the Configuration tab and enable the "Allow embedding" option.
- Generate Embed Code: Open the Grafana dashboard you want to embed, click on the Share button, and select the Embed tab. Configure the options and copy the generated iframe code2.
- Integrate with Web Application: Paste the iframe code into your web application.
- Authentication: Ensure that your web application uses authentication to control access to the dashboard. Only authenticated users should be able to view the embedded dashboard.
Please follow this step you can securely embed your Grafana dashboard in a web application and restrict access to authenticated users, let us know if any help, we will always help as you needed.!
Please do not forget to "Accept the answer” wherever the information provided helps you, this can be beneficial to other community members.