Hi @Dilan BC ,
To try recovering it, use the change tracking feature in Activity Log and see if it helps.
Steps to be followed:
- Navigate to Activity Log tile of the dashboard's Resource Group and try to find the event that record change to the dashboard.
- If you found that event then click on the event to launch the pane and then click on Change History tab in the pane.
- Then click on the change corresponding to the dashboard update.
- In the changed properties page, the json of the dashboard before the change can be found.
- Use that json to either create a new dashboard or update the existing dashboard by making a PUT call on the dashboard via ARM call.
Refer this article to understand steps to create a template from a json. Also, check this article to understand steps to update or create a dashboard using Az CLI.
Related reference: https://learn.microsoft.com/en-us/azure/azure-portal/recover-shared-deleted-dashboard