Skip to main content

workbook_templates

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

Overview

Nameworkbook_templates
TypeResource
Idazure.application_insights.workbook_templates

Fields

NameDatatypeDescription
idtextAzure resource Id
nametextAzure resource name.
authortextfield from the properties object
galleriestextfield from the properties object
localizedtextfield from the properties object
locationtextResource location
prioritytextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags
template_datatextfield from the properties object
typetextAzure resource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionIdGet a single workbook template by its resourceName.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet all Workbook templates defined within a specified resource group.
create_or_updateINSERTresourceGroupName, resourceName, subscriptionIdCreate a new workbook template.
deleteDELETEresourceGroupName, resourceName, subscriptionIdDelete a workbook template.
updateUPDATEresourceGroupName, resourceName, subscriptionIdUpdates a workbook template that has already been added.

SELECT examples

Get all Workbook templates defined within a specified resource group.

SELECT
id,
name,
author,
galleries,
localized,
location,
priority,
resourceGroupName,
resourceName,
subscriptionId,
tags,
template_data,
type
FROM azure.application_insights.vw_workbook_templates
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.application_insights.workbook_templates (
resourceGroupName,
resourceName,
subscriptionId,
location,
tags,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a workbook_templates resource.

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

DELETE example

Deletes the specified workbook_templates resource.

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