0
votes

Imported ARM template with Workbook item cannot be accessed because:

This item could not be restored.

Could not find Workbook with id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SomeGroup/providers/microsoft.insights/workbooks/11111111-1111-1111-1111-111111111111 in subscription 00000000-0000-0000-0000-000000000000. It may have been deleted or moved, or you may not have access to it.

Workbook was crated on Azure Portal, works fine, and its ARM template stored in json file. When I use Deploy a custom template in Portal or Azure CLI

az deployment group create -n WorkbookName -g SomeGroup --template-file workbook.json

it passes. But when I try to enter it (the workbook in Resource groups) and peek a result (after clicking Open Workbook) I end up with above error.

My role is Contributor, so I don't think this is a problem with access.

2

2 Answers

0
votes

The error is misleading in this case and, in my opinion, there should be some kind of error during template deployment.

For the moment of writing this answer there is still a limitation regarding Workbook and its not-copy-paste (directly into Workbook's gallery template) deployment:

For a technical reason, this mechanism cannot be used to create workbook instances in the Workbooks gallery of Application Insights. We are working on addressing this limitation. In the meanwhile, we recommend that you use the Troubleshooting Guide gallery (workbookType: tsg) to deploy Application Insights related workbooks.

You can find your newly created Workbook in you Resource groups tab.

0
votes

This limitation no longer applies, there's no restriction on the workbook type being deployed inside application insights (starting 3/24/2021).

see: https://github.com/microsoft/Application-Insights-Workbooks/blob/master/Documentation/LegacyAI/LegacyWorkbooksConversion.md

for concrete details.