Skip to content

Commit c01612b

Browse files
Merge pull request #272277 from AbbyMSFT/workbooks-arm-actions
Add missing information about link ARM action settings
2 parents f9c505c + 15be376 commit c01612b

File tree

5 files changed

+45
-4
lines changed

5 files changed

+45
-4
lines changed
Loading
Loading
16 KB
Loading
17.7 KB
Loading

articles/azure-monitor/visualize/workbooks-link-actions.md

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Azure Workbooks link actions
33
description: This article explains how to use link actions in Azure Workbooks.
44
ms.topic: conceptual
55
ms.custom: devx-track-arm-template
6-
ms.date: 12/13/2023
6+
ms.date: 04/18/2024
77
ms.author: abbyweisberg
88
ms.reviewer: gardnerjr
99
---
@@ -50,7 +50,7 @@ When you use the link renderer, the following settings are available:
5050

5151
| Setting | Description |
5252
|:------------- |:-------------|
53-
|View to open| Allows you to select one of the actions enumerated above. |
53+
|View to open| Allows you to select one of the actions. |
5454
|Menu item| If **Resource Overview** is selected, this menu item is in the resource's overview. You can use it to open alerts or activity logs instead of the "overview" for the resource. Menu item values are different for each Azure Resource type.|
5555
|Link label| If specified, this value appears in the grid column. If this value isn't specified, the value of the cell appears. If you want another value to appear, like a heatmap or icon, don't use the link renderer. Instead, use the appropriate renderer and select the **Make this item a link** option. |
5656
|Open link in Context pane| If specified, the link is opened as a pop-up "context" view on the right side of the window instead of opening as a full view. |
@@ -64,9 +64,50 @@ When you use the **Make this item a link** option, the following settings are av
6464
|Menu item| Same as above. |
6565
|Open link in Context pane| Same as above. |
6666

67+
## ARM Action Settings
68+
69+
Use this setting to invoke an ARM action by specifying the ARM API details. The documentation for ARM REST APIs can be found [here](https://aka.ms/armrestapi). In all of the UX fields, you can resolve parameters using `{paramName}`. You can also resolve columns using `["columnName"]`. In the example images below, we can reference the column `id` by writing `["id"]`. If the column is an Azure Resource ID, you can get a friendly name of the resource using the formatter `label`. This is similar to [parameter formatting](workbooks-parameters.md#parameter-formatting-options).
70+
71+
### ARM Action Settings Tab
72+
73+
This section defines the ARM action API.
74+
75+
| Source | Explanation |
76+
|:------------- |:-------------|
77+
|ARM Action path| The ARM action path. For example: "/subscriptions/:subscription/resourceGroups/:resourceGroup/someAction?api-version=:apiversion".|
78+
|Http Method| Select an HTTP method. The available choices are: `POST`, `PUT`, `PATCH`, `DELETE`|
79+
|Long Operation| Long Operations poll the URI from the `Azure-AsyncOperation` or the `Location` response header from the original operation. Learn more about [tracking asynchronous Azure operations](../../azure-resource-manager/management/async-operations.md).
80+
|Parameters| URL parameters grid with the key and value.|
81+
|Headers| Headers grid with the key and value.|
82+
|Body| Editor for the request payload in JSON.|
83+
84+
:::image type="content" source="media/workbooks-link-actions/azure-resource-manager-action-settings.png" alt-text="Screenshot that shows Azure Workbooks ARM action settings.":::
85+
86+
### ARM Action UX Settings
87+
88+
This section configures what the users see before they run the ARM action.
89+
90+
| Source | Explanation |
91+
|:------------- |:-------------|
92+
|Title| Title used on the run view. |
93+
|Customize ARM Action name| Authors can customize the ARM action displayed on the notification after the action is triggered.|
94+
|Description of ARM Action| The markdown text used to provide a helpful description to users when they want to run the ARM action. |
95+
|Run button text from| Label used on the run (execute) button to trigger the ARM action.|
96+
97+
:::image type="content" source="media/workbooks-link-actions/azure-resource-manager-action-interface-settings.png" alt-text="Screenshot that shows Azure Workbooks ARM action UX settings.":::
98+
99+
After these configurations are set, when the user selects the link, the view opens with the UX described here. If the user selects the button specified by **Run button text from**, it runs the ARM action using the configured values. On the bottom of the context pane, you can select **View Request Details** to inspect the HTTP method and the ARM API endpoint used for the ARM action.
100+
101+
:::image type="content" source="media/workbooks-link-actions/azure-resource-manager-action-pane.png" alt-text="Screenshot that shows Azure Workbooks ARM action pane.":::
102+
103+
The progress and result of the ARM Action is shown as an Azure portal notification.
104+
105+
:::image type="content" source="media/workbooks-link-actions/azure-resource-manager-action-custom-notifications.png" alt-text="Screenshot that shows Azure ARM custom notifications.":::
106+
107+
67108
## Azure Resource Manager deployment link settings
68109

69-
If the selected link type is **ARM Deployment**, you must specify more settings to open a Resource Manager deployment. There are two main tabs for configurations: **Template Settings** and **UX Settings**.
110+
If the link type is **ARM Deployment**, you must specify more settings to open a Resource Manager deployment. There are two main tabs for configurations: **Template Settings** and **UX Settings**.
70111

71112
### Template settings
72113

@@ -76,7 +117,7 @@ This section defines where the template should come from and the parameters used
76117
|:------------- |:-------------|
77118
|Resource group ID comes from| The resource ID is used to manage deployed resources. The subscription is used to manage deployed resources and costs. The resource groups are used like folders to organize and manage all your resources. If this value isn't specified, the deployment fails. Select from **Cell**, **Column**, **Parameter**, and **Static Value** in [Link sources](#link-sources).|
78119
|ARM template URI from| The URI to the ARM template itself. The template URI needs to be accessible to the users who deploy the template. Select from **Cell**, **Column**, **Parameter**, and **Static Value** in [Link sources](#link-sources). For more information, see [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/).|
79-
|ARM Template Parameters|Defines the template parameters used for the template URI defined earlier. These parameters are used to deploy the template on the run page. The grid contains an **Expand** toolbar button to help fill the parameters by using the names defined in the template URI and set to static empty values. This option can only be used when there are no parameters in the grid and the template URI is set. The lower section is a preview of what the parameter output looks like. Select **Refresh** to update the preview with current changes. Parameters are typically values. References are something that could point to key vault secrets that the user has access to. <br/><br/> **Template Viewer pane limitation** doesn't render reference parameters correctly and will show up as null/value. As a result, users won't be able to correctly deploy reference parameters from the **Template Viewer** tab.|
120+
|ARM Template Parameters|Defines the template parameters used for the template URI defined earlier. These parameters are used to deploy the template on the run page. The grid contains an **Expand** toolbar button to help fill the parameters by using the names defined in the template URI and set to static empty values. This option can only be used when there are no parameters in the grid and the template URI is set. The lower section is a preview of what the parameter output looks like. Select **Refresh** to update the preview with current changes. Parameters are typically values. References are something that could point to key vault secrets that the user has access to. <br/><br/> **Template Viewer pane limitation** doesn't render reference parameters correctly and shows as a null/value. As a result, users won't be able to correctly deploy reference parameters from the **Template Viewer** tab.|
80121
<!-- convertborder later -->
81122
:::image type="content" source="./media/workbooks-link-actions/template-settings.png" lightbox="./media/workbooks-link-actions/template-settings.png" alt-text="Screenshot that shows the Template Settings tab." border="false":::
82123

0 commit comments

Comments
 (0)