You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/platform/workbooks-automate.md
+94-4Lines changed: 94 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,21 +8,112 @@ manager: carmonm
8
8
ms.workload: tbd
9
9
ms.tgt_pltfrm: ibiza
10
10
ms.topic: conceptual
11
-
ms.date: 10/23/2019
11
+
ms.date: 04/30/2020
12
12
ms.author: mbullwin
13
13
---
14
14
15
15
# Programmatically manage workbooks
16
16
17
-
Resource owners have the option to create and manage their workbooks programmatically via Resource Manager templates.
17
+
Resource owners have the option to create and manage their workbooks programmatically via Resource Manager templates.
18
18
19
19
This can be useful in scenarios like:
20
20
* Deploying org- or domain-specific analytics reports along with resources deployments. For instance, you may deploy org-specific performance and failure workbooks for your new apps or virtual machines.
21
21
* Deploying standard reports or dashboards using workbooks for existing resources.
22
22
23
23
The workbook will be created in the desired sub/resource-group and with the content specified in the Resource Manager templates.
24
24
25
-
## Azure Resource Manager template for deploying workbooks
25
+
There are two types of workbook resources that can be managed programmatically:
1. Copy the JSON in the gallery template to the clipboard.
38
+
2. Below is a sample Azure Resource Manager template that deploys a workbook template to Azure Monitor workbook gallery. Paste the JSON you copied in place of `<PASTE-COPIED-WORKBOOK_TEMPLATE_HERE>`. A reference Azure Resource Manager template that creates a workbook template can be found [here](https://github.com/microsoft/Application-Insights-Workbooks/blob/master/Documentation/ARM-template-for-creating-workbook-template).
1. In the `galleries` object fill in the `name` and `category` keys with your values. Learn more about [parameters](#parameters) in the next section.
77
+
2. Deploy this Azure Resource Manager template using either the [Azure portal](https://docs.microsoft.com/azure/azure-resource-manager/templates/deploy-portal#deploy-resources-from-custom-template), [command line interface](https://docs.microsoft.com/azure/azure-resource-manager/templates/deploy-cli), [PowerShell](https://docs.microsoft.com/azure/azure-resource-manager/templates/deploy-powershell), etc.
78
+
3. Open the Azure portal and navigate to the workbook gallery chosen in the Azure Resource Manager template. In the example template, navigate to the Azure Monitor workbook gallery:
79
+
1. Open the Azure portal and navigate to Azure Monitor
80
+
2. Open `Workbooks` from the table of contents
81
+
3. Find your template in the gallery under category `Deployed Templates` (will be one of the purple items).
| `galleries` | The set of galleries to show this workbook template in. |
93
+
| `gallery.name` | The friendly name of the workbook template in the gallery. |
94
+
| `gallery.category` | The group in the gallery to place the template in. |
95
+
| `gallery.order` | A number that decides the order to show the template within a category in the gallery. Lower order implies higher priority. |
96
+
| `gallery.resourceType` | The resource type corresponding to the gallery. This is usually the resource type string corresponding to the resource (for example, microsoft.operationalinsights/workspaces ). |
97
+
|`gallery.type` | Referred to as workbook type, this is a unique key that differentiates the gallery within a resource type. Application Insights, for example, have types `workbook` and `tsg` corresponding to different workbook galleries. |
0 commit comments