Embedded Dashboard Components
These steps will walk a user through the proces of adding an Embedded Databricks Dashboard into their VDAB app.
1. Setting the Correct Permissions
To embed a dashboard, the proper Workspace permissions must be set, so that published Dashboards can have their embedding link accessible.
- A Databricks Workspace Admin will need to navigate to
Workspace Settings, and underWorkspace admin, clickSecurity. - Under
External Access, forEmbed dashboards and Genie spaces, set it toAllow approved domains. - Finally, click
Manage, and add*.databricksapps.comas a domain and clickSave- This is because most deployed Databricks apps are on
https://<app-name>-<workspaceId>.aws.databricksapps.com/
- This is because most deployed Databricks apps are on
2. Publishing a Dashboard
After enabling the proper Workspace permissions, you must publish a dashboard so that it can be embedded into a VDAB app. If you already have a published dashboard, you may skip this step.
- On Databricks, navigate to the
Dashboardstab, located under theSQLsubsection - Create (or import) a dashboard, and when it is finished, select the
Publishbutton in the top right of the screen. - When published, the
Sharescreen should automatically open, but if it doesn’t, navigate to this screen by selecting theSharebutton manually. - Select the
Embed dashboardbutton and then select theIframetab. - Copy the link within the double quotes
"<link>".https://<instanceURL>.cloud.databricks.com/embed/dashboardsv3/<dashboardId>?o=<workspaceId>
<iframe src="https://<instanceURL>.cloud.databricks.com/embed/dashboardsv3/<dashboardId>?o=<workspaceId>"
width="100%"
height="600"
frameborder="0">
</iframe>
Now that you have the embedding link, you need to create an Embedded Dashboard component within a VDAB app and supply the link
3. Adding the Dashboard Component
Now, on VDAB, open an app and a modal then Drag & Drop a Dashboard Embed component onto the canvas, then follow these steps to properly link the published dashboard from the previous step to this component.
- Select the component to open the Dashboard Embed
Propertiestab - Paste the Embedding Link from Part 2 into the
Embed URLproperty field - Save and deploy the VDAB app
This completes all of the steps to implement an Embedded Dashboard into a VDAB application. For any issues, refer to the below Troubleshooting sections.
Troubleshooting
1. Error Message: “Embedding dashboards is not available in this workspace.”
This message can appear in multiple scenarios:
- In the Dashboard preview on the VDAB canvas when an
Embed URLis pasted into the properties field for an Embedded Dashboard component.- This requires adding Permissions to the VDAB builder itself to display the dashboards, not just the deployed app
- These permissions are currently only set for the Deployed apps using the steps above in Section 1
- Apply the proper permissions for your VDAB canvas URL:
- For example, if the URL for VDAB is:
http://<vdab-url>/apps/<appInt>?name=<app%20name>, maybe provide permissions forhttp://<vdab-url>/apps/so previews of any Dashboards can be viewed in the VDAB builder canvas.
- For example, if the URL for VDAB is:
- In the Deployed App itself where the Embedded Dashboard should be
- This means that the permissions step from Section 1 did not properly allow the Viewing permissions for Embedded Dashboards
- Re-read and complete the steps from Section 1, applying the correct permissions for the correct domain(s) for deployed apps

