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​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
authorstringInformation about the author of the workbook template.
galleriesarrayWorkbook galleries supported by the template. Required.
localizedobjectKey value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal.
locationstringThe geo-location where the resource lives. Required.
priorityintegerPriority of the template. Determines which template to open when a workbook gallery is opened in viewer mode.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
templateDataobjectValid JSON object containing workbook template payload. Required.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, resource_name, subscription_idGet a single workbook template by its resourceName.
list_by_resource_groupselectresource_group_name, subscription_idGet all Workbook templates defined within a specified resource group.
create_or_updateinsertresource_group_name, resource_name, subscription_id, locationCreate a new workbook template.
updateupdateresource_group_name, resource_name, subscription_idUpdates a workbook template that has already been added.
create_or_updatereplaceresource_group_name, resource_name, subscription_id, locationCreate a new workbook template.
deletedeleteresource_group_name, resource_name, subscription_idDelete a workbook template.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
resource_namestringThe name of the Application Insights component resource. Required.
subscription_idstring

SELECT examples​

Get a single workbook template by its resourceName.

SELECT
id,
name,
author,
galleries,
localized,
location,
priority,
systemData,
tags,
templateData,
type
FROM azure.application_insights.workbook_templates
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples​

Create a new workbook template.

INSERT INTO azure.application_insights.workbook_templates (
tags,
location,
properties,
resource_group_name,
resource_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ resource_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples​

Updates a workbook template that has already been added.

UPDATE azure.application_insights.workbook_templates
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples​

Create a new workbook template.

REPLACE azure.application_insights.workbook_templates
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples​

Delete a workbook template.

DELETE FROM azure.application_insights.workbook_templates
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;