Skip to main content

workbooks

Creates, updates, deletes, gets or lists a workbooks resource.

Overview

Nameworkbooks
TypeResource
Idazure.application_insights.workbooks

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
categorytextfield from the properties object
display_nametextfield from the properties object
etagtextResource etag
identitytextIdentity used for BYOS
kindtextThe kind of workbook. Only valid value is shared.
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
revisiontextfield from the properties object
serialized_datatextfield from the properties object
source_idtextfield from the properties object
storage_uritextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextfield from the properties object
time_modifiedtextfield from the properties object
user_idtextfield from the properties object
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionIdGet a single workbook by its resourceName.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet all Workbooks defined within a specified resource group and category.
list_by_subscriptionSELECTsubscriptionIdGet all Workbooks defined within a specified subscription and category.
create_or_updateINSERTresourceGroupName, resourceName, subscriptionIdCreate a new workbook.
deleteDELETEresourceGroupName, resourceName, subscriptionIdDelete a workbook.
updateUPDATEresourceGroupName, resourceName, subscriptionIdUpdates a workbook that has already been added.
revision_getEXECresourceGroupName, resourceName, revisionId, subscriptionIdGet a single workbook revision defined by its revisionId.
revisions_listEXECresourceGroupName, resourceName, subscriptionIdGet the revisions for the workbook defined by its resourceName.

SELECT examples

Get all Workbooks defined within a specified subscription and category.

SELECT
description,
category,
display_name,
etag,
identity,
kind,
resourceGroupName,
resourceName,
revision,
serialized_data,
source_id,
storage_uri,
subscriptionId,
system_data,
tags,
time_modified,
user_id,
version
FROM azure.application_insights.vw_workbooks
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new workbooks resource.

/*+ create */
INSERT INTO azure.application_insights.workbooks (
resourceGroupName,
resourceName,
subscriptionId,
identity,
kind,
etag,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ identity }}',
'{{ kind }}',
'{{ etag }}',
'{{ properties }}'
;

UPDATE example

Updates a workbooks resource.

/*+ update */
UPDATE azure.application_insights.workbooks
SET
kind = '{{ kind }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified workbooks resource.

/*+ delete */
DELETE FROM azure.application_insights.workbooks
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';